From b43b711c52de339ebfe8f562e73622356b3421e9 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Sun, 9 Oct 2016 20:19:35 -0700 Subject: [PATCH 01/27] + Enhance 'FolderDefinition' provision with specific content type #600 + CSOM impl, new tests under 'Regression.Scenarios.Folders.ContentType' --- .../ModelHandlers/FolderModelHandler.cs | 755 ++++++++++-------- .../ClientFolderDefinitionValidator.cs | 133 ++- .../Impl/Scenarios/FolderScenariousTest.cs | 464 +++++++---- .../SPMeta2/Definitions/FolderDefinition.cs | 136 ++-- 4 files changed, 888 insertions(+), 600 deletions(-) diff --git a/SPMeta2/SPMeta2.CSOM/ModelHandlers/FolderModelHandler.cs b/SPMeta2/SPMeta2.CSOM/ModelHandlers/FolderModelHandler.cs index 58d59371d..b66ad17c4 100644 --- a/SPMeta2/SPMeta2.CSOM/ModelHandlers/FolderModelHandler.cs +++ b/SPMeta2/SPMeta2.CSOM/ModelHandlers/FolderModelHandler.cs @@ -1,354 +1,405 @@ -using System.Runtime.Remoting.Lifetime; -using Microsoft.SharePoint.Client; -using SPMeta2.Common; -using SPMeta2.CSOM.Extensions; -using SPMeta2.CSOM.ModelHosts; -using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; -using SPMeta2.Enumerations; -using SPMeta2.ModelHandlers; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using SPMeta2.Services; -using SPMeta2.Utils; - -using SPMeta2.ModelHosts; -using SPMeta2.Exceptions; - -namespace SPMeta2.CSOM.ModelHandlers -{ - public class FolderModelHandler : CSOMModelHandlerBase - { - #region properties - - public override Type TargetType - { - get { return typeof(FolderDefinition); } - } - - #endregion - - #region methods - - public override void WithResolvingModelHost(ModelHostResolveContext modelHostContext) - { - var modelHost = modelHostContext.ModelHost; - var model = modelHostContext.Model; - var childModelType = modelHostContext.ChildModelType; - var action = modelHostContext.Action; - - - var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var folderModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); - - if (folderModelHost.CurrentList != null && folderModelHost.CurrentList.BaseType == BaseType.DocumentLibrary) - { - var currentFolder = EnsureLibraryFolder(folderModelHost, folderModel); - - var newContext = ModelHostBase.Inherit(folderModelHost, c => - { - c.CurrentList = folderModelHost.CurrentList; - c.CurrentListFolder = currentFolder; - c.CurrentWeb = folderModelHost.CurrentWeb; - }); - - action(newContext); - - currentFolder.Update(); - currentFolder.Context.ExecuteQueryWithTrace(); - - } - else if (folderModelHost.CurrentList != null && folderModelHost.CurrentList.BaseType != BaseType.DocumentLibrary) - { - var currentListItem = EnsureListFolder(folderModelHost, folderModel); - - var newContext = ModelHostBase.Inherit(folderModelHost, c => - { - c.CurrentList = folderModelHost.CurrentList; - c.CurrentListItem = currentListItem; - c.CurrentWeb = folderModelHost.CurrentWeb; - }); - - action(newContext); - - // should be fine for 35 too, that's a parent update -#if !NET35 - currentListItem.Folder.Update(); - currentListItem.Context.ExecuteQueryWithTrace(); -#endif - - } - else - { - throw new NotImplementedException("model host is unklnown"); - } - } - - public override void DeployModel(object modelHost, DefinitionBase model) - { - var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var folderModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); - - if (ShouldDeployLibraryFolder(folderModelHost)) - EnsureLibraryFolder(folderModelHost, folderModel); - else if (ShouldDeployListFolder(folderModelHost)) - EnsureListFolder(folderModelHost, folderModel); - } - - protected bool ShouldDeployListFolder(FolderModelHost folderModelHost) - { - return folderModelHost.CurrentList != null && - folderModelHost.CurrentList.BaseType != BaseType.DocumentLibrary; - } - - protected bool ShouldDeployLibraryFolder(FolderModelHost folderModelHost) - { - return folderModelHost.CurrentList != null && - folderModelHost.CurrentList.BaseType == BaseType.DocumentLibrary; - } - - protected Folder GetListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) - { - var tmp = string.Empty; - var result = GetListFolder(folderModelHost, folderModel, out tmp); - - return result; - } - - private Folder GetListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel, - out string serverRelativeUrl) - { - var list = folderModelHost.CurrentList; - var context = list.Context; - - context.Load(list, l => l.RootFolder); - context.Load(list, l => l.ParentWeb); - +using System.Runtime.Remoting.Lifetime; +using Microsoft.SharePoint.Client; +using SPMeta2.Common; +using SPMeta2.CSOM.Extensions; +using SPMeta2.CSOM.ModelHosts; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.Enumerations; +using SPMeta2.ModelHandlers; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using SPMeta2.Services; +using SPMeta2.Utils; + +using SPMeta2.ModelHosts; +using SPMeta2.Exceptions; + +namespace SPMeta2.CSOM.ModelHandlers +{ + public class FolderModelHandler : CSOMModelHandlerBase + { + #region properties + + public override Type TargetType + { + get { return typeof(FolderDefinition); } + } + + #endregion + + #region methods + + public override void WithResolvingModelHost(ModelHostResolveContext modelHostContext) + { + var modelHost = modelHostContext.ModelHost; + var model = modelHostContext.Model; + var childModelType = modelHostContext.ChildModelType; + var action = modelHostContext.Action; + + + var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var folderModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + if (folderModelHost.CurrentList != null && folderModelHost.CurrentList.BaseType == BaseType.DocumentLibrary) + { + var currentFolder = EnsureLibraryFolder(folderModelHost, folderModel); + + var newContext = ModelHostBase.Inherit(folderModelHost, c => + { + c.CurrentList = folderModelHost.CurrentList; + c.CurrentListFolder = currentFolder; + c.CurrentWeb = folderModelHost.CurrentWeb; + }); + + action(newContext); + + currentFolder.Update(); + currentFolder.Context.ExecuteQueryWithTrace(); + + } + else if (folderModelHost.CurrentList != null && folderModelHost.CurrentList.BaseType != BaseType.DocumentLibrary) + { + var currentListItem = EnsureListFolder(folderModelHost, folderModel); + + var newContext = ModelHostBase.Inherit(folderModelHost, c => + { + c.CurrentList = folderModelHost.CurrentList; + c.CurrentListItem = currentListItem; + c.CurrentWeb = folderModelHost.CurrentWeb; + }); + + action(newContext); + + // should be fine for 35 too, that's a parent update +#if !NET35 + currentListItem.Folder.Update(); + currentListItem.Context.ExecuteQueryWithTrace(); +#endif + + } + else + { + throw new NotImplementedException("model host is unklnown"); + } + } + + public override void DeployModel(object modelHost, DefinitionBase model) + { + var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var folderModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + if (ShouldDeployLibraryFolder(folderModelHost)) + EnsureLibraryFolder(folderModelHost, folderModel); + else if (ShouldDeployListFolder(folderModelHost)) + EnsureListFolder(folderModelHost, folderModel); + } + + protected bool ShouldDeployListFolder(FolderModelHost folderModelHost) + { + return folderModelHost.CurrentList != null && + folderModelHost.CurrentList.BaseType != BaseType.DocumentLibrary; + } + + protected bool ShouldDeployLibraryFolder(FolderModelHost folderModelHost) + { + return folderModelHost.CurrentList != null && + folderModelHost.CurrentList.BaseType == BaseType.DocumentLibrary; + } + + protected Folder GetListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) + { + var tmp = string.Empty; + var result = GetListFolder(folderModelHost, folderModel, out tmp); + + return result; + } + + private Folder GetListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel, + out string serverRelativeUrl) + { + var list = folderModelHost.CurrentList; + var context = list.Context; + + context.Load(list, l => l.RootFolder); + context.Load(list, l => l.ParentWeb); + #if NET35 throw new SPMeta2NotImplementedException("Not implemented for SP2010 - https://github.com/SubPointSolutions/spmeta2/issues/766"); -#endif - -#if !NET35 - - if (folderModelHost.CurrentListItem != null) - { - context.Load(folderModelHost.CurrentListItem, l => l.Folder); - } - - context.ExecuteQueryWithTrace(); - - serverRelativeUrl = folderModelHost.CurrentListItem == null - ? list.RootFolder.ServerRelativeUrl - : folderModelHost.CurrentListItem.Folder.ServerRelativeUrl; - - var currentUrl = serverRelativeUrl + "/" + folderModel.Name; - var currentFolder = folderModelHost.CurrentList.ParentWeb.GetFolderByServerRelativeUrl(currentUrl); - - var doesFolderExist = false; - - try - { - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Loading list folder with URL: [{0}]", currentUrl); - - context.Load(currentFolder, f => f.Name); - context.ExecuteQueryWithTrace(); - - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "List folder with URL does exist: [{0}]", currentUrl); - - doesFolderExist = true; - } - catch (ServerException e) - { - if (e.ServerErrorTypeName == "System.IO.FileNotFoundException") - { - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "List folder with URL does not exist: [{0}]", currentUrl); - doesFolderExist = false; - } - } - - if (doesFolderExist) - return currentFolder; - -#endif - - return null; - } - - private ListItem EnsureListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "EnsureListFolder()"); - - var serverRelativeUrl = string.Empty; - - var list = folderModelHost.CurrentList; - var context = list.Context; - - var currentFolder = GetListFolder(folderModelHost, folderModel, out serverRelativeUrl); - var currentFolderItem = folderModelHost.CurrentListItem; - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioning, - Object = currentFolder, - ObjectType = typeof(Folder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - - context.ExecuteQueryWithTrace(); - - if (currentFolder == null) - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new list folder"); - - currentFolderItem = list.AddItem(new ListItemCreationInformation - { - FolderUrl = serverRelativeUrl, - LeafName = folderModel.Name, - UnderlyingObjectType = FileSystemObjectType.Folder - }); - - currentFolderItem[BuiltInInternalFieldNames.Title] = folderModel.Name; - currentFolderItem.Update(); - - context.ExecuteQueryWithTrace(); - -#if !NET35 - // TODO for SP2010, mostlikely won't work :( - // https://github.com/SubPointSolutions/spmeta2/issues/766 - - context.Load(currentFolderItem.Folder); - context.ExecuteQueryWithTrace(); - - currentFolder = currentFolderItem.Folder; - - context.Load(currentFolder, f => f.ListItemAllFields); - context.Load(currentFolder, f => f.Name); - - context.ExecuteQueryWithTrace(); - - currentFolderItem = currentFolder.ListItemAllFields; -#endif - - } - else - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing list folder"); - -#if !NET35 - // TODO for SP2010, mostlikely won't work :( - // https://github.com/SubPointSolutions/spmeta2/issues/766 - - context.Load(currentFolder, f => f.ListItemAllFields); - context.Load(currentFolder, f => f.Name); - context.ExecuteQueryWithTrace(); - - currentFolderItem = currentFolder.ListItemAllFields; - -#endif - } - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioned, - Object = currentFolder, - ObjectType = typeof(Folder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - - return currentFolderItem; - } - - protected Folder GetLibraryFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) - { - return GetLibraryFolder(folderModelHost.CurrentListFolder, folderModel.Name); - } - - internal static Folder GetLibraryFolder(Folder folder, string folderName) - { - var parentFolder = folder; - var context = parentFolder.Context; - - context.Load(parentFolder, f => f.Folders); - context.ExecuteQueryWithTrace(); - - // dirty stuff, needs to be rewritten - var currentFolder = parentFolder - .Folders - .OfType() - .FirstOrDefault(f => f.Name == folderName); - - if (currentFolder != null) - { - context.Load(currentFolder, f => f.Name); - context.ExecuteQueryWithTrace(); - - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Library folder with name does exist: [{0}]", folderName); - } - else - { - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Library folder with name does not exist: [{0}]", folderName); - } - - return currentFolder; - } - - private Folder EnsureLibraryFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) - { - TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "EnsureLibraryFolder()"); - - var parentFolder = folderModelHost.CurrentListFolder; - var context = parentFolder.Context; - - var currentFolder = GetLibraryFolder(folderModelHost, folderModel); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioning, - Object = currentFolder, - ObjectType = typeof(Folder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - - if (currentFolder == null) - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new library folder"); - - currentFolder = parentFolder.Folders.Add(folderModel.Name); - context.ExecuteQueryWithTrace(); - } - else - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing library folder"); - } - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioned, - Object = currentFolder, - ObjectType = typeof(Folder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - - currentFolder.Update(); - context.ExecuteQueryWithTrace(); - - return currentFolder; - } - - #endregion - } -} +#endif + +#if !NET35 + + if (folderModelHost.CurrentListItem != null) + { + context.Load(folderModelHost.CurrentListItem, l => l.Folder); + } + + context.ExecuteQueryWithTrace(); + + serverRelativeUrl = folderModelHost.CurrentListItem == null + ? list.RootFolder.ServerRelativeUrl + : folderModelHost.CurrentListItem.Folder.ServerRelativeUrl; + + var currentUrl = serverRelativeUrl + "/" + folderModel.Name; + var currentFolder = folderModelHost.CurrentList.ParentWeb.GetFolderByServerRelativeUrl(currentUrl); + + var doesFolderExist = false; + + try + { + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Loading list folder with URL: [{0}]", currentUrl); + + context.Load(currentFolder, f => f.Name); + context.ExecuteQueryWithTrace(); + + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "List folder with URL does exist: [{0}]", currentUrl); + + doesFolderExist = true; + } + catch (ServerException e) + { + if (e.ServerErrorTypeName == "System.IO.FileNotFoundException") + { + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "List folder with URL does not exist: [{0}]", currentUrl); + doesFolderExist = false; + } + } + + if (doesFolderExist) + return currentFolder; + +#endif + + return null; + } + + private ListItem EnsureListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "EnsureListFolder()"); + + var serverRelativeUrl = string.Empty; + + var list = folderModelHost.CurrentList; + var context = list.Context; + + var currentFolder = GetListFolder(folderModelHost, folderModel, out serverRelativeUrl); + var currentFolderItem = folderModelHost.CurrentListItem; + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioning, + Object = currentFolder, + ObjectType = typeof(Folder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + + context.ExecuteQueryWithTrace(); + + if (currentFolder == null) + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new list folder"); + + currentFolderItem = list.AddItem(new ListItemCreationInformation + { + FolderUrl = serverRelativeUrl, + LeafName = folderModel.Name, + UnderlyingObjectType = FileSystemObjectType.Folder + }); + + currentFolderItem[BuiltInInternalFieldNames.Title] = folderModel.Name; + MapProperties(currentFolderItem, folderModel); + + currentFolderItem.Update(); + context.ExecuteQueryWithTrace(); + +#if !NET35 + // TODO for SP2010, mostlikely won't work :( + // https://github.com/SubPointSolutions/spmeta2/issues/766 + + context.Load(currentFolderItem.Folder); + context.ExecuteQueryWithTrace(); + + currentFolder = currentFolderItem.Folder; + + context.Load(currentFolder, f => f.ListItemAllFields); + context.Load(currentFolder, f => f.Name); + + context.ExecuteQueryWithTrace(); + + currentFolderItem = currentFolder.ListItemAllFields; +#endif + + } + else + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing list folder"); + +#if !NET35 + // TODO for SP2010, mostlikely won't work :( + // https://github.com/SubPointSolutions/spmeta2/issues/766 + + context.Load(currentFolder, f => f.ListItemAllFields); + context.Load(currentFolder, f => f.Name); + context.ExecuteQueryWithTrace(); + + currentFolderItem = currentFolder.ListItemAllFields; + + MapProperties(currentFolderItem, folderModel); + + currentFolderItem.Update(); + context.ExecuteQueryWithTrace(); +#endif + } + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = currentFolder, + ObjectType = typeof(Folder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + + return currentFolderItem; + } + + private void MapProperties(ListItem currentItem, FolderDefinition definition) + { + if (!string.IsNullOrEmpty(definition.ContentTypeId)) + { + currentItem[BuiltInInternalFieldNames.ContentTypeId] = definition.ContentTypeId; + } + else if (!string.IsNullOrEmpty(definition.ContentTypeName)) + { + currentItem[BuiltInInternalFieldNames.ContentTypeId] = ContentTypeLookupService + .LookupContentTypeByName(currentItem.ParentList, definition.ContentTypeName) + .Id.ToString(); + } + } + + protected Folder GetLibraryFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) + { + return GetLibraryFolder(folderModelHost.CurrentListFolder, folderModel.Name); + } + + internal static Folder GetLibraryFolder(Folder folder, string folderName) + { + var parentFolder = folder; + var context = parentFolder.Context; + + context.Load(parentFolder, f => f.Folders); + context.ExecuteQueryWithTrace(); + + // dirty stuff, needs to be rewritten + var currentFolder = parentFolder + .Folders + .OfType() + .FirstOrDefault(f => f.Name == folderName); + + if (currentFolder != null) + { + context.Load(currentFolder, f => f.Name); + context.ExecuteQueryWithTrace(); + + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Library folder with name does exist: [{0}]", folderName); + } + else + { + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Library folder with name does not exist: [{0}]", folderName); + } + + return currentFolder; + } + + private Folder EnsureLibraryFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) + { + TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "EnsureLibraryFolder()"); + + var parentFolder = folderModelHost.CurrentListFolder; + var context = parentFolder.Context; + + var currentFolder = GetLibraryFolder(folderModelHost, folderModel); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioning, + Object = currentFolder, + ObjectType = typeof(Folder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + + if (currentFolder == null) + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new library folder"); + + currentFolder = parentFolder.Folders.Add(folderModel.Name); + context.ExecuteQueryWithTrace(); + +#if !NET35 + // TODO for SP2010, mostlikely won't work :( + // https://github.com/SubPointSolutions/spmeta2/issues/766 + + context.Load(currentFolder, f => f.ListItemAllFields); + context.Load(currentFolder, f => f.Name); + context.ExecuteQueryWithTrace(); + + var currentFolderItem = currentFolder.ListItemAllFields; + + MapProperties(currentFolderItem, folderModel); + + currentFolderItem.Update(); + context.ExecuteQueryWithTrace(); +#endif + } + else + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing library folder"); + +#if !NET35 + // TODO for SP2010, mostlikely won't work :( + // https://github.com/SubPointSolutions/spmeta2/issues/766 + + context.Load(currentFolder, f => f.ListItemAllFields); + context.Load(currentFolder, f => f.Name); + context.ExecuteQueryWithTrace(); + + var currentFolderItem = currentFolder.ListItemAllFields; + + MapProperties(currentFolderItem, folderModel); + + currentFolderItem.Update(); + context.ExecuteQueryWithTrace(); +#endif + } + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = currentFolder, + ObjectType = typeof(Folder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + + currentFolder.Update(); + context.ExecuteQueryWithTrace(); + + return currentFolder; + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientFolderDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientFolderDefinitionValidator.cs index e4edc8127..41d869adf 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientFolderDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientFolderDefinitionValidator.cs @@ -1,29 +1,104 @@ -using Microsoft.SharePoint.Client; -using SPMeta2.CSOM.ModelHandlers; -using SPMeta2.CSOM.ModelHosts; -using SPMeta2.Definitions; -using SPMeta2.Utils; - -namespace SPMeta2.Regression.CSOM.Validation -{ - public class ClientFolderDefinitionValidator : FolderModelHandler - { - public override void DeployModel(object modelHost, DefinitionBase model) - { - var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); - - Folder spObject = null; - - if (ShouldDeployLibraryFolder(folderModelHost)) - spObject = GetLibraryFolder(folderModelHost, definition); - else if (ShouldDeployListFolder(folderModelHost)) - spObject = GetListFolder(folderModelHost, definition); - - var assert = ServiceFactory.AssertService - .NewAssert(definition, spObject); - - assert.ShouldBeEqual(m => m.Name, o => o.Name); - } - } -} +using Microsoft.SharePoint.Client; +using SPMeta2.CSOM.ModelHandlers; +using SPMeta2.CSOM.ModelHosts; +using SPMeta2.Definitions; +using SPMeta2.Utils; +using SPMeta2.CSOM.Extensions; +using SPMeta2.Containers.Assertion; + +namespace SPMeta2.Regression.CSOM.Validation +{ + public class ClientFolderDefinitionValidator : FolderModelHandler + { + public override void DeployModel(object modelHost, DefinitionBase model) + { + var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + Folder spObject = null; + + if (ShouldDeployLibraryFolder(folderModelHost)) + spObject = GetLibraryFolder(folderModelHost, definition); + else if (ShouldDeployListFolder(folderModelHost)) + spObject = GetListFolder(folderModelHost, definition); + + var context = spObject.Context; + + var assert = ServiceFactory.AssertService + .NewAssert(definition, spObject); + + assert.ShouldBeEqual(m => m.Name, o => o.Name); + + context.Load(spObject); + context.Load(spObject, o => o.ListItemAllFields); + context.ExecuteQueryWithTrace(); + + var item = spObject.ListItemAllFields; + + var stringCustomContentType = string.Empty; + var stringCustomContentTypeId = string.Empty; + + if (!string.IsNullOrEmpty(definition.ContentTypeName) + || !string.IsNullOrEmpty(definition.ContentTypeId)) + { + if (!string.IsNullOrEmpty(definition.ContentTypeName)) + { + var ct = ContentTypeLookupService + .LookupContentTypeByName(item.ParentList, definition.ContentTypeName); + + stringCustomContentType = ct.Name; + stringCustomContentTypeId = ct.StringId; + } + } + + + if (!string.IsNullOrEmpty(definition.ContentTypeId)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.ContentTypeId); + var currentContentTypeId = ConvertUtils.ToString(item["ContentTypeId"]); + + var isValis = currentContentTypeId.StartsWith(s.ContentTypeId); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValis + }; + }); + } + else + { + assert.SkipProperty(m => m.ContentTypeId, "ContentTypeId is null or empty. Skipping."); + } + + if (!string.IsNullOrEmpty(definition.ContentTypeName)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.ContentTypeName); + + // still validating agains content type ID. + // setting up by Name, the item must have correct ID + var currentContentTypeId = ConvertUtils.ToString(item["ContentTypeId"]); + var isValis = currentContentTypeId.StartsWith(stringCustomContentTypeId); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValis + }; + }); + } + else + { + assert.SkipProperty(m => m.ContentTypeName, "ContentTypeName is null or empty. Skipping."); + } + } + } +} diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/FolderScenariousTest.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/FolderScenariousTest.cs index 4eced36e8..166421b85 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/FolderScenariousTest.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/FolderScenariousTest.cs @@ -1,156 +1,308 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using SPMeta2.Containers; -using SPMeta2.Definitions; -using SPMeta2.Enumerations; -using SPMeta2.Models; -using SPMeta2.Regression.Tests.Base; -using SPMeta2.Regression.Tests.Impl.Scenarios.Base; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -using SPMeta2.Syntax.Default; - -namespace SPMeta2.Regression.Tests.Impl.Scenarios -{ - [TestClass] - public class FolderScenariousTest : SPMeta2RegresionScenarioTestBase - { - #region internal - - [ClassInitializeAttribute] - public static void Init(TestContext context) - { - InternalInit(); - } - - [ClassCleanupAttribute] - public static void Cleanup() - { - InternalCleanup(); - } - - #endregion - - #region default - - protected void AttachFolderHierarchyToFolder(FolderModelNode node) - { - node - .AddRandomFolder(rootFolder => - { - rootFolder - .AddRandomFolder(subFolder => - { - subFolder - .AddRandomFolder() - .AddRandomFolder(); - }) - .AddRandomFolder(subFolder => - { - subFolder - .AddRandomFolder() - .AddRandomFolder(); - }); - }) - .AddRandomFolder(rootFolder => - { - rootFolder - .AddRandomFolder(subFolder => - { - subFolder - .AddRandomFolder() - .AddRandomFolder(); - }) - .AddRandomFolder(subFolder => - { - subFolder - .AddRandomFolder() - .AddRandomFolder(); - }); - }); - } - - protected void AttachFolderHierarchyToList(ListModelNode node) - { - node - .AddRandomFolder(rootFolder => - { - rootFolder - .AddRandomFolder(subFolder => - { - subFolder - .AddRandomFolder() - .AddRandomFolder(); - }) - .AddRandomFolder(subFolder => - { - subFolder - .AddRandomFolder() - .AddRandomFolder(); - }); - }) - .AddRandomFolder(rootFolder => - { - rootFolder - .AddRandomFolder(subFolder => - { - subFolder - .AddRandomFolder() - .AddRandomFolder(); - }) - .AddRandomFolder(subFolder => - { - subFolder - .AddRandomFolder() - .AddRandomFolder(); - }); - }); - } - - [TestMethod] - [TestCategory("Regression.Scenarios.Folders")] - public void CanDeploy_FolderHierarchy_InList() - { - var listDef = ModelGeneratorService.GetRandomDefinition(def => - { - def.TemplateType = BuiltInListTemplateTypeId.GenericList; - }); - - var model = SPMeta2Model - .NewWebModel(web => - { - web.AddRandomWeb(rndWeb => - { - rndWeb.AddList(listDef, list => AttachFolderHierarchyToList(list)); - }); - }); - - TestModel(model); - } - - [TestMethod] - [TestCategory("Regression.Scenarios.Folders")] - public void CanDeploy_FolderHierarchy_InLibrary() - { - var listDef = ModelGeneratorService.GetRandomDefinition(def => - { - def.TemplateType = BuiltInListTemplateTypeId.DocumentLibrary; - }); - - var model = SPMeta2Model - .NewWebModel(web => - { - web.AddRandomWeb(rndWeb => - { - rndWeb.AddList(listDef, list => AttachFolderHierarchyToList(list)); - }); - }); - - TestModel(model); - } - - #endregion - } -} +using Microsoft.VisualStudio.TestTools.UnitTesting; +using SPMeta2.Containers; +using SPMeta2.Definitions; +using SPMeta2.Enumerations; +using SPMeta2.Models; +using SPMeta2.Regression.Tests.Base; +using SPMeta2.Regression.Tests.Impl.Scenarios.Base; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using SPMeta2.Syntax.Default; + +namespace SPMeta2.Regression.Tests.Impl.Scenarios +{ + [TestClass] + public class FolderScenariousTest : SPMeta2RegresionScenarioTestBase + { + #region internal + + [ClassInitializeAttribute] + public static void Init(TestContext context) + { + InternalInit(); + } + + [ClassCleanupAttribute] + public static void Cleanup() + { + InternalCleanup(); + } + + #endregion + + #region default + + protected void AttachFolderHierarchyToFolder(FolderModelNode node) + { + node + .AddRandomFolder(rootFolder => + { + rootFolder + .AddRandomFolder(subFolder => + { + subFolder + .AddRandomFolder() + .AddRandomFolder(); + }) + .AddRandomFolder(subFolder => + { + subFolder + .AddRandomFolder() + .AddRandomFolder(); + }); + }) + .AddRandomFolder(rootFolder => + { + rootFolder + .AddRandomFolder(subFolder => + { + subFolder + .AddRandomFolder() + .AddRandomFolder(); + }) + .AddRandomFolder(subFolder => + { + subFolder + .AddRandomFolder() + .AddRandomFolder(); + }); + }); + } + + protected void AttachFolderHierarchyToList(ListModelNode node) + { + node + .AddRandomFolder(rootFolder => + { + rootFolder + .AddRandomFolder(subFolder => + { + subFolder + .AddRandomFolder() + .AddRandomFolder(); + }) + .AddRandomFolder(subFolder => + { + subFolder + .AddRandomFolder() + .AddRandomFolder(); + }); + }) + .AddRandomFolder(rootFolder => + { + rootFolder + .AddRandomFolder(subFolder => + { + subFolder + .AddRandomFolder() + .AddRandomFolder(); + }) + .AddRandomFolder(subFolder => + { + subFolder + .AddRandomFolder() + .AddRandomFolder(); + }); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.Folders")] + public void CanDeploy_FolderHierarchy_InList() + { + var listDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.TemplateType = BuiltInListTemplateTypeId.GenericList; + }); + + var model = SPMeta2Model + .NewWebModel(web => + { + web.AddRandomWeb(rndWeb => + { + rndWeb.AddList(listDef, list => AttachFolderHierarchyToList(list)); + }); + }); + + TestModel(model); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.Folders.ContentType")] + public void CanDeploy_FolderWithContentTypeId_InList() + { + var contentTypeDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ParentContentTypeId = BuiltInContentTypeId.Folder; + }); + + var listDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ContentTypesEnabled = true; + def.TemplateType = BuiltInListTemplateTypeId.GenericList; + }); + + var folderDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ContentTypeId = contentTypeDef.GetContentTypeId(); + def.ContentTypeName = string.Empty; + }); + + var siteModel = SPMeta2Model.NewSiteModel(site => + { + site.AddContentType(contentTypeDef); + }); + + var webModel = SPMeta2Model.NewWebModel(web => + { + web.AddList(listDef, list => + { + list.AddContentTypeLink(contentTypeDef); + list.AddFolder(folderDef); + }); + }); + + TestModel(siteModel, webModel); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.Folders.ContentType")] + public void CanDeploy_FolderWithContentTypeName_InList() + { + var contentTypeDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ParentContentTypeId = BuiltInContentTypeId.Folder; + }); + + var listDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ContentTypesEnabled = true; + def.TemplateType = BuiltInListTemplateTypeId.GenericList; + }); + + var folderDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ContentTypeId = string.Empty; + def.ContentTypeName = contentTypeDef.Name; + }); + + var siteModel = SPMeta2Model.NewSiteModel(site => + { + site.AddContentType(contentTypeDef); + }); + + var webModel = SPMeta2Model.NewWebModel(web => + { + web.AddList(listDef, list => + { + list.AddContentTypeLink(contentTypeDef); + list.AddFolder(folderDef); + }); + }); + + TestModel(siteModel, webModel); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.Folders")] + public void CanDeploy_FolderHierarchy_InLibrary() + { + var listDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.TemplateType = BuiltInListTemplateTypeId.DocumentLibrary; + }); + + var model = SPMeta2Model + .NewWebModel(web => + { + web.AddRandomWeb(rndWeb => + { + rndWeb.AddList(listDef, list => AttachFolderHierarchyToList(list)); + }); + }); + + TestModel(model); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.Folders.ContentType")] + public void CanDeploy_FolderWithContentTypeId_InLibrary() + { + var contentTypeDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ParentContentTypeId = BuiltInContentTypeId.Folder; + }); + + var listDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ContentTypesEnabled = true; + def.TemplateType = BuiltInListTemplateTypeId.DocumentLibrary; + }); + + var folderDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ContentTypeId = contentTypeDef.GetContentTypeId(); + def.ContentTypeName = string.Empty; + }); + + var siteModel = SPMeta2Model.NewSiteModel(site => + { + site.AddContentType(contentTypeDef); + }); + + var webModel = SPMeta2Model.NewWebModel(web => + { + web.AddList(listDef, list => + { + list.AddContentTypeLink(contentTypeDef); + list.AddFolder(folderDef); + }); + }); + + TestModel(siteModel, webModel); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.Folders.ContentType")] + public void CanDeploy_FolderWithContentTypeName_InLibrary() + { + var contentTypeDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ParentContentTypeId = BuiltInContentTypeId.Folder; + }); + + var listDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ContentTypesEnabled = true; + def.TemplateType = BuiltInListTemplateTypeId.DocumentLibrary; + }); + + var folderDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.ContentTypeId = string.Empty; + def.ContentTypeName = contentTypeDef.Name; + }); + + var siteModel = SPMeta2Model.NewSiteModel(site => + { + site.AddContentType(contentTypeDef); + }); + + var webModel = SPMeta2Model.NewWebModel(web => + { + web.AddList(listDef, list => + { + list.AddContentTypeLink(contentTypeDef); + list.AddFolder(folderDef); + }); + }); + + TestModel(siteModel, webModel); + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2/Definitions/FolderDefinition.cs b/SPMeta2/SPMeta2/Definitions/FolderDefinition.cs index b1186e84c..a1a21d884 100644 --- a/SPMeta2/SPMeta2/Definitions/FolderDefinition.cs +++ b/SPMeta2/SPMeta2/Definitions/FolderDefinition.cs @@ -1,63 +1,73 @@ -using System; -using System.Runtime.Serialization; -using SPMeta2.Attributes; -using SPMeta2.Attributes.Capabilities; -using SPMeta2.Attributes.Identity; -using SPMeta2.Attributes.Regression; -using SPMeta2.Utils; - -namespace SPMeta2.Definitions -{ - /// - /// Allows to define and deploy SharePoint folder. - /// Can be deployed to web, list, folder and content type. - /// - /// - [SPObjectType(SPObjectModelType.SSOM, "Microsoft.SharePoint.SPFolder", "Microsoft.SharePoint")] - [SPObjectType(SPObjectModelType.CSOM, "Microsoft.SharePoint.Client.Folder", "Microsoft.SharePoint.Client")] - - [DefaultRootHost(typeof(WebDefinition))] - [DefaultParentHost(typeof(ListDefinition))] - [ExpectAddHostExtensionMethod] - [Serializable] - [DataContract] - [ExpectWithExtensionMethod] - [ExpectArrayExtensionMethod] - - [ParentHostCapability(typeof(ListDefinition))] - [ParentHostCapability(typeof(FolderDefinition))] - - [ExpectManyInstances] - public class FolderDefinition : DefinitionBase - { - #region properties - - /// - /// Name of the target folder. - /// - /// - - [ExpectValidation] - [ExpectRequired] - [DataMember] - [IdentityKey] - - [HashCodePartCapability] - - public string Name { get; set; } - - #endregion - - #region methods - - public override string ToString() - { - return new ToStringResult(this) - .AddPropertyValue(p => p.Name) - - .ToString(); - } - - #endregion - } -} +using System; +using System.Runtime.Serialization; +using SPMeta2.Attributes; +using SPMeta2.Attributes.Capabilities; +using SPMeta2.Attributes.Identity; +using SPMeta2.Attributes.Regression; +using SPMeta2.Utils; + +namespace SPMeta2.Definitions +{ + /// + /// Allows to define and deploy SharePoint folder. + /// Can be deployed to web, list, folder and content type. + /// + /// + [SPObjectType(SPObjectModelType.SSOM, "Microsoft.SharePoint.SPFolder", "Microsoft.SharePoint")] + [SPObjectType(SPObjectModelType.CSOM, "Microsoft.SharePoint.Client.Folder", "Microsoft.SharePoint.Client")] + + [DefaultRootHost(typeof(WebDefinition))] + [DefaultParentHost(typeof(ListDefinition))] + [ExpectAddHostExtensionMethod] + [Serializable] + [DataContract] + [ExpectWithExtensionMethod] + [ExpectArrayExtensionMethod] + + [ParentHostCapability(typeof(ListDefinition))] + [ParentHostCapability(typeof(FolderDefinition))] + + [ExpectManyInstances] + public class FolderDefinition : DefinitionBase + { + #region properties + + /// + /// Name of the target folder. + /// + /// + + [ExpectValidation] + [ExpectRequired] + [DataMember] + [IdentityKey] + + [HashCodePartCapability] + + public string Name { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectNullable] + public string ContentTypeId { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectNullable] + public string ContentTypeName { get; set; } + + #endregion + + #region methods + + public override string ToString() + { + return new ToStringResult(this) + .AddPropertyValue(p => p.Name) + + .ToString(); + } + + #endregion + } +} From 2ea37353f37aede1b6007f2068c58d73f7806336 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Sun, 9 Oct 2016 20:49:02 -0700 Subject: [PATCH 02/27] + boostrapped - Add 'DiscussionReplyItemDefinition' - support discussion board provision #903 + bootstrapped - Add 'DiscussionItemDefinition' - support discussion board provision #840 --- SPMeta2/SPMeta2.Build/m2.buildbaseline.xml | 2 +- .../DiscussionItemModelHandler.cs | 42 ++++++++++++ .../DiscussionReplyItemModelHandler.cs | 42 ++++++++++++ SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj | 2 + .../DiscussionItemDefinitionGenerator.cs | 18 +++++ .../DiscussionReplyItemDefinitionGenerator.cs | 18 +++++ .../SPMeta2.Containers.csproj | 2 + .../Impl/Random/RandomDefinitionTest.cs | 18 +++++ .../Impl/Syntax/TypedSyntaxTests.cs | 5 ++ .../DiscussionItemModelHandler.cs | 39 +++++++++++ .../DiscussionReplyItemModelHandler.cs | 39 +++++++++++ SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj | 2 + .../Definitions/DiscussionItemDefinition.cs | 66 +++++++++++++++++++ .../DiscussionReplyItemDefinition.cs | 66 +++++++++++++++++++ SPMeta2/SPMeta2/SPMeta2.csproj | 5 ++ .../Default/DiscussionItemDefinitionSyntax.cs | 57 ++++++++++++++++ .../DiscussionReplyItemDefinitionSyntax.cs | 56 ++++++++++++++++ .../Interfaces/IDiscussionItemModelNode.cs | 7 ++ 18 files changed, 485 insertions(+), 1 deletion(-) create mode 100644 SPMeta2/SPMeta2.CSOM/ModelHandlers/DiscussionItemModelHandler.cs create mode 100644 SPMeta2/SPMeta2.CSOM/ModelHandlers/DiscussionReplyItemModelHandler.cs create mode 100644 SPMeta2/SPMeta2.Containers/DefinitionGenerators/DiscussionItemDefinitionGenerator.cs create mode 100644 SPMeta2/SPMeta2.Containers/DefinitionGenerators/DiscussionReplyItemDefinitionGenerator.cs create mode 100644 SPMeta2/SPMeta2.SSOM/ModelHandlers/DiscussionItemModelHandler.cs create mode 100644 SPMeta2/SPMeta2.SSOM/ModelHandlers/DiscussionReplyItemModelHandler.cs create mode 100644 SPMeta2/SPMeta2/Definitions/DiscussionItemDefinition.cs create mode 100644 SPMeta2/SPMeta2/Definitions/DiscussionReplyItemDefinition.cs create mode 100644 SPMeta2/SPMeta2/Syntax/Default/DiscussionItemDefinitionSyntax.cs create mode 100644 SPMeta2/SPMeta2/Syntax/Default/DiscussionReplyItemDefinitionSyntax.cs create mode 100644 SPMeta2/SPMeta2/Syntax/Default/Interfaces/IDiscussionItemModelNode.cs diff --git a/SPMeta2/SPMeta2.Build/m2.buildbaseline.xml b/SPMeta2/SPMeta2.Build/m2.buildbaseline.xml index 62523bd8a..411195f9b 100644 --- a/SPMeta2/SPMeta2.Build/m2.buildbaseline.xml +++ b/SPMeta2/SPMeta2.Build/m2.buildbaseline.xml @@ -1 +1 @@ -SPMeta2.dllSPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AlternateUrlDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AnonymousAccessSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeveloperDashboardSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AppDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AuditSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ClearRecycleBinDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ComposedLookItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ComposedLookItemLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentDatabaseDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteQuickLaunchNavigationNodesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteWebPartsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.LookupFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.DependentLookupFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DocumentParserDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.MultiChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.ChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.OutcomeChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.GeolocationFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemFieldValuesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.HtmlMasterPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPagePreviewDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PeoplePickerSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ResetRoleInheritanceDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SupportedUICultureDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteTopNavigationNodesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TreeViewSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.RootWebDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiagnosticsServiceBaseDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.EventReceiverDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.CalculatedFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.NumberFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.GuidFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.ComputedFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.URLFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.UserFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.DateTimeFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.BooleanFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.NoteFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.CurrencyFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.TextFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.InformationRightsManagementSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPageSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.RegionalSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecureStoreApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TargetApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TrustedAccessProviderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebConfigModificationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogAdminWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogLinksWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogMonthQuickLaunchDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.DataFormWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.GettingStartedWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ImageWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.MembersWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.PageViewerWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.PictureLibrarySlideshowWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SilverlightWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SimpleFormWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SPTimelineWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserCodeWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserDocsWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserTasksWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.WebPartGalleryFileDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.XmlWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.UserDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WorkflowAssociationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AppPrincipalDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.BreakRoleInheritanceDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.RemoveContentTypeFieldLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.HideContentTypeFieldLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.UniqueContentTypeFieldsOrderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FarmSolutionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.BusinessDataFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.RemoveContentTypeLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.JobDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ManagedAccountDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SandboxSolutionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.HideContentTypeLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.UniqueContentTypeOrderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ClientWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ScriptEditorWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ContentEditorWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ListViewWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.XsltListViewWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WelcomePageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeFieldLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FolderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListFieldLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ModuleFileDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PrefixDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.QuickLaunchNavigationNodeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SP2013WorkflowDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SP2013WorkflowSubscriptionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TopNavigationNodeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.UserCustomActionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FarmDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PropertyDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FeatureDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListViewDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityGroupDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityGroupLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityRoleDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityRoleLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SiteDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebPartPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WikiPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemFieldValueDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DiscussionBoardListDefinitionValidationModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.BooleanFieldDefinitionValidationModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultContentTypeIdPropertyModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultRequiredPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultNotAbsoluteUrlPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultVersionBasedPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultFieldInternalNamePropertyModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultXmlBasedPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.dllSPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DesignPackageDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ProfileTypePropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.CorePropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DocumentSetDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.ControlDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.FilterDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ManagedPropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.MetadataNavigationSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ReusableHTMLItemDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ReusableTextItemDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.AdvancedSearchBoxDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CategoryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CommunityAdminWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CommunityJoinWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.DocumentSetContentsWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.DocumentSetPropertiesWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.MyMembershipWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ProjectSummaryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.RefinementScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.RSSAggregatorWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SearchBoxScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SearchNavigationWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SiteDocumentsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SocialCommentWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.TableOfContentsWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.TagCloudWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.CustomDocumentIdProviderDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.JavaScriptDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.ItemDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.MediaFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.SummaryLinkFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.LinkFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.ImageFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.HTMLFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PageLayoutAndSiteTemplateSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.AudienceDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.TaxonomyFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ImageRenditionDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PublishingPageLayoutDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PublishingPageDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchConfigurationDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchResultDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermLabelDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.WebNavigationSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContactFieldControlDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContentBySearchWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContentByQueryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ResultScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SiteFeedWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SummaryLinkWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermGroupDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermSetDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermStoreDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Services.ServiceModelHandlers.PublishingPageDefinitionValidationModelHandler, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.dllSPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AnonymousAccessSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AppModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AppPrincipalModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Base.WebPartGalleryFileModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.BreakRoleInheritanceModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ClearRecycleBinModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ComposedLookItemLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeFieldLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.HideContentTypeFieldLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.RemoveContentTypeFieldLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.UniqueContentTypeFieldsOrderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.HideContentTypeLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.RemoveContentTypeLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.UniqueContentTypeOrderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.QuickLaunchNavigationNodeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteQuickLaunchNavigationNodesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.TopNavigationNodeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteTopNavigationNodesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteWebPartsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.EventReceiverModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FeatureModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.LookupFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.DependentLookupFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.MultiChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.ChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.OutcomeChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.GeolocationFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.CalculatedFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.ComputedFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.NumberFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.GuidFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.URLFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.UserFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.BooleanFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.DateTimeFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.TextFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.NoteFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.CurrencyFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.BusinessDataFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FolderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.InformationRightsManagementSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListFieldLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemFieldValuesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemFieldValueModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.UserModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListViewModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.HtmlMasterPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPagePreviewModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPageSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.PropertyModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.RegionalSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ResetRoleInheritanceModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ComposedLookItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityGroupLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityGroupModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityRoleLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityRoleModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SiteModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SP2013WorkflowSubscriptionDefinitionModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SupportedUICultureModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.TreeViewSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.UserCustomActionModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.RootWebModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebPartPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogAdminWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogLinksWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogMonthQuickLaunchModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.DataFormWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.GettingStartedWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ImageWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.MembersWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.PageViewerWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.PictureLibrarySlideshowWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SilverlightWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SimpleFormWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SPTimelineWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserCodePartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ClientWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ScriptEditorWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ContentEditorWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ListViewWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserDocsWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserTasksWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.XmlWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WelcomePageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WorkflowAssociationModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WikiPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.XsltListViewWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ModuleFileModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SP2013WorkflowDefinitionHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.dllSPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.ControlDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.FilterDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.JavaScriptDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.ItemDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DesignPackageModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.SummaryLinkFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.MediaFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.LinkFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.HTMLFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.ImageFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.TaxonomyFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DocumentSetModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ImageRenditionModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.MetadataNavigationSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PageLayoutAndSiteTemplateSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PublishingPageLayoutModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PublishingPageModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ReusableHTMLItemModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ReusableTextItemModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchConfigurationModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchResultModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyGroupModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermLabelModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermSetModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermStoreModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.WebNavigationSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.AdvancedSearchBoxModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CategoryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CommunityAdminWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CommunityJoinWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContentBySearchWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.DocumentSetContentsWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.DocumentSetPropertiesWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.MyMembershipWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.RefinementScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ResultScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ProjectSummaryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.RSSAggregatorWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SearchBoxScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SearchNavigationWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SiteDocumentsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SocialCommentWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SummaryLinkWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContactFieldControlModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContentByQueryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SiteFeedWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.TableOfContentsWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.TagCloudWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SandboxSolutionModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.dllSPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AnonymousAccessSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AuditSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TopNavigationNodeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteTopNavigationNodesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.QuickLaunchNavigationNodeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteQuickLaunchNavigationNodesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ClearRecycleBinModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ComposedLookItemLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteWebPartsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DocumentParserModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AlternateUrlModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AppModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AppPrincipalModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.HideContentTypeFieldLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.RemoveContentTypeFieldLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.RemoveContentTypeLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.HideContentTypeLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.UniqueContentTypeFieldsOrderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiagnosticsServiceBaseModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.EventReceiverModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FarmSolutionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.LookupFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.DependentLookupFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.GeolocationFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.MultiChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.ChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.OutcomeChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.URLFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.CalculatedFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.ComputedFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.DateTimeFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.BooleanFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.GuidFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.NumberFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.TextFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.NoteFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.CurrencyFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.UserFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentDatabaseModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.InformationRightsManagementSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemFieldValuesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.HtmlMasterPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPagePreviewModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PeoplePickerSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ResetRoleInheritanceModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ComposedLookItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.UserModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SupportedUICultureModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TreeViewSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ManagedAccountModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPageSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PropertyModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.BreakRoleInheritanceModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeFieldLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FeatureModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.BusinessDataFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FolderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.JobModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListFieldLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemFieldValueModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ModuleFileModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PrefixModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.RegionalSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SandboxSolutionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecureStoreApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SP2013WorkflowDefinitionHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SP2013WorkflowSubscriptionDefinitionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TargetApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.UniqueContentTypeOrderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.UserCustomActionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeveloperDashboardSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TrustedAccessProviderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebConfigModificationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.RootWebModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FarmModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListViewModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityGroupLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityGroupModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityRoleLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityRoleModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SiteModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebPartPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogAdminWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogLinksWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogMonthQuickLaunchModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ClientWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.DataFormWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.GettingStartedWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ImageWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ListViewWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.MembersWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.PageViewerWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.PictureLibrarySlideshowWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SilverlightWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SimpleFormWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SPTimelineWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserCodePartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserDocsWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserTasksWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.WebPartGalleryFileModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.XmlWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.XsltListViewWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ScriptEditorWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ContentEditorWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WelcomePageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WikiPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WorkflowAssociationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.dllSPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DesignPackageModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.CorePropertyModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DocumentSetModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.ControlDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.FilterDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.JavaScriptDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.ItemDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.SummaryLinkFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.MediaFieldDefinitionModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.HTMLFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.ImageFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.LinkFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ManagedPropertyModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.MetadataNavigationSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ReusableTextItemModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ReusableHTMLItemModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.CustomDocumentIdProviderModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PageLayoutAndSiteTemplateSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.TaxonomyFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.AudienceModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ImageRenditionModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PublishingPageLayoutModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PublishingPageModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchResultModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchConfigurationModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermLabelModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermStoreModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermSetModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyGroupModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.WebNavigationSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.AdvancedSearchBoxModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CategoryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CommunityAdminWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CommunityJoinWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContentBySearchWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.DocumentSetContentsWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.DocumentSetPropertiesWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.MyMembershipWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.RefinementScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ResultScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.RSSAggregatorWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SearchBoxScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SearchNavigationWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SiteDocumentsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SocialCommentWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SummaryLinkWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContactFieldControlModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContentByQueryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SiteFeedWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.TableOfContentsWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.TagCloudWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ProjectSummaryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531a \ No newline at end of file +SPMeta2.dllSPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AlternateUrlDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AnonymousAccessSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeveloperDashboardSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AppDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AuditSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ClearRecycleBinDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ComposedLookItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ComposedLookItemLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentDatabaseDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteQuickLaunchNavigationNodesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteWebPartsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiscussionReplyItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.LookupFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.DependentLookupFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DocumentParserDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.MultiChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.ChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.OutcomeChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.GeolocationFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiscussionItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemFieldValuesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.HtmlMasterPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPagePreviewDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PeoplePickerSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ResetRoleInheritanceDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SupportedUICultureDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteTopNavigationNodesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TreeViewSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.RootWebDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiagnosticsServiceBaseDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.EventReceiverDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.CalculatedFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.NumberFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.GuidFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.ComputedFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.URLFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.UserFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.DateTimeFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.BooleanFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.NoteFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.CurrencyFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.TextFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.InformationRightsManagementSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPageSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.RegionalSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecureStoreApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TargetApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TrustedAccessProviderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebConfigModificationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogAdminWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogLinksWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogMonthQuickLaunchDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.DataFormWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.GettingStartedWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ImageWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.MembersWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.PageViewerWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.PictureLibrarySlideshowWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SilverlightWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SimpleFormWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SPTimelineWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserCodeWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserDocsWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserTasksWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.WebPartGalleryFileDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.XmlWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.UserDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WorkflowAssociationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AppPrincipalDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.BreakRoleInheritanceDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.RemoveContentTypeFieldLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.HideContentTypeFieldLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.UniqueContentTypeFieldsOrderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FarmSolutionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.BusinessDataFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.RemoveContentTypeLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.JobDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ManagedAccountDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SandboxSolutionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.HideContentTypeLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.UniqueContentTypeOrderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ClientWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ScriptEditorWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ContentEditorWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ListViewWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.XsltListViewWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WelcomePageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeFieldLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FolderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListFieldLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ModuleFileDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PrefixDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.QuickLaunchNavigationNodeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SP2013WorkflowDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SP2013WorkflowSubscriptionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TopNavigationNodeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.UserCustomActionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FarmDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PropertyDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FeatureDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListViewDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityGroupDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityGroupLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityRoleDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityRoleLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SiteDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebPartPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WikiPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemFieldValueDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DiscussionBoardListDefinitionValidationModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.BooleanFieldDefinitionValidationModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultContentTypeIdPropertyModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultRequiredPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultNotAbsoluteUrlPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultVersionBasedPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultFieldInternalNamePropertyModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultXmlBasedPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.dllSPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DesignPackageDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ProfileTypePropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.CorePropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DocumentSetDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.ControlDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.FilterDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ManagedPropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.MetadataNavigationSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ReusableHTMLItemDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ReusableTextItemDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.AdvancedSearchBoxDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CategoryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CommunityAdminWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CommunityJoinWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.DocumentSetContentsWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.DocumentSetPropertiesWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.MyMembershipWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ProjectSummaryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.RefinementScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.RSSAggregatorWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SearchBoxScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SearchNavigationWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SiteDocumentsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SocialCommentWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.TableOfContentsWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.TagCloudWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.CustomDocumentIdProviderDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.JavaScriptDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.ItemDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.MediaFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.SummaryLinkFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.LinkFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.ImageFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.HTMLFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PageLayoutAndSiteTemplateSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.AudienceDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.TaxonomyFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ImageRenditionDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PublishingPageLayoutDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PublishingPageDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchConfigurationDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchResultDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermLabelDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.WebNavigationSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContactFieldControlDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContentBySearchWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContentByQueryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ResultScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SiteFeedWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SummaryLinkWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermGroupDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermSetDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermStoreDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Services.ServiceModelHandlers.PublishingPageDefinitionValidationModelHandler, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.dllSPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AnonymousAccessSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AppModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AppPrincipalModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Base.WebPartGalleryFileModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.BreakRoleInheritanceModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ClearRecycleBinModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ComposedLookItemLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeFieldLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.HideContentTypeFieldLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.RemoveContentTypeFieldLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.UniqueContentTypeFieldsOrderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.HideContentTypeLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.RemoveContentTypeLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.UniqueContentTypeOrderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.QuickLaunchNavigationNodeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteQuickLaunchNavigationNodesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.TopNavigationNodeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteTopNavigationNodesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteWebPartsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DiscussionReplyItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.EventReceiverModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FeatureModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.LookupFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.DependentLookupFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.MultiChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.ChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.OutcomeChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.GeolocationFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.CalculatedFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.ComputedFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.NumberFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.GuidFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.URLFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.UserFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.BooleanFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.DateTimeFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.TextFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.NoteFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.CurrencyFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.BusinessDataFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FolderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.InformationRightsManagementSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListFieldLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemFieldValuesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemFieldValueModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DiscussionItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.UserModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListViewModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.HtmlMasterPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPagePreviewModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPageSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.PropertyModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.RegionalSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ResetRoleInheritanceModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ComposedLookItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityGroupLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityGroupModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityRoleLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityRoleModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SiteModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SP2013WorkflowSubscriptionDefinitionModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SupportedUICultureModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.TreeViewSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.UserCustomActionModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.RootWebModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebPartPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogAdminWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogLinksWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogMonthQuickLaunchModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.DataFormWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.GettingStartedWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ImageWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.MembersWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.PageViewerWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.PictureLibrarySlideshowWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SilverlightWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SimpleFormWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SPTimelineWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserCodePartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ClientWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ScriptEditorWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ContentEditorWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ListViewWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserDocsWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserTasksWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.XmlWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WelcomePageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WorkflowAssociationModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WikiPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.XsltListViewWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ModuleFileModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SP2013WorkflowDefinitionHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.dllSPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.ControlDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.FilterDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.JavaScriptDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.ItemDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DesignPackageModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.SummaryLinkFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.MediaFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.LinkFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.HTMLFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.ImageFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.TaxonomyFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DocumentSetModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ImageRenditionModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.MetadataNavigationSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PageLayoutAndSiteTemplateSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PublishingPageLayoutModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PublishingPageModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ReusableHTMLItemModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ReusableTextItemModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchConfigurationModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchResultModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyGroupModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermLabelModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermSetModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermStoreModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.WebNavigationSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.AdvancedSearchBoxModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CategoryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CommunityAdminWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CommunityJoinWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContentBySearchWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.DocumentSetContentsWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.DocumentSetPropertiesWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.MyMembershipWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.RefinementScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ResultScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ProjectSummaryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.RSSAggregatorWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SearchBoxScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SearchNavigationWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SiteDocumentsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SocialCommentWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SummaryLinkWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContactFieldControlModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContentByQueryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SiteFeedWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.TableOfContentsWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.TagCloudWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SandboxSolutionModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.dllSPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AnonymousAccessSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AuditSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TopNavigationNodeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteTopNavigationNodesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.QuickLaunchNavigationNodeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteQuickLaunchNavigationNodesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ClearRecycleBinModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ComposedLookItemLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteWebPartsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiscussionReplyItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DocumentParserModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AlternateUrlModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AppModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AppPrincipalModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.HideContentTypeFieldLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.RemoveContentTypeFieldLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.RemoveContentTypeLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.HideContentTypeLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.UniqueContentTypeFieldsOrderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiagnosticsServiceBaseModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.EventReceiverModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FarmSolutionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.LookupFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.DependentLookupFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.GeolocationFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.MultiChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.ChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.OutcomeChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.URLFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.CalculatedFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.ComputedFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.DateTimeFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.BooleanFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.GuidFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.NumberFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.TextFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.NoteFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.CurrencyFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.UserFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentDatabaseModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.InformationRightsManagementSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemFieldValuesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.HtmlMasterPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiscussionItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPagePreviewModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PeoplePickerSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ResetRoleInheritanceModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ComposedLookItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.UserModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SupportedUICultureModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TreeViewSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ManagedAccountModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPageSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PropertyModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.BreakRoleInheritanceModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeFieldLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FeatureModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.BusinessDataFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FolderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.JobModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListFieldLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemFieldValueModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ModuleFileModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PrefixModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.RegionalSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SandboxSolutionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecureStoreApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SP2013WorkflowDefinitionHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SP2013WorkflowSubscriptionDefinitionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TargetApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.UniqueContentTypeOrderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.UserCustomActionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeveloperDashboardSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TrustedAccessProviderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebConfigModificationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.RootWebModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FarmModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListViewModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityGroupLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityGroupModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityRoleLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityRoleModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SiteModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebPartPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogAdminWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogLinksWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogMonthQuickLaunchModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ClientWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.DataFormWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.GettingStartedWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ImageWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ListViewWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.MembersWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.PageViewerWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.PictureLibrarySlideshowWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SilverlightWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SimpleFormWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SPTimelineWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserCodePartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserDocsWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserTasksWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.WebPartGalleryFileModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.XmlWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.XsltListViewWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ScriptEditorWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ContentEditorWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WelcomePageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WikiPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WorkflowAssociationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.dllSPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DesignPackageModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.CorePropertyModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DocumentSetModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.ControlDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.FilterDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.JavaScriptDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.ItemDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.SummaryLinkFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.MediaFieldDefinitionModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.HTMLFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.ImageFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.LinkFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ManagedPropertyModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.MetadataNavigationSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ReusableTextItemModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ReusableHTMLItemModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.CustomDocumentIdProviderModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PageLayoutAndSiteTemplateSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.TaxonomyFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.AudienceModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ImageRenditionModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PublishingPageLayoutModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PublishingPageModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchResultModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchConfigurationModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermLabelModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermStoreModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermSetModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyGroupModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.WebNavigationSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.AdvancedSearchBoxModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CategoryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CommunityAdminWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CommunityJoinWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContentBySearchWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.DocumentSetContentsWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.DocumentSetPropertiesWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.MyMembershipWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.RefinementScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ResultScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.RSSAggregatorWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SearchBoxScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SearchNavigationWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SiteDocumentsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SocialCommentWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SummaryLinkWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContactFieldControlModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContentByQueryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SiteFeedWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.TableOfContentsWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.TagCloudWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ProjectSummaryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531a \ No newline at end of file diff --git a/SPMeta2/SPMeta2.CSOM/ModelHandlers/DiscussionItemModelHandler.cs b/SPMeta2/SPMeta2.CSOM/ModelHandlers/DiscussionItemModelHandler.cs new file mode 100644 index 000000000..74cceeea0 --- /dev/null +++ b/SPMeta2/SPMeta2.CSOM/ModelHandlers/DiscussionItemModelHandler.cs @@ -0,0 +1,42 @@ +using Microsoft.SharePoint.Client; +using SPMeta2.Common; +using SPMeta2.CSOM.Extensions; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.Enumerations; +using SPMeta2.Exceptions; +using SPMeta2.ModelHandlers; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using SPMeta2.Services; +using SPMeta2.Utils; +using SPMeta2.CSOM.ModelHosts; + +using SPMeta2.ModelHosts; + +namespace SPMeta2.CSOM.ModelHandlers +{ + public class DiscussionItemModelHandler : ListItemModelHandler + { + #region properties + + public override Type TargetType + { + get { return typeof(DiscussionItemDefinition); } + } + + #endregion + + #region methods + + public override void DeployModel(object modelHost, DefinitionBase model) + { + // TODO + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.CSOM/ModelHandlers/DiscussionReplyItemModelHandler.cs b/SPMeta2/SPMeta2.CSOM/ModelHandlers/DiscussionReplyItemModelHandler.cs new file mode 100644 index 000000000..c301a22f3 --- /dev/null +++ b/SPMeta2/SPMeta2.CSOM/ModelHandlers/DiscussionReplyItemModelHandler.cs @@ -0,0 +1,42 @@ +using Microsoft.SharePoint.Client; +using SPMeta2.Common; +using SPMeta2.CSOM.Extensions; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.Enumerations; +using SPMeta2.Exceptions; +using SPMeta2.ModelHandlers; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using SPMeta2.Services; +using SPMeta2.Utils; +using SPMeta2.CSOM.ModelHosts; + +using SPMeta2.ModelHosts; + +namespace SPMeta2.CSOM.ModelHandlers +{ + public class DiscussionReplyItemModelHandler : ListItemModelHandler + { + #region properties + + public override Type TargetType + { + get { return typeof(DiscussionReplyItemDefinition); } + } + + #endregion + + #region methods + + public override void DeployModel(object modelHost, DefinitionBase model) + { + // TODO + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj b/SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj index ed9f39d7b..0dc02f8bf 100644 --- a/SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj +++ b/SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj @@ -177,6 +177,7 @@ + @@ -203,6 +204,7 @@ + diff --git a/SPMeta2/SPMeta2.Containers/DefinitionGenerators/DiscussionItemDefinitionGenerator.cs b/SPMeta2/SPMeta2.Containers/DefinitionGenerators/DiscussionItemDefinitionGenerator.cs new file mode 100644 index 000000000..996e74661 --- /dev/null +++ b/SPMeta2/SPMeta2.Containers/DefinitionGenerators/DiscussionItemDefinitionGenerator.cs @@ -0,0 +1,18 @@ +using System; +using SPMeta2.Containers.Services.Base; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; + +namespace SPMeta2.Containers.DefinitionGenerators +{ + public class DiscussionItemDefinitionGenerator : TypedDefinitionGeneratorServiceBase + { + public override DefinitionBase GenerateRandomDefinition(Action action) + { + return WithEmptyDefinition(def => + { + // TODO + }); + } + } +} diff --git a/SPMeta2/SPMeta2.Containers/DefinitionGenerators/DiscussionReplyItemDefinitionGenerator.cs b/SPMeta2/SPMeta2.Containers/DefinitionGenerators/DiscussionReplyItemDefinitionGenerator.cs new file mode 100644 index 000000000..f4677bd91 --- /dev/null +++ b/SPMeta2/SPMeta2.Containers/DefinitionGenerators/DiscussionReplyItemDefinitionGenerator.cs @@ -0,0 +1,18 @@ +using System; +using SPMeta2.Containers.Services.Base; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; + +namespace SPMeta2.Containers.DefinitionGenerators +{ + public class DiscussionReplyItemDefinitionGenerator : TypedDefinitionGeneratorServiceBase + { + public override DefinitionBase GenerateRandomDefinition(Action action) + { + return WithEmptyDefinition(def => + { + // TODO + }); + } + } +} diff --git a/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj b/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj index 3ae8bed59..c65c72fce 100644 --- a/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj +++ b/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj @@ -119,7 +119,9 @@ + + diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Random/RandomDefinitionTest.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Random/RandomDefinitionTest.cs index 1ffef9c74..0b399775e 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Impl/Random/RandomDefinitionTest.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Random/RandomDefinitionTest.cs @@ -785,6 +785,24 @@ public void CanDeployRandom_PageLayoutAndSiteTemplateSettingsDefinition() #endregion + #region discusison board + + [TestMethod] + [TestCategory("Regression.Rnd.List.DiscussionBoard")] + public void CanDeployRandom_DiscussionItemDefinition() + { + TestRandomDefinition(); + } + + [TestMethod] + [TestCategory("Regression.Rnd.List.DiscussionBoard")] + public void CanDeployRandom_DiscussionReplyItemDefinition() + { + TestRandomDefinition(); + } + + #endregion + #region list scope [TestMethod] diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Syntax/TypedSyntaxTests.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Syntax/TypedSyntaxTests.cs index f0631c800..6443af3a0 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Impl/Syntax/TypedSyntaxTests.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Syntax/TypedSyntaxTests.cs @@ -208,6 +208,11 @@ public void CanPassTypedSyntax_WebLevel() web.AddList(new ListDefinition(), list => { + list.AddDiscussionItem(new DiscussionItemDefinition(), item => + { + item.AddDiscussionReplyItem(new DiscussionReplyItemDefinition()); + }); + list.AddDocumentSet(new DocumentSetDefinition()); list.AddAuditSettings(new AuditSettingsDefinition()); diff --git a/SPMeta2/SPMeta2.SSOM/ModelHandlers/DiscussionItemModelHandler.cs b/SPMeta2/SPMeta2.SSOM/ModelHandlers/DiscussionItemModelHandler.cs new file mode 100644 index 000000000..160967be3 --- /dev/null +++ b/SPMeta2/SPMeta2.SSOM/ModelHandlers/DiscussionItemModelHandler.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using Microsoft.SharePoint; +using SPMeta2.Common; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.Enumerations; +using SPMeta2.Exceptions; +using SPMeta2.ModelHandlers; +using SPMeta2.Services; +using SPMeta2.Utils; +using SPMeta2.SSOM.ModelHosts; + +namespace SPMeta2.SSOM.ModelHandlers +{ + public class DiscussionItemModelHandler : ListItemModelHandler + { + #region properties + + public override Type TargetType + { + get { return typeof(DiscussionItemDefinition); } + } + + #endregion + + #region methods + + public override void DeployModel(object modelHost, DefinitionBase model) + { + // TODO + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.SSOM/ModelHandlers/DiscussionReplyItemModelHandler.cs b/SPMeta2/SPMeta2.SSOM/ModelHandlers/DiscussionReplyItemModelHandler.cs new file mode 100644 index 000000000..c073beb44 --- /dev/null +++ b/SPMeta2/SPMeta2.SSOM/ModelHandlers/DiscussionReplyItemModelHandler.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using Microsoft.SharePoint; +using SPMeta2.Common; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.Enumerations; +using SPMeta2.Exceptions; +using SPMeta2.ModelHandlers; +using SPMeta2.Services; +using SPMeta2.Utils; +using SPMeta2.SSOM.ModelHosts; + +namespace SPMeta2.SSOM.ModelHandlers +{ + public class DiscussionReplyItemModelHandler : ListItemModelHandler + { + #region properties + + public override Type TargetType + { + get { return typeof(DiscussionReplyItemDefinition); } + } + + #endregion + + #region methods + + public override void DeployModel(object modelHost, DefinitionBase model) + { + // TODO + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj b/SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj index 520cbbdb9..5ea25fb3e 100644 --- a/SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj +++ b/SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj @@ -209,6 +209,7 @@ + @@ -245,6 +246,7 @@ + diff --git a/SPMeta2/SPMeta2/Definitions/DiscussionItemDefinition.cs b/SPMeta2/SPMeta2/Definitions/DiscussionItemDefinition.cs new file mode 100644 index 000000000..fa9d395e6 --- /dev/null +++ b/SPMeta2/SPMeta2/Definitions/DiscussionItemDefinition.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using SPMeta2.Attributes; +using SPMeta2.Attributes.Capabilities; +using SPMeta2.Attributes.Identity; +using SPMeta2.Attributes.Regression; +using SPMeta2.Utils; + +namespace SPMeta2.Definitions +{ + /// + /// Allows to define and deploy discussion item to the target discussion list. + /// + /// + [SPObjectType(SPObjectModelType.SSOM, "Microsoft.SharePoint.SPListItem", "Microsoft.SharePoint")] + [SPObjectType(SPObjectModelType.CSOM, "Microsoft.SharePoint.Client.ListItem", "Microsoft.SharePoint.Client")] + + [DefaultRootHost(typeof(WebDefinition))] + [DefaultParentHost(typeof(ListDefinition))] + + //[ExpectAddHostExtensionMethod] + [Serializable] + [DataContract] + //[ExpectWithExtensionMethod] + [ExpectArrayExtensionMethod] + + [ParentHostCapability(typeof(ListDefinition))] + + [ExpectManyInstances] + public class DiscussionItemDefinition : ListItemDefinition + { + #region constructors + + public DiscussionItemDefinition() + { + + } + + #endregion + + #region properties + + /// + /// Body of the discussion. + /// + [ExpectValidation] + [ExpectRequired] + [DataMember] + public string Body { get; set; } + + + #endregion + + #region methods + + public override string ToString() + { + return new ToStringResult(this) + .AddPropertyValue(p => p.Body) + .ToString(); + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2/Definitions/DiscussionReplyItemDefinition.cs b/SPMeta2/SPMeta2/Definitions/DiscussionReplyItemDefinition.cs new file mode 100644 index 000000000..d16bf71a8 --- /dev/null +++ b/SPMeta2/SPMeta2/Definitions/DiscussionReplyItemDefinition.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using SPMeta2.Attributes; +using SPMeta2.Attributes.Capabilities; +using SPMeta2.Attributes.Identity; +using SPMeta2.Attributes.Regression; +using SPMeta2.Utils; + +namespace SPMeta2.Definitions +{ + /// + /// Allows to define and deploy discussion item reply to the target discussion list. + /// + /// + [SPObjectType(SPObjectModelType.SSOM, "Microsoft.SharePoint.SPListItem", "Microsoft.SharePoint")] + [SPObjectType(SPObjectModelType.CSOM, "Microsoft.SharePoint.Client.ListItem", "Microsoft.SharePoint.Client")] + + [DefaultRootHost(typeof(WebDefinition))] + [DefaultParentHost(typeof(DiscussionItemDefinition))] + + //[ExpectAddHostExtensionMethod] + [Serializable] + [DataContract] + //[ExpectWithExtensionMethod] + [ExpectArrayExtensionMethod] + + [ParentHostCapability(typeof(DiscussionItemDefinition))] + + [ExpectManyInstances] + public class DiscussionReplyItemDefinition : ListItemDefinition + { + #region constructors + + public DiscussionReplyItemDefinition() + { + + } + + #endregion + + #region properties + + /// + /// Body of the discussion reply. + /// + [ExpectValidation] + [ExpectRequired] + [DataMember] + public string Body { get; set; } + + + #endregion + + #region methods + + public override string ToString() + { + return new ToStringResult(this) + .AddPropertyValue(p => p.Body) + .ToString(); + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2/SPMeta2.csproj b/SPMeta2/SPMeta2/SPMeta2.csproj index 1959dfeef..b38299d1c 100644 --- a/SPMeta2/SPMeta2/SPMeta2.csproj +++ b/SPMeta2/SPMeta2/SPMeta2.csproj @@ -152,10 +152,12 @@ + + @@ -418,12 +420,14 @@ + + @@ -472,6 +476,7 @@ + diff --git a/SPMeta2/SPMeta2/Syntax/Default/DiscussionItemDefinitionSyntax.cs b/SPMeta2/SPMeta2/Syntax/Default/DiscussionItemDefinitionSyntax.cs new file mode 100644 index 000000000..606dddaa7 --- /dev/null +++ b/SPMeta2/SPMeta2/Syntax/Default/DiscussionItemDefinitionSyntax.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using SPMeta2.Definitions; +using SPMeta2.Models; + +namespace SPMeta2.Syntax.Default +{ + + [Serializable] + [DataContract] + public class DiscussionItemModelNode : TypedModelNode, IListItemModelNode, + ISecurableObjectHostModelNode, + IDiscussionItemModelNode + { + + } + + public static class DiscussionItemDefinitionSyntax + { + #region methods + + public static TModelNode AddDiscussionItem(this TModelNode model, DiscussionItemDefinition definition) + where TModelNode : ModelNode, IListItemHostModelNode, new() + { + return AddDiscussionItem(model, definition, null); + } + + public static TModelNode AddDiscussionItem(this TModelNode model, DiscussionItemDefinition definition, + Action action) + where TModelNode : ModelNode, IListItemHostModelNode, new() + { + return model.AddTypedDefinitionNode(definition, action); + } + + #endregion + + #region array overload + + public static TModelNode AddDiscussionItems(this TModelNode model, IEnumerable definitions) + where TModelNode : ModelNode, IListItemHostModelNode, new() + { + foreach (var definition in definitions) + model.AddDefinitionNode(definition); + + return model; + } + + #endregion + + #region add host + + + + #endregion + } +} diff --git a/SPMeta2/SPMeta2/Syntax/Default/DiscussionReplyItemDefinitionSyntax.cs b/SPMeta2/SPMeta2/Syntax/Default/DiscussionReplyItemDefinitionSyntax.cs new file mode 100644 index 000000000..36bac8037 --- /dev/null +++ b/SPMeta2/SPMeta2/Syntax/Default/DiscussionReplyItemDefinitionSyntax.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using SPMeta2.Definitions; +using SPMeta2.Models; + +namespace SPMeta2.Syntax.Default +{ + + [Serializable] + [DataContract] + public class DiscussionReplyItemModelNode : TypedModelNode, IListItemModelNode, + ISecurableObjectHostModelNode + { + + } + + public static class DiscussionReplyItemDefinitionSyntax + { + #region methods + + public static TModelNode AddDiscussionReplyItem(this TModelNode model, DiscussionReplyItemDefinition definition) + where TModelNode : ModelNode, IDiscussionItemModelNode, new() + { + return AddDiscussionReplyItem(model, definition, null); + } + + public static TModelNode AddDiscussionReplyItem(this TModelNode model, DiscussionReplyItemDefinition definition, + Action action) + where TModelNode : ModelNode, IDiscussionItemModelNode, new() + { + return model.AddTypedDefinitionNode(definition, action); + } + + #endregion + + #region array overload + + public static TModelNode AddDiscussionReplyItems(this TModelNode model, IEnumerable definitions) + where TModelNode : ModelNode, IDiscussionItemModelNode, new() + { + foreach (var definition in definitions) + model.AddDefinitionNode(definition); + + return model; + } + + #endregion + + #region add host + + + + #endregion + } +} diff --git a/SPMeta2/SPMeta2/Syntax/Default/Interfaces/IDiscussionItemModelNode.cs b/SPMeta2/SPMeta2/Syntax/Default/Interfaces/IDiscussionItemModelNode.cs new file mode 100644 index 000000000..192737b93 --- /dev/null +++ b/SPMeta2/SPMeta2/Syntax/Default/Interfaces/IDiscussionItemModelNode.cs @@ -0,0 +1,7 @@ +namespace SPMeta2.Syntax.Default +{ + public interface IDiscussionItemModelNode : IHostModelNode + { + + } +} From c28c20e95d4222b879ef59fd65e99144835e34f4 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Sun, 9 Oct 2016 21:38:53 -0700 Subject: [PATCH 03/27] + Enhance web part provision - add audience targeting support #517 + Added WebPartDefinition.AuthorizationFilter property + Added CanDeploy_Webpart_With_AuthorizationFilter test + CSOM impl and tests --- .../ModelHandlers/WebPartModelHandler.cs | 1591 +++++++------- .../Validation/WebPartDefinitionValidator.cs | 24 + .../Impl/Scenarios/WebpartScenariosTest.cs | 34 + .../Definitions/Base/WebPartDefinitionBase.cs | 493 ++--- SPMeta2/SPMeta2/Utils/WebpartXmlExtensions.cs | 1902 +++++++++-------- 5 files changed, 2060 insertions(+), 1984 deletions(-) diff --git a/SPMeta2/SPMeta2.CSOM/ModelHandlers/WebPartModelHandler.cs b/SPMeta2/SPMeta2.CSOM/ModelHandlers/WebPartModelHandler.cs index a3c3bfd3b..ff08745f1 100644 --- a/SPMeta2/SPMeta2.CSOM/ModelHandlers/WebPartModelHandler.cs +++ b/SPMeta2/SPMeta2.CSOM/ModelHandlers/WebPartModelHandler.cs @@ -1,813 +1,816 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Xml.Linq; -using Microsoft.SharePoint.Client; -using Microsoft.SharePoint.Client.WebParts; -using SPMeta2.BuiltInDefinitions; -using SPMeta2.Common; -using SPMeta2.CSOM.DefaultSyntax; -using SPMeta2.CSOM.Extensions; -using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; -using SPMeta2.Enumerations; -using SPMeta2.ModelHandlers; -using SPMeta2.Services; -using SPMeta2.Utils; -using WebPartDefinition = SPMeta2.Definitions.WebPartDefinition; -using System.Xml; -using SPMeta2.CSOM.ModelHosts; -using SPMeta2.Exceptions; -using System.Text; -using System.IO; -using System.Security; -using SPMeta2.Definitions.Webparts; -using SPMeta2.Services.Webparts; -using File = Microsoft.SharePoint.Client.File; - -namespace SPMeta2.CSOM.ModelHandlers -{ - public class WebPartModelHandler : CSOMModelHandlerBase - { - #region contructors - - public WebPartModelHandler() - { - WebPartChromeTypesConvertService = ServiceContainer.Instance.GetService(); - } - - #endregion - - #region properties - - protected bool ShouldUseWebPartStoreKeyForWikiPage { get; set; } - protected WebPartChromeTypesConvertService WebPartChromeTypesConvertService { get; set; } - - public override Type TargetType - { - get { return typeof(WebPartDefinition); } - } - - // TODO, depends on SP version - - #endregion - - #region classes - - protected class WebPartProcessingContext - { - public Guid? WebPartStoreKey { get; set; } - public ListItemModelHost ListItemModelHost { get; set; } - public WebPartDefinitionBase WebPartDefinition { get; set; } - } - - #endregion - - #region methods - - //protected void WithExistingWebPart(ListItem listItem, WebPartDefinition webPartModel, - // Action action) - //{ - // WithExistingWebPart(listItem.File, webPartModel, action); - //} - - protected void WithExistingWebPart(File file, WebPartDefinition webPartModel, - Action action) - { - WithExistingWebPart(file, webPartModel, (w, d) => - { - action(w); - }); - } - - //protected void WithExistingWebPart(ListItem listItem, WebPartDefinition webPartModel, - // Action action) - //{ - // WithExistingWebPart(listItem.File, webPartModel, action); - //} - - - - protected void WithExistingWebPart(File pageFile, WebPartDefinition webPartModel, - Action action) - { - var context = pageFile.Context; - var webPartManager = pageFile.GetLimitedWebPartManager(PersonalizationScope.Shared); - - // web part on the page - var webpartOnPage = webPartManager.WebParts.Include(wp => wp.Id, wp => wp.WebPart); - var webPartDefenitions = context.LoadQuery(webpartOnPage); - - context.ExecuteQueryWithTrace(); - - Microsoft.SharePoint.Client.WebParts.WebPartDefinition def = null; - var existingWebPart = FindExistingWebPart(webPartDefenitions, webPartModel, out def); - - action(existingWebPart, def); - } - - protected File GetCurrentPageFile(ListItemModelHost listItemModelHost) - { - if (listItemModelHost.HostFile != null) - return listItemModelHost.HostFile; - - return listItemModelHost.HostListItem.File; - } - - protected ListItem SearchItemByName(List list, Folder folder, string pageName) - { - var context = list.Context; - - if (folder != null) - { - if (!folder.IsPropertyAvailable("ServerRelativeUrl")) - { - folder.Context.Load(folder, f => f.ServerRelativeUrl); - folder.Context.ExecuteQueryWithTrace(); - } - } - - var dQuery = new CamlQuery(); - - string QueryString = "" + - "" + - "" + - "" + pageName + "" + - "" + - ""; - - dQuery.ViewXml = QueryString; - - if (folder != null) - dQuery.FolderServerRelativeUrl = folder.ServerRelativeUrl; - - var collListItems = list.GetItems(dQuery); - - context.Load(collListItems); - context.ExecuteQueryWithTrace(); - - return collListItems.FirstOrDefault(); - - } - - private static Dictionary _wpCache = new Dictionary(); - private static object _wpCacheLock = new object(); - - protected virtual string GetWebpartXmlDefinition(ListItemModelHost listItemModelHost, WebPartDefinitionBase webPartModel) - { - var result = string.Empty; - var context = listItemModelHost.HostList.Context; - - if (!string.IsNullOrEmpty(webPartModel.WebpartFileName)) - { +using System; +using System.Collections.Generic; +using System.Linq; +using System.Xml.Linq; +using Microsoft.SharePoint.Client; +using Microsoft.SharePoint.Client.WebParts; +using SPMeta2.BuiltInDefinitions; +using SPMeta2.Common; +using SPMeta2.CSOM.DefaultSyntax; +using SPMeta2.CSOM.Extensions; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.Enumerations; +using SPMeta2.ModelHandlers; +using SPMeta2.Services; +using SPMeta2.Utils; +using WebPartDefinition = SPMeta2.Definitions.WebPartDefinition; +using System.Xml; +using SPMeta2.CSOM.ModelHosts; +using SPMeta2.Exceptions; +using System.Text; +using System.IO; +using System.Security; +using SPMeta2.Definitions.Webparts; +using SPMeta2.Services.Webparts; +using File = Microsoft.SharePoint.Client.File; + +namespace SPMeta2.CSOM.ModelHandlers +{ + public class WebPartModelHandler : CSOMModelHandlerBase + { + #region contructors + + public WebPartModelHandler() + { + WebPartChromeTypesConvertService = ServiceContainer.Instance.GetService(); + } + + #endregion + + #region properties + + protected bool ShouldUseWebPartStoreKeyForWikiPage { get; set; } + protected WebPartChromeTypesConvertService WebPartChromeTypesConvertService { get; set; } + + public override Type TargetType + { + get { return typeof(WebPartDefinition); } + } + + // TODO, depends on SP version + + #endregion + + #region classes + + protected class WebPartProcessingContext + { + public Guid? WebPartStoreKey { get; set; } + public ListItemModelHost ListItemModelHost { get; set; } + public WebPartDefinitionBase WebPartDefinition { get; set; } + } + + #endregion + + #region methods + + //protected void WithExistingWebPart(ListItem listItem, WebPartDefinition webPartModel, + // Action action) + //{ + // WithExistingWebPart(listItem.File, webPartModel, action); + //} + + protected void WithExistingWebPart(File file, WebPartDefinition webPartModel, + Action action) + { + WithExistingWebPart(file, webPartModel, (w, d) => + { + action(w); + }); + } + + //protected void WithExistingWebPart(ListItem listItem, WebPartDefinition webPartModel, + // Action action) + //{ + // WithExistingWebPart(listItem.File, webPartModel, action); + //} + + + + protected void WithExistingWebPart(File pageFile, WebPartDefinition webPartModel, + Action action) + { + var context = pageFile.Context; + var webPartManager = pageFile.GetLimitedWebPartManager(PersonalizationScope.Shared); + + // web part on the page + var webpartOnPage = webPartManager.WebParts.Include(wp => wp.Id, wp => wp.WebPart); + var webPartDefenitions = context.LoadQuery(webpartOnPage); + + context.ExecuteQueryWithTrace(); + + Microsoft.SharePoint.Client.WebParts.WebPartDefinition def = null; + var existingWebPart = FindExistingWebPart(webPartDefenitions, webPartModel, out def); + + action(existingWebPart, def); + } + + protected File GetCurrentPageFile(ListItemModelHost listItemModelHost) + { + if (listItemModelHost.HostFile != null) + return listItemModelHost.HostFile; + + return listItemModelHost.HostListItem.File; + } + + protected ListItem SearchItemByName(List list, Folder folder, string pageName) + { + var context = list.Context; + + if (folder != null) + { + if (!folder.IsPropertyAvailable("ServerRelativeUrl")) + { + folder.Context.Load(folder, f => f.ServerRelativeUrl); + folder.Context.ExecuteQueryWithTrace(); + } + } + + var dQuery = new CamlQuery(); + + string QueryString = "" + + "" + + "" + + "" + pageName + "" + + "" + + ""; + + dQuery.ViewXml = QueryString; + + if (folder != null) + dQuery.FolderServerRelativeUrl = folder.ServerRelativeUrl; + + var collListItems = list.GetItems(dQuery); + + context.Load(collListItems); + context.ExecuteQueryWithTrace(); + + return collListItems.FirstOrDefault(); + + } + + private static Dictionary _wpCache = new Dictionary(); + private static object _wpCacheLock = new object(); + + protected virtual string GetWebpartXmlDefinition(ListItemModelHost listItemModelHost, WebPartDefinitionBase webPartModel) + { + var result = string.Empty; + var context = listItemModelHost.HostList.Context; + + if (!string.IsNullOrEmpty(webPartModel.WebpartFileName)) + { #if NET35 // webPartFile.OpenBinaryStream should be re-implemented for SP2010 throw new SPMeta2NotImplementedException("Not implemented for SP2010 - https://github.com/SubPointSolutions/spmeta2/issues/769"); -#endif - -#if !NET35 - - lock (_wpCacheLock) - { - var wpKey = webPartModel.WebpartFileName.ToLower(); - - if (_wpCache.ContainsKey(wpKey)) - result = _wpCache[wpKey]; - else - { - - var rootWeb = listItemModelHost.HostSite.RootWeb; - var rootWebContext = rootWeb.Context; - -#pragma warning disable 618 - var webPartCatalog = rootWeb.QueryAndGetListByUrl(BuiltInListDefinitions.Catalogs.Wp.GetListUrl()); -#pragma warning restore 618 - //var webParts = webPartCatalog.GetItems(CamlQuery.CreateAllItemsQuery()); - - //rootWebContext.Load(webParts); - //rootWebcontext.ExecuteQueryWithTrace(); - - ListItem targetWebPart = SearchItemByName(webPartCatalog, webPartCatalog.RootFolder, - webPartModel.WebpartFileName); - - //foreach (var webPart in webParts) - // if (webPart["FileLeafRef"].ToString().ToUpper() == webPartModel.WebpartFileName.ToUpper()) - // targetWebPart = webPart; - - if (targetWebPart == null) - throw new SPMeta2Exception(string.Format("Cannot find web part file by name:[{0}]", - webPartModel.WebpartFileName)); - - var webPartFile = targetWebPart.File; - - rootWebContext.Load(webPartFile); - rootWebContext.ExecuteQueryWithTrace(); - - - // does not work for apps - https://github.com/SubPointSolutions/spmeta2/issues/174 - //var fileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(listItemModelHost.HostclientContext, webPartFile.ServerRelativeUrl); - - //using (var reader = new StreamReader(fileInfo.Stream)) - //{ - // webPartXML = reader.ReadToEnd(); - //} - - var data = webPartFile.OpenBinaryStream(); - - context.Load(webPartFile); - context.ExecuteQueryWithTrace(); - - using (var reader = new StreamReader(data.Value)) - { - result = reader.ReadToEnd(); - } - - if (!_wpCache.ContainsKey(wpKey)) - _wpCache.Add(wpKey, result); - else - _wpCache[wpKey] = result; - } - } - -#endif - } - - if (!string.IsNullOrEmpty(webPartModel.WebpartType)) - throw new Exception("WebpartType is not supported yet."); - - if (!string.IsNullOrEmpty(webPartModel.WebpartXmlTemplate)) - result = webPartModel.WebpartXmlTemplate; - - return result; - } - - protected virtual string ProcessCommonWebpartProperties(string webPartXml, WebPartDefinitionBase definition) - { - var xml = WebpartXmlExtensions.LoadWebpartXmlDocument(webPartXml) - .SetTitle(definition.Title) - .SetID(definition.Id); - - if (definition.Width.HasValue) - xml.SetWidth(definition.Width.Value); - - if (definition.Height.HasValue) - xml.SetHeight(definition.Height.Value); - - if (!string.IsNullOrEmpty(definition.Description)) - xml.SetDescription(definition.Description); - - if (!string.IsNullOrEmpty(definition.ImportErrorMessage)) - xml.SetImportErrorMessage(definition.ImportErrorMessage); - - if (!string.IsNullOrEmpty(definition.TitleUrl)) - { - var urlValue = definition.TitleUrl ?? string.Empty; - - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Original value: [{0}]", urlValue); - - urlValue = TokenReplacementService.ReplaceTokens(new TokenReplacementContext - { +#endif + +#if !NET35 + + lock (_wpCacheLock) + { + var wpKey = webPartModel.WebpartFileName.ToLower(); + + if (_wpCache.ContainsKey(wpKey)) + result = _wpCache[wpKey]; + else + { + + var rootWeb = listItemModelHost.HostSite.RootWeb; + var rootWebContext = rootWeb.Context; + +#pragma warning disable 618 + var webPartCatalog = rootWeb.QueryAndGetListByUrl(BuiltInListDefinitions.Catalogs.Wp.GetListUrl()); +#pragma warning restore 618 + //var webParts = webPartCatalog.GetItems(CamlQuery.CreateAllItemsQuery()); + + //rootWebContext.Load(webParts); + //rootWebcontext.ExecuteQueryWithTrace(); + + ListItem targetWebPart = SearchItemByName(webPartCatalog, webPartCatalog.RootFolder, + webPartModel.WebpartFileName); + + //foreach (var webPart in webParts) + // if (webPart["FileLeafRef"].ToString().ToUpper() == webPartModel.WebpartFileName.ToUpper()) + // targetWebPart = webPart; + + if (targetWebPart == null) + throw new SPMeta2Exception(string.Format("Cannot find web part file by name:[{0}]", + webPartModel.WebpartFileName)); + + var webPartFile = targetWebPart.File; + + rootWebContext.Load(webPartFile); + rootWebContext.ExecuteQueryWithTrace(); + + + // does not work for apps - https://github.com/SubPointSolutions/spmeta2/issues/174 + //var fileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(listItemModelHost.HostclientContext, webPartFile.ServerRelativeUrl); + + //using (var reader = new StreamReader(fileInfo.Stream)) + //{ + // webPartXML = reader.ReadToEnd(); + //} + + var data = webPartFile.OpenBinaryStream(); + + context.Load(webPartFile); + context.ExecuteQueryWithTrace(); + + using (var reader = new StreamReader(data.Value)) + { + result = reader.ReadToEnd(); + } + + if (!_wpCache.ContainsKey(wpKey)) + _wpCache.Add(wpKey, result); + else + _wpCache[wpKey] = result; + } + } + +#endif + } + + if (!string.IsNullOrEmpty(webPartModel.WebpartType)) + throw new Exception("WebpartType is not supported yet."); + + if (!string.IsNullOrEmpty(webPartModel.WebpartXmlTemplate)) + result = webPartModel.WebpartXmlTemplate; + + return result; + } + + protected virtual string ProcessCommonWebpartProperties(string webPartXml, WebPartDefinitionBase definition) + { + var xml = WebpartXmlExtensions.LoadWebpartXmlDocument(webPartXml) + .SetTitle(definition.Title) + .SetID(definition.Id); + + if (!string.IsNullOrEmpty(definition.AuthorizationFilter)) + xml.SetAuthorizationFilter(definition.AuthorizationFilter); + + if (definition.Width.HasValue) + xml.SetWidth(definition.Width.Value); + + if (definition.Height.HasValue) + xml.SetHeight(definition.Height.Value); + + if (!string.IsNullOrEmpty(definition.Description)) + xml.SetDescription(definition.Description); + + if (!string.IsNullOrEmpty(definition.ImportErrorMessage)) + xml.SetImportErrorMessage(definition.ImportErrorMessage); + + if (!string.IsNullOrEmpty(definition.TitleUrl)) + { + var urlValue = definition.TitleUrl ?? string.Empty; + + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Original value: [{0}]", urlValue); + + urlValue = TokenReplacementService.ReplaceTokens(new TokenReplacementContext + { Value = urlValue, - Context = CurrentModelHost - }).Value; - - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Token replaced value: [{0}]", urlValue); - - xml.SetTitleUrl(urlValue); - } - - if (!string.IsNullOrEmpty(definition.TitleIconImageUrl)) - xml.SetTitleIconImageUrl(definition.TitleIconImageUrl); - - if (!string.IsNullOrEmpty(definition.ChromeState)) - xml.SetChromeState(definition.ChromeState); - - if (!string.IsNullOrEmpty(definition.ChromeType)) - { - var chromeType = string.Empty; - - if (xml.IsV3version()) - chromeType = WebPartChromeTypesConvertService.NormilizeValueToPartChromeTypes(definition.ChromeType); - else if (xml.IsV2version()) - chromeType = WebPartChromeTypesConvertService.NormilizeValueToFrameTypes(definition.ChromeType); - - // SetChromeType() sets correct XML props depending on V2/V3 web part XML - xml.SetChromeType(chromeType); - } - - if (!string.IsNullOrEmpty(definition.ExportMode)) - xml.SetExportMode(definition.ExportMode); - - // bindings - ProcessParameterBindings(definition, xml); - - // properties - ProcessWebpartProperties(definition, xml); - - - return xml.ToString(); - } - - protected virtual void ProcessWebpartProperties(WebPartDefinitionBase definition, XDocument xml) - { - if (definition.Properties != null && definition.Properties.Count > 0) - { - foreach (var prop in definition.Properties) - { - var isCdata = prop.IsCData.HasValue && prop.IsCData.Value; - xml.SetOrUpdateProperty(prop.Name, prop.Value, prop.Type, isCdata); - } - } - } - - protected virtual void ProcessParameterBindings(WebPartDefinitionBase definition, XDocument xml) - { - if (definition.ParameterBindings != null && definition.ParameterBindings.Count > 0) - { - var parameterBinder = new WebPartParameterBindingsOptions(); - - foreach (var binding in definition.ParameterBindings) - parameterBinder.AddParameterBinding(binding.Name, binding.Location); - - var parameterBindingValue = SecurityElement.Escape(parameterBinder.ParameterBinding); - xml.SetOrUpdateProperty("ParameterBindings", parameterBindingValue); - } - } - - + Context = CurrentModelHost + }).Value; + + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Token replaced value: [{0}]", urlValue); + + xml.SetTitleUrl(urlValue); + } + + if (!string.IsNullOrEmpty(definition.TitleIconImageUrl)) + xml.SetTitleIconImageUrl(definition.TitleIconImageUrl); + + if (!string.IsNullOrEmpty(definition.ChromeState)) + xml.SetChromeState(definition.ChromeState); + + if (!string.IsNullOrEmpty(definition.ChromeType)) + { + var chromeType = string.Empty; + + if (xml.IsV3version()) + chromeType = WebPartChromeTypesConvertService.NormilizeValueToPartChromeTypes(definition.ChromeType); + else if (xml.IsV2version()) + chromeType = WebPartChromeTypesConvertService.NormilizeValueToFrameTypes(definition.ChromeType); + + // SetChromeType() sets correct XML props depending on V2/V3 web part XML + xml.SetChromeType(chromeType); + } + + if (!string.IsNullOrEmpty(definition.ExportMode)) + xml.SetExportMode(definition.ExportMode); + + // bindings + ProcessParameterBindings(definition, xml); + + // properties + ProcessWebpartProperties(definition, xml); + + + return xml.ToString(); + } + + protected virtual void ProcessWebpartProperties(WebPartDefinitionBase definition, XDocument xml) + { + if (definition.Properties != null && definition.Properties.Count > 0) + { + foreach (var prop in definition.Properties) + { + var isCdata = prop.IsCData.HasValue && prop.IsCData.Value; + xml.SetOrUpdateProperty(prop.Name, prop.Value, prop.Type, isCdata); + } + } + } + + protected virtual void ProcessParameterBindings(WebPartDefinitionBase definition, XDocument xml) + { + if (definition.ParameterBindings != null && definition.ParameterBindings.Count > 0) + { + var parameterBinder = new WebPartParameterBindingsOptions(); + + foreach (var binding in definition.ParameterBindings) + parameterBinder.AddParameterBinding(binding.Name, binding.Location); + + var parameterBindingValue = SecurityElement.Escape(parameterBinder.ParameterBinding); + xml.SetOrUpdateProperty("ParameterBindings", parameterBindingValue); + } + } + + protected ClientContext CurrentClientContext { get; set; } - protected CSOMModelHostBase CurrentModelHost { get; set; } - - protected virtual void OnBeforeDeploy(ListItemModelHost host, WebPartDefinitionBase webpart) - { - - } - - protected virtual void OnAfterDeploy(ListItemModelHost host, WebPartDefinitionBase webpart) - { - - } - - public override void DeployModel(object modelHost, DefinitionBase model) - { - Guid? OldWebParKey = null; - - var listItemModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var webPartModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); - - try - { + protected CSOMModelHostBase CurrentModelHost { get; set; } + + protected virtual void OnBeforeDeploy(ListItemModelHost host, WebPartDefinitionBase webpart) + { + + } + + protected virtual void OnAfterDeploy(ListItemModelHost host, WebPartDefinitionBase webpart) + { + + } + + public override void DeployModel(object modelHost, DefinitionBase model) + { + Guid? OldWebParKey = null; + + var listItemModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var webPartModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + try + { OnBeforeDeploy(listItemModelHost, webPartModel); - CurrentModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - CurrentClientContext = listItemModelHost.HostClientContext; - - var context = listItemModelHost.HostClientContext; - var currentPageFile = GetCurrentPageFile(listItemModelHost); - - - if (listItemModelHost.HostFolder != null) - { - // TODO, re-implement for SP2010 CSOM - // the following stuff is needed only for the web part deployment to the non-web part pages - // like, view/upload/details pages in the lost/libs - // hope no one would use that case on 2010 - folks, migrate to 2013 at least! :) -#if !NET35 - - if (!listItemModelHost.HostFolder.IsPropertyAvailable("Properties") || - listItemModelHost.HostFolder.Properties.FieldValues.Count == 0) - { - listItemModelHost.HostFolder.Context.Load(listItemModelHost.HostFolder, f => f.Properties); - //folder.Context.Load(folder, f => f.Properties); - - listItemModelHost.HostFolder.Context.ExecuteQueryWithTrace(); - } - -#endif - } - -#if !NET35 - var doesFileHasListItem = - //Forms folders - !(listItemModelHost.HostFolder != null - && - (listItemModelHost.HostFolder.Properties.FieldValues.ContainsKey("vti_winfileattribs") - && - listItemModelHost.HostFolder.Properties.FieldValues["vti_winfileattribs"].ToString() == - "00000012")); - -#endif - + CurrentModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + CurrentClientContext = listItemModelHost.HostClientContext; + + var context = listItemModelHost.HostClientContext; + var currentPageFile = GetCurrentPageFile(listItemModelHost); + + + if (listItemModelHost.HostFolder != null) + { + // TODO, re-implement for SP2010 CSOM + // the following stuff is needed only for the web part deployment to the non-web part pages + // like, view/upload/details pages in the lost/libs + // hope no one would use that case on 2010 - folks, migrate to 2013 at least! :) +#if !NET35 + + if (!listItemModelHost.HostFolder.IsPropertyAvailable("Properties") || + listItemModelHost.HostFolder.Properties.FieldValues.Count == 0) + { + listItemModelHost.HostFolder.Context.Load(listItemModelHost.HostFolder, f => f.Properties); + //folder.Context.Load(folder, f => f.Properties); + + listItemModelHost.HostFolder.Context.ExecuteQueryWithTrace(); + } + +#endif + } + +#if !NET35 + var doesFileHasListItem = + //Forms folders + !(listItemModelHost.HostFolder != null + && + (listItemModelHost.HostFolder.Properties.FieldValues.ContainsKey("vti_winfileattribs") + && + listItemModelHost.HostFolder.Properties.FieldValues["vti_winfileattribs"].ToString() == + "00000012")); + +#endif + #if NET35 // TODO, re-implement for SP2010 CSOM // the following stuff is needed only for the web part deployment to the non-web part pages var doesFileHasListItem = true; -#endif - - - ModuleFileModelHandler.WithSafeFileOperation(listItemModelHost.HostList, - currentPageFile, pageFile => - { - Guid? webPartStoreKey = null; - - InternalOnBeforeWebPartProvision(new WebPartProcessingContext - { - ListItemModelHost = listItemModelHost, - WebPartDefinition = webPartModel, - WebPartStoreKey = webPartStoreKey - }); - - //var fileContext = pageFile.Context; - ListItem fileListItem = null; - - if (webPartModel.AddToPageContent) - { - // pre load here to be used later - - var fileContext = pageFile.Context; - - fileListItem = pageFile.ListItemAllFields; - - fileContext.Load(fileListItem); - fileContext.ExecuteQueryWithTrace(); - } - - var webPartManager = pageFile.GetLimitedWebPartManager(PersonalizationScope.Shared); - - // web part on the page - var webpartOnPage = webPartManager.WebParts.Include(wp => wp.Id, wp => wp.WebPart); - var webPartDefenitions = context.LoadQuery(webpartOnPage); - - context.ExecuteQueryWithTrace(); - - Microsoft.SharePoint.Client.WebParts.WebPartDefinition wpDefinition; - - WebPart existingWebPart = null; - - // TODO - var tmpWp = FindExistingWebPart(webPartDefenitions, webPartModel, out wpDefinition); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioning, - Object = existingWebPart, - ObjectType = typeof(WebPart), - ObjectDefinition = webPartModel, - ModelHost = modelHost - }); - - if (wpDefinition != null) - { - OldWebParKey = wpDefinition.Id; - - TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, - "Deleting current web part."); - - wpDefinition.DeleteWebPart(); - wpDefinition.Context.ExecuteQueryWithTrace(); - } - else - { - existingWebPart = tmpWp; - } - - Microsoft.SharePoint.Client.WebParts.WebPartDefinition webPartAddedDefinition = null; - - if (existingWebPart == null) - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, - "Processing new web part"); - - var webPartXML = GetWebpartXmlDefinition(listItemModelHost, webPartModel); - webPartXML = ProcessCommonWebpartProperties(webPartXML, webPartModel); - - //// handle wiki page - //if (webPartModel.AddToPageContent) - //{ - - // HandleWikiPageProvision(fileListItem, webPartModel); - //} - - var webPartDefinition = webPartManager.ImportWebPart(webPartXML); - webPartAddedDefinition = webPartManager.AddWebPart(webPartDefinition.WebPart, - webPartModel.ZoneId, - webPartModel.ZoneIndex); - - context.Load(webPartAddedDefinition); - context.ExecuteQueryWithTrace(); - - if (webPartAddedDefinition != null && webPartAddedDefinition.ServerObjectIsNull == false) - { - existingWebPart = webPartAddedDefinition.WebPart; - webPartStoreKey = webPartAddedDefinition.Id; - } - - // handle wiki page - if (webPartModel.AddToPageContent) - { - HandleWikiPageProvision(fileListItem, webPartModel, webPartStoreKey, OldWebParKey); - } - - existingWebPart = webPartDefinition.WebPart; - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioned, - Object = existingWebPart, - ObjectType = typeof(WebPart), - ObjectDefinition = webPartModel, - ModelHost = modelHost - }); - } - else - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, - "Processing existing web part"); - - if (webPartModel.AddToPageContent) - { - //HandleWikiPageProvision(fileListItem, webPartModel); - } - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioned, - Object = existingWebPart, - ObjectType = typeof(WebPart), - ObjectDefinition = webPartModel, - ModelHost = modelHost - }); - } - - context.ExecuteQueryWithTrace(); - - if (webPartAddedDefinition != null && webPartAddedDefinition.ServerObjectIsNull == false) - { - existingWebPart = webPartAddedDefinition.WebPart; - webPartStoreKey = webPartAddedDefinition.Id; - } - - InternalOnAfterWebPartProvision(new WebPartProcessingContext - { - ListItemModelHost = listItemModelHost, - WebPartDefinition = webPartModel, - WebPartStoreKey = webPartStoreKey - }); - - return pageFile; - }, doesFileHasListItem); - } - finally - { - OnAfterDeploy(listItemModelHost, webPartModel); - } - } - - protected virtual void InternalOnBeforeWebPartProvision(WebPartProcessingContext context) - { - - } - - protected virtual void InternalOnAfterWebPartProvision(WebPartProcessingContext context) - { - - } - - private void HandleWikiPageProvision(ListItem listItem, - WebPartDefinitionBase webpartModel, Guid? currentWebPartStoreKey, Guid? oldWebParStoreKey) - { - if (!webpartModel.AddToPageContent) - return; - - TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "AddToPageContent = true. Handling wiki/publishig page provision case."); - - var context = listItem.Context; - - var targetFieldName = string.Empty; - - if (listItem.FieldValues.ContainsKey(BuiltInInternalFieldNames.WikiField)) - { - TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "WikiField field is detected. Switching to wiki page web part provision."); - - targetFieldName = BuiltInInternalFieldNames.WikiField; - } - else if (listItem.FieldValues.ContainsKey(BuiltInInternalFieldNames.PublishingPageLayout)) - { - TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "PublishingPageLayout field is detected. Switching to publishin page web part provision."); - - targetFieldName = BuiltInInternalFieldNames.PublishingPageContent; - } - else - { - TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "Not PublishingPageLayout field, nor WikiField is detected. Skipping."); - return; - } - - // any on the page? - var existingWebPartId = string.Empty; - - // current from the new provision - var upcomingWebPartId = string.Empty; - - // weird, by some web part ignor ID from the XML - // so webpartStoreKey from the previous CSOM adding web part to the page must be used - - // M2 covers that fact with the regression testing, so we know what are they - // and we have NOD idea why it happens - if (ShouldUseWebPartStoreKeyForWikiPage) - { - upcomingWebPartId = currentWebPartStoreKey.ToString() - .Replace("g_", string.Empty) - .Replace("_", "-"); ; - } - else - { - // get from the model - upcomingWebPartId = webpartModel.Id.ToString() - .Replace("g_", string.Empty) - .Replace("_", "-"); ; - } - - if (!oldWebParStoreKey.HasGuidValue()) - { - // first provision - existingWebPartId = currentWebPartStoreKey.ToString() - .Replace("g_", string.Empty) - .Replace("_", "-"); - } - else - { - // second provision, - // we had web part on the page and can reuse that ID to relink on wiki content - existingWebPartId = oldWebParStoreKey.ToString() - .Replace("g_", string.Empty) - .Replace("_", "-"); - } - - var content = listItem[targetFieldName] == null - ? string.Empty - : listItem[targetFieldName].ToString(); - - var wikiTemplate = new StringBuilder(); - - // actual ID will be replaced later - wikiTemplate.AppendFormat("​​​​​​​​​​​​​​​​​​​​​​
"); - wikiTemplate.Append("
"); - wikiTemplate.AppendFormat("
"); - wikiTemplate.AppendFormat("
"); - - var wikiTemplateOutput = wikiTemplate.ToString(); - - if (string.IsNullOrEmpty(content)) - { - // page is empty, pre-generating HTML - // pushing web part as the current WebPart Key - TraceService.Verbose((int)LogEventId.ModelProvisionCoreCall, - "Page content is empty Generating new one."); - - content = string.Format(wikiTemplateOutput, upcomingWebPartId); - - listItem[targetFieldName] = content; - listItem.Update(); - - context.ExecuteQueryWithTrace(); - } - else - { - // there is a content on the page - // there might be some web parts too - if (oldWebParStoreKey.HasGuidValue()) - { - // there was an old web part on the page - // checking if markup has the ID - - if (content.ToUpper().IndexOf(existingWebPartId.ToUpper()) != -1) - { - // was old web part on the page? - // yes, replacing ID - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, - string.Format("Replacing web part with ID: [{0}] to [{1}] on the page content.", - existingWebPartId, upcomingWebPartId), - null); - - content = content.Replace(existingWebPartId, upcomingWebPartId); - - listItem[targetFieldName] = content; - listItem.Update(); - - context.ExecuteQueryWithTrace(); - } - // original from the definigion? - else if (content.ToUpper().IndexOf(upcomingWebPartId.ToUpper()) != -1) - { - // yes, replacing ID - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, - string.Format("Replacing web part with ID: [{0}] to [{1}] on the page content.", - existingWebPartId, upcomingWebPartId), - null); - - // do nothing - - listItem[targetFieldName] = content; - listItem.Update(); - - context.ExecuteQueryWithTrace(); - } - else - { - // adding new, from scratch - TraceService.WarningFormat((int)LogEventId.ModelProvisionCoreCall, - "Cannot find web part ID: [{0}] the page content. Adding a new one.", +#endif + + + ModuleFileModelHandler.WithSafeFileOperation(listItemModelHost.HostList, + currentPageFile, pageFile => + { + Guid? webPartStoreKey = null; + + InternalOnBeforeWebPartProvision(new WebPartProcessingContext + { + ListItemModelHost = listItemModelHost, + WebPartDefinition = webPartModel, + WebPartStoreKey = webPartStoreKey + }); + + //var fileContext = pageFile.Context; + ListItem fileListItem = null; + + if (webPartModel.AddToPageContent) + { + // pre load here to be used later + + var fileContext = pageFile.Context; + + fileListItem = pageFile.ListItemAllFields; + + fileContext.Load(fileListItem); + fileContext.ExecuteQueryWithTrace(); + } + + var webPartManager = pageFile.GetLimitedWebPartManager(PersonalizationScope.Shared); + + // web part on the page + var webpartOnPage = webPartManager.WebParts.Include(wp => wp.Id, wp => wp.WebPart); + var webPartDefenitions = context.LoadQuery(webpartOnPage); + + context.ExecuteQueryWithTrace(); + + Microsoft.SharePoint.Client.WebParts.WebPartDefinition wpDefinition; + + WebPart existingWebPart = null; + + // TODO + var tmpWp = FindExistingWebPart(webPartDefenitions, webPartModel, out wpDefinition); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioning, + Object = existingWebPart, + ObjectType = typeof(WebPart), + ObjectDefinition = webPartModel, + ModelHost = modelHost + }); + + if (wpDefinition != null) + { + OldWebParKey = wpDefinition.Id; + + TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, + "Deleting current web part."); + + wpDefinition.DeleteWebPart(); + wpDefinition.Context.ExecuteQueryWithTrace(); + } + else + { + existingWebPart = tmpWp; + } + + Microsoft.SharePoint.Client.WebParts.WebPartDefinition webPartAddedDefinition = null; + + if (existingWebPart == null) + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, + "Processing new web part"); + + var webPartXML = GetWebpartXmlDefinition(listItemModelHost, webPartModel); + webPartXML = ProcessCommonWebpartProperties(webPartXML, webPartModel); + + //// handle wiki page + //if (webPartModel.AddToPageContent) + //{ + + // HandleWikiPageProvision(fileListItem, webPartModel); + //} + + var webPartDefinition = webPartManager.ImportWebPart(webPartXML); + webPartAddedDefinition = webPartManager.AddWebPart(webPartDefinition.WebPart, + webPartModel.ZoneId, + webPartModel.ZoneIndex); + + context.Load(webPartAddedDefinition); + context.ExecuteQueryWithTrace(); + + if (webPartAddedDefinition != null && webPartAddedDefinition.ServerObjectIsNull == false) + { + existingWebPart = webPartAddedDefinition.WebPart; + webPartStoreKey = webPartAddedDefinition.Id; + } + + // handle wiki page + if (webPartModel.AddToPageContent) + { + HandleWikiPageProvision(fileListItem, webPartModel, webPartStoreKey, OldWebParKey); + } + + existingWebPart = webPartDefinition.WebPart; + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = existingWebPart, + ObjectType = typeof(WebPart), + ObjectDefinition = webPartModel, + ModelHost = modelHost + }); + } + else + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, + "Processing existing web part"); + + if (webPartModel.AddToPageContent) + { + //HandleWikiPageProvision(fileListItem, webPartModel); + } + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = existingWebPart, + ObjectType = typeof(WebPart), + ObjectDefinition = webPartModel, + ModelHost = modelHost + }); + } + + context.ExecuteQueryWithTrace(); + + if (webPartAddedDefinition != null && webPartAddedDefinition.ServerObjectIsNull == false) + { + existingWebPart = webPartAddedDefinition.WebPart; + webPartStoreKey = webPartAddedDefinition.Id; + } + + InternalOnAfterWebPartProvision(new WebPartProcessingContext + { + ListItemModelHost = listItemModelHost, + WebPartDefinition = webPartModel, + WebPartStoreKey = webPartStoreKey + }); + + return pageFile; + }, doesFileHasListItem); + } + finally + { + OnAfterDeploy(listItemModelHost, webPartModel); + } + } + + protected virtual void InternalOnBeforeWebPartProvision(WebPartProcessingContext context) + { + + } + + protected virtual void InternalOnAfterWebPartProvision(WebPartProcessingContext context) + { + + } + + private void HandleWikiPageProvision(ListItem listItem, + WebPartDefinitionBase webpartModel, Guid? currentWebPartStoreKey, Guid? oldWebParStoreKey) + { + if (!webpartModel.AddToPageContent) + return; + + TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "AddToPageContent = true. Handling wiki/publishig page provision case."); + + var context = listItem.Context; + + var targetFieldName = string.Empty; + + if (listItem.FieldValues.ContainsKey(BuiltInInternalFieldNames.WikiField)) + { + TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "WikiField field is detected. Switching to wiki page web part provision."); + + targetFieldName = BuiltInInternalFieldNames.WikiField; + } + else if (listItem.FieldValues.ContainsKey(BuiltInInternalFieldNames.PublishingPageLayout)) + { + TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "PublishingPageLayout field is detected. Switching to publishin page web part provision."); + + targetFieldName = BuiltInInternalFieldNames.PublishingPageContent; + } + else + { + TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "Not PublishingPageLayout field, nor WikiField is detected. Skipping."); + return; + } + + // any on the page? + var existingWebPartId = string.Empty; + + // current from the new provision + var upcomingWebPartId = string.Empty; + + // weird, by some web part ignor ID from the XML + // so webpartStoreKey from the previous CSOM adding web part to the page must be used + + // M2 covers that fact with the regression testing, so we know what are they + // and we have NOD idea why it happens + if (ShouldUseWebPartStoreKeyForWikiPage) + { + upcomingWebPartId = currentWebPartStoreKey.ToString() + .Replace("g_", string.Empty) + .Replace("_", "-"); ; + } + else + { + // get from the model + upcomingWebPartId = webpartModel.Id.ToString() + .Replace("g_", string.Empty) + .Replace("_", "-"); ; + } + + if (!oldWebParStoreKey.HasGuidValue()) + { + // first provision + existingWebPartId = currentWebPartStoreKey.ToString() + .Replace("g_", string.Empty) + .Replace("_", "-"); + } + else + { + // second provision, + // we had web part on the page and can reuse that ID to relink on wiki content + existingWebPartId = oldWebParStoreKey.ToString() + .Replace("g_", string.Empty) + .Replace("_", "-"); + } + + var content = listItem[targetFieldName] == null + ? string.Empty + : listItem[targetFieldName].ToString(); + + var wikiTemplate = new StringBuilder(); + + // actual ID will be replaced later + wikiTemplate.AppendFormat("​​​​​​​​​​​​​​​​​​​​​​
"); + wikiTemplate.Append("
"); + wikiTemplate.AppendFormat("
"); + wikiTemplate.AppendFormat("
"); + + var wikiTemplateOutput = wikiTemplate.ToString(); + + if (string.IsNullOrEmpty(content)) + { + // page is empty, pre-generating HTML + // pushing web part as the current WebPart Key + TraceService.Verbose((int)LogEventId.ModelProvisionCoreCall, + "Page content is empty Generating new one."); + + content = string.Format(wikiTemplateOutput, upcomingWebPartId); + + listItem[targetFieldName] = content; + listItem.Update(); + + context.ExecuteQueryWithTrace(); + } + else + { + // there is a content on the page + // there might be some web parts too + if (oldWebParStoreKey.HasGuidValue()) + { + // there was an old web part on the page + // checking if markup has the ID + + if (content.ToUpper().IndexOf(existingWebPartId.ToUpper()) != -1) + { + // was old web part on the page? + // yes, replacing ID + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, + string.Format("Replacing web part with ID: [{0}] to [{1}] on the page content.", + existingWebPartId, upcomingWebPartId), + null); + + content = content.Replace(existingWebPartId, upcomingWebPartId); + + listItem[targetFieldName] = content; + listItem.Update(); + + context.ExecuteQueryWithTrace(); + } + // original from the definigion? + else if (content.ToUpper().IndexOf(upcomingWebPartId.ToUpper()) != -1) + { + // yes, replacing ID + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, + string.Format("Replacing web part with ID: [{0}] to [{1}] on the page content.", + existingWebPartId, upcomingWebPartId), + null); + + // do nothing + + listItem[targetFieldName] = content; + listItem.Update(); + + context.ExecuteQueryWithTrace(); + } + else + { + // adding new, from scratch + TraceService.WarningFormat((int)LogEventId.ModelProvisionCoreCall, + "Cannot find web part ID: [{0}] the page content. Adding a new one.", new object[] { existingWebPartId - }); - - content = content + string.Format(wikiTemplateOutput, upcomingWebPartId); - - listItem[targetFieldName] = content; - listItem.Update(); - - context.ExecuteQueryWithTrace(); - } - } - else - { - // first provision of the web part on the page - if (content.ToUpper().IndexOf(upcomingWebPartId.ToUpper()) != -1) - { - // do nothing - - listItem[targetFieldName] = content; - listItem.Update(); - - context.ExecuteQueryWithTrace(); - } - else - { - // adding new, from scratch - TraceService.WarningFormat((int)LogEventId.ModelProvisionCoreCall, - "Cannot find web part ID: [{0}] the page content. Adding a new one.", + }); + + content = content + string.Format(wikiTemplateOutput, upcomingWebPartId); + + listItem[targetFieldName] = content; + listItem.Update(); + + context.ExecuteQueryWithTrace(); + } + } + else + { + // first provision of the web part on the page + if (content.ToUpper().IndexOf(upcomingWebPartId.ToUpper()) != -1) + { + // do nothing + + listItem[targetFieldName] = content; + listItem.Update(); + + context.ExecuteQueryWithTrace(); + } + else + { + // adding new, from scratch + TraceService.WarningFormat((int)LogEventId.ModelProvisionCoreCall, + "Cannot find web part ID: [{0}] the page content. Adding a new one.", new object[] { existingWebPartId - }); - - content = content + string.Format(wikiTemplateOutput, upcomingWebPartId); - - listItem[targetFieldName] = content; - listItem.Update(); - - context.ExecuteQueryWithTrace(); - } - } - } - } - - - - protected WebPart FindExistingWebPart( - IEnumerable webPartDefenitions, - WebPartDefinitionBase webPartModel) - { - Microsoft.SharePoint.Client.WebParts.WebPartDefinition wpDefinition = null; - - return FindExistingWebPart(webPartDefenitions, webPartModel, out wpDefinition); - } - - protected WebPart FindExistingWebPart(IEnumerable webPartDefenitions, - WebPartDefinitionBase webPartModel, - out Microsoft.SharePoint.Client.WebParts.WebPartDefinition wpDefinition) - { - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Resolving web part by Title: [{0}]", webPartModel.Title); - - wpDefinition = null; - - // gosh, you got to be kidding - // internally, SharePoint returns StorageKey as ID. hence.. no ability to trace unique web part on the page - // the only thing is comparing Titles an utilize them as a primary key - - foreach (var webPartDefinition in webPartDefenitions) - { - if (String.Compare(webPartDefinition.WebPart.Title, webPartModel.Title, System.StringComparison.OrdinalIgnoreCase) == 0) - { - wpDefinition = webPartDefinition; - - return webPartDefinition.WebPart; - } - } - - return null; - } - - #endregion - } -} + }); + + content = content + string.Format(wikiTemplateOutput, upcomingWebPartId); + + listItem[targetFieldName] = content; + listItem.Update(); + + context.ExecuteQueryWithTrace(); + } + } + } + } + + + + protected WebPart FindExistingWebPart( + IEnumerable webPartDefenitions, + WebPartDefinitionBase webPartModel) + { + Microsoft.SharePoint.Client.WebParts.WebPartDefinition wpDefinition = null; + + return FindExistingWebPart(webPartDefenitions, webPartModel, out wpDefinition); + } + + protected WebPart FindExistingWebPart(IEnumerable webPartDefenitions, + WebPartDefinitionBase webPartModel, + out Microsoft.SharePoint.Client.WebParts.WebPartDefinition wpDefinition) + { + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Resolving web part by Title: [{0}]", webPartModel.Title); + + wpDefinition = null; + + // gosh, you got to be kidding + // internally, SharePoint returns StorageKey as ID. hence.. no ability to trace unique web part on the page + // the only thing is comparing Titles an utilize them as a primary key + + foreach (var webPartDefinition in webPartDefenitions) + { + if (String.Compare(webPartDefinition.WebPart.Title, webPartModel.Title, System.StringComparison.OrdinalIgnoreCase) == 0) + { + wpDefinition = webPartDefinition; + + return webPartDefinition.WebPart; + } + } + + return null; + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.Regression.CSOM/Validation/WebPartDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.CSOM/Validation/WebPartDefinitionValidator.cs index 86340b57f..02ed01ba6 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM/Validation/WebPartDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM/Validation/WebPartDefinitionValidator.cs @@ -364,7 +364,31 @@ public override void DeployModel(object modelHost, DefinitionBase model) else { // TODO + } + + if (!string.IsNullOrEmpty(definition.AuthorizationFilter)) + { + var value = CurrentWebPartXml.GetProperty("AuthorizationFilter"); + + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.AuthorizationFilter); + var isValid = (srcProp.Value as string) == value; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid + }; + }); + } + else + { + assert.SkipProperty(m => m.AuthorizationFilter, "AuthorizationFilter is null or empty. Skipping."); } + }); } } diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebpartScenariosTest.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebpartScenariosTest.cs index a20cced83..1f069bb15 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebpartScenariosTest.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebpartScenariosTest.cs @@ -393,7 +393,41 @@ public void CanDeploy_WebpartTo_ListForm_InList() #region webpart + [TestMethod] + [TestCategory("Regression.Scenarios.Webparts.AuthorizationFilter")] + public void CanDeploy_Webpart_With_AuthorizationFilter() + { + var securityGroupDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.DefaultUser = string.Empty; + def.Owner = string.Empty; + }); + var siteModel = SPMeta2Model.NewSiteModel(site => + { + site.AddSecurityGroup(securityGroupDef); + }); + + + var webModel = SPMeta2Model.NewWebModel(web => + { + web + .AddHostList(BuiltInListDefinitions.SitePages, list => + { + list.AddRandomWebPartPage(page => + { + page.AddRandomWebpart(webPart => + { + var wpDef = webPart.Value as WebPartDefinition; + wpDef.AuthorizationFilter = string.Format(";;;;{0}", securityGroupDef.Name); + }); + }); + }); + + }); + + TestModel(siteModel, webModel); + } [TestMethod] [TestCategory("Regression.Scenarios.Webparts")] diff --git a/SPMeta2/SPMeta2/Definitions/Base/WebPartDefinitionBase.cs b/SPMeta2/SPMeta2/Definitions/Base/WebPartDefinitionBase.cs index 9f81e879d..a5d461e41 100644 --- a/SPMeta2/SPMeta2/Definitions/Base/WebPartDefinitionBase.cs +++ b/SPMeta2/SPMeta2/Definitions/Base/WebPartDefinitionBase.cs @@ -1,242 +1,251 @@ -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using SPMeta2.Attributes.Capabilities; -using SPMeta2.Attributes.Identity; -using SPMeta2.Attributes.Regression; -using SPMeta2.Enumerations; -using SPMeta2.Exceptions; - -namespace SPMeta2.Definitions.Base -{ - - /// - /// Base definitino for web part definitions - generic web part and all other 'typed' web parts. - /// - [DataContract] - public abstract class WebPartDefinitionBase : DefinitionBase - { - #region constructors - - public WebPartDefinitionBase() - { - ChromeState = BuiltInPartChromeState.Normal; - ChromeType = BuiltInPartChromeType.Default; - - ParameterBindings = new List(); - Properties = new List(); - } - - #endregion - - #region properties - - [ExpectValidation] - [DataMember] - [ExpectNullable] - public string ExportMode { get; set; } - - [ExpectValidation] - [DataMember] - [ExpectUpdateAsChromeState] - public string ChromeState { get; set; } - - [ExpectValidation] - [DataMember] - [ExpectUpdateAsChromeType] - public string ChromeType { get; set; } - - [ExpectValidation] - [DataMember] - [ExpectUpdateAsIntRange(MinValue = 100, MaxValue = 500)] - public int? Width { get; set; } - - [ExpectValidation] - [DataMember] - [ExpectUpdateAsIntRange(MinValue = 100, MaxValue = 500)] - public int? Height { get; set; } - - [ExpectValidation] - [DataMember] - [ExpectUpdateAsUrl] - public string TitleUrl { get; set; } - - [ExpectValidation] - [DataMember] - [ExpectUpdate] - public string Description { get; set; } - - [ExpectValidation] - [DataMember] - [ExpectUpdate] - public string ImportErrorMessage { get; set; } - - [ExpectValidation] - [DataMember] - [ExpectUpdateAsUrl] - public string TitleIconImageUrl { get; set; } - - /// - /// Title of the target web part. - /// - /// - [ExpectValidation] - [DataMember] - - [IdentityKey] - public string Title { get; set; } - - /// - /// ID of the target web part. - /// - /// - [ExpectValidation] - [DataMember] - [IdentityKey] - public virtual string Id { get; set; } - - /// - /// ZoneId of the target web part. - /// - /// - [ExpectValidation] - [DataMember] - - public string ZoneId { get; set; } - - /// - /// ZoneIndex of the target web part. - /// - /// - [ExpectValidation] - [DataMember] - - public int ZoneIndex { get; set; } - - [ExpectValidation] - [DataMember] - public List ParameterBindings { get; set; } - - #endregion - - #region properties - - /// - /// File name of the target web part definition from the web part gallery. - /// - /// WebpartFileName is used for the first priority to deploy web part. - /// - /// - [ExpectValidation] - [ExpectRequired(GroupName = "Web part content")] - [DataMember] - public string WebpartFileName { get; set; } - - private string _webpartType; - - /// - /// Type of the target web part. - /// - /// WebpartType is used as a second priority to deploy web part. - /// - - [ExpectValidation] - [ExpectRequired(GroupName = "Web part content")] - [DataMember] - public virtual string WebpartType - { - get { return _webpartType; } - set - { - if (string.IsNullOrEmpty(value)) - return; - - var parts = value.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries); - - // expect 5 parts - // for instance, - // System.Array, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - // https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx - if (parts.Length != 5) - { - throw new SPMeta2InvalidDefinitionPropertyException( - "WebpartType must be in AssemblyQualifiedName format - https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname.aspx"); - } - - _webpartType = value; - } - } - - /// - /// XML definition of the target web part. - /// Both V2 and V3 definition are supported. - /// - /// WebpartXmlTemplate is used as the final step to deploy web part. - /// - /// - [ExpectValidation] - [ExpectRequired(GroupName = "Web part content")] - [DataMember] - - [XmlPropertyCapability] - public string WebpartXmlTemplate { get; set; } - - /// - /// Indicated if the web part should be added to the publishing or wiki page content area. - /// - [DataMember] - public bool AddToPageContent { get; set; } - - [DataMember] - [ExpectValidation] - public List Properties { get; set; } - - #endregion - - #region methods - - public override string ToString() - { - return string.Format("Title:[{0}] Id:[{1}] WebpartFileName:[{2}] WebpartType:[{3}] ZoneId:[{4}] ZoneIndex:[{5}]", - new[] { Title, Id, WebpartFileName, WebpartType, ZoneId, ZoneIndex.ToString() }); - } - - #endregion - } - - [Serializable] - [DataContract] - public class WebPartProperty - { - public WebPartProperty() - { - Type = "string"; - } - - [DataMember] - public string Name { get; set; } - - [DataMember] - public string Value { get; set; } - - [DataMember] - public bool? IsTokenisable { get; set; } - - [DataMember] - public bool? IsCData { get; set; } - - [DataMember] - public string Type { get; set; } - } - - [Serializable] - [DataContract] - public class ParameterBindingValue - { - [DataMember] - public virtual string Name { get; set; } - - [DataMember] - public virtual string Location { get; set; } - } -} +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using SPMeta2.Attributes.Capabilities; +using SPMeta2.Attributes.Identity; +using SPMeta2.Attributes.Regression; +using SPMeta2.Enumerations; +using SPMeta2.Exceptions; + +namespace SPMeta2.Definitions.Base +{ + + /// + /// Base definitino for web part definitions - generic web part and all other 'typed' web parts. + /// + [DataContract] + public abstract class WebPartDefinitionBase : DefinitionBase + { + #region constructors + + public WebPartDefinitionBase() + { + ChromeState = BuiltInPartChromeState.Normal; + ChromeType = BuiltInPartChromeType.Default; + + ParameterBindings = new List(); + Properties = new List(); + } + + #endregion + + #region properties + + [ExpectValidation] + [DataMember] + [ExpectNullable] + public string ExportMode { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectUpdateAsChromeState] + public string ChromeState { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectUpdateAsChromeType] + public string ChromeType { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectUpdateAsIntRange(MinValue = 100, MaxValue = 500)] + public int? Width { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectUpdateAsIntRange(MinValue = 100, MaxValue = 500)] + public int? Height { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectUpdateAsUrl] + public string TitleUrl { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectUpdate] + public string Description { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectUpdate] + public string ImportErrorMessage { get; set; } + + [ExpectValidation] + [DataMember] + [ExpectUpdateAsUrl] + public string TitleIconImageUrl { get; set; } + + /// + /// Title of the target web part. + /// + /// + [ExpectValidation] + [DataMember] + + [IdentityKey] + public string Title { get; set; } + + /// + /// ID of the target web part. + /// + /// + [ExpectValidation] + [DataMember] + [IdentityKey] + public virtual string Id { get; set; } + + /// + /// ZoneId of the target web part. + /// + /// + [ExpectValidation] + [DataMember] + + public string ZoneId { get; set; } + + /// + /// ZoneIndex of the target web part. + /// + /// + [ExpectValidation] + [DataMember] + + public int ZoneIndex { get; set; } + + [ExpectValidation] + [DataMember] + public List ParameterBindings { get; set; } + + /// + /// Represents AuthorizationFilter, audience targeting + /// Usual format is ";;;;" + security group name + /// + [ExpectValidation] + [DataMember] + + public string AuthorizationFilter { get; set; } + + #endregion + + #region properties + + /// + /// File name of the target web part definition from the web part gallery. + /// + /// WebpartFileName is used for the first priority to deploy web part. + /// + /// + [ExpectValidation] + [ExpectRequired(GroupName = "Web part content")] + [DataMember] + public string WebpartFileName { get; set; } + + private string _webpartType; + + /// + /// Type of the target web part. + /// + /// WebpartType is used as a second priority to deploy web part. + /// + + [ExpectValidation] + [ExpectRequired(GroupName = "Web part content")] + [DataMember] + public virtual string WebpartType + { + get { return _webpartType; } + set + { + if (string.IsNullOrEmpty(value)) + return; + + var parts = value.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries); + + // expect 5 parts + // for instance, + // System.Array, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + // https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx + if (parts.Length != 5) + { + throw new SPMeta2InvalidDefinitionPropertyException( + "WebpartType must be in AssemblyQualifiedName format - https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname.aspx"); + } + + _webpartType = value; + } + } + + /// + /// XML definition of the target web part. + /// Both V2 and V3 definition are supported. + /// + /// WebpartXmlTemplate is used as the final step to deploy web part. + /// + /// + [ExpectValidation] + [ExpectRequired(GroupName = "Web part content")] + [DataMember] + + [XmlPropertyCapability] + public string WebpartXmlTemplate { get; set; } + + /// + /// Indicated if the web part should be added to the publishing or wiki page content area. + /// + [DataMember] + public bool AddToPageContent { get; set; } + + [DataMember] + [ExpectValidation] + public List Properties { get; set; } + + #endregion + + #region methods + + public override string ToString() + { + return string.Format("Title:[{0}] Id:[{1}] WebpartFileName:[{2}] WebpartType:[{3}] ZoneId:[{4}] ZoneIndex:[{5}]", + new[] { Title, Id, WebpartFileName, WebpartType, ZoneId, ZoneIndex.ToString() }); + } + + #endregion + } + + [Serializable] + [DataContract] + public class WebPartProperty + { + public WebPartProperty() + { + Type = "string"; + } + + [DataMember] + public string Name { get; set; } + + [DataMember] + public string Value { get; set; } + + [DataMember] + public bool? IsTokenisable { get; set; } + + [DataMember] + public bool? IsCData { get; set; } + + [DataMember] + public string Type { get; set; } + } + + [Serializable] + [DataContract] + public class ParameterBindingValue + { + [DataMember] + public virtual string Name { get; set; } + + [DataMember] + public virtual string Location { get; set; } + } +} diff --git a/SPMeta2/SPMeta2/Utils/WebpartXmlExtensions.cs b/SPMeta2/SPMeta2/Utils/WebpartXmlExtensions.cs index d02f5ba06..032d3a8fc 100644 --- a/SPMeta2/SPMeta2/Utils/WebpartXmlExtensions.cs +++ b/SPMeta2/SPMeta2/Utils/WebpartXmlExtensions.cs @@ -1,314 +1,320 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Reflection; -using System.Xml.Linq; -using SPMeta2.Definitions; -using SPMeta2.Services.Impl; - -// ReSharper disable InconsistentNaming - -namespace SPMeta2.Utils -{ - /// - /// Helper class to work with webpart xml files. - /// Support v2/v3 XML definitision. - /// - public static class WebpartXmlExtensions - { - #region constructors - - static WebpartXmlExtensions() - { - InitDefaultIgnoredProperties(); - } - - private static void InitDefaultIgnoredProperties() - { +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Reflection; +using System.Xml.Linq; +using SPMeta2.Definitions; +using SPMeta2.Services.Impl; + +// ReSharper disable InconsistentNaming + +namespace SPMeta2.Utils +{ + /// + /// Helper class to work with webpart xml files. + /// Support v2/v3 XML definitision. + /// + public static class WebpartXmlExtensions + { + #region constructors + + static WebpartXmlExtensions() + { + InitDefaultIgnoredProperties(); + } + + private static void InitDefaultIgnoredProperties() + { DefaultIgnoredProperties = new List { "ParameterBindings" - }; - } - - #endregion - - #region properties - - private const string WebPartNamespaceV3 = "http://schemas.microsoft.com/WebPart/v3"; - private const string WebPartNamespaceV2 = "http://schemas.microsoft.com/WebPart/v2"; - - #endregion - - #region api - - public static XDocument LoadWebpartXmlDocument(string value) - { - return XDocument.Parse(value); - } - - - public static XDocument SetPropertyMappings(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetOverwriteResultPath(this XDocument webpartXmlDocument, bool value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); - } - - public static XDocument SetShouldHideControlWhenEmpty(this XDocument webpartXmlDocument, bool value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); - } - - public static XDocument SetLogAnalyticsViewEvent(this XDocument webpartXmlDocument, bool value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); - } - - public static XDocument SetAddSEOPropertiesFromSearch(this XDocument webpartXmlDocument, bool value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); - } - - public static XDocument SetStartingItemIndex(this XDocument webpartXmlDocument, int value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); - } - - public static XDocument SetPropertyMappings(this XDocument webpartXmlDocument, int value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); - } - - - public static XDocument SetNumberOfItems(this XDocument webpartXmlDocument, int value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); - } - - - public static XDocument SetResultsPerPage(this XDocument webpartXmlDocument, int value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); - } - - - public static XDocument SetRenderTemplateId(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetItemTemplateId(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetGroupTemplateId(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - - public static XDocument SetDataProviderJSON(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetDescription(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetWidth(this XDocument webpartXmlDocument, int value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateV3Property(webpartXmlDocument, name, value.ToString(), WebPartNamespaceV3, false, "uint"); - if (IsV2version(webpartXmlDocument)) - return SetOrUpdateV2Property(webpartXmlDocument, name, value.ToString(), WebPartNamespaceV2, false); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - - } - - public static XDocument SetHeight(this XDocument webpartXmlDocument, int value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateV3Property(webpartXmlDocument, name, value.ToString(), WebPartNamespaceV3, false, "uint"); - if (IsV2version(webpartXmlDocument)) - return SetOrUpdateV2Property(webpartXmlDocument, name, value.ToString(), WebPartNamespaceV2, false); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - - public static XDocument SetImportErrorMessage(this XDocument webpartXmlDocument, string value) - { - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateMetadataProperty(webpartXmlDocument, "importErrorMessage", value); - if (IsV2version(webpartXmlDocument)) - return SetOrUpdateV2Property(webpartXmlDocument, "MissingAssembly", value, WebPartNamespaceV2, false); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - public static string GetImportErrorMessage(this XDocument webpartXmlDocument) - { - if (IsV3version(webpartXmlDocument)) - return GetV3MetadataNode(webpartXmlDocument, "importErrorMessage", WebPartNamespaceV3).Value; - if (IsV2version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, "MissingAssembly"); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static XDocument SetPrimaryTaskListUrl(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetChromeType(this XDocument webpartXmlDocument, string value) - { - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateV3Property(webpartXmlDocument, "ChromeType", value, WebPartNamespaceV3, false, "chrometype"); - if (IsV2version(webpartXmlDocument)) - return SetOrUpdateV2Property(webpartXmlDocument, "FrameType", value, WebPartNamespaceV2, false); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static string GetChromeType(this XDocument webpartXmlDocument) - { - if (IsV3version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, "ChromeType", WebPartNamespaceV3); - if (IsV2version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, "FrameType", WebPartNamespaceV2); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static string GetWebPartAssemblyQualifiedName(this XDocument webpartXmlDocument) - { - if (IsV3version(webpartXmlDocument)) - { - var typeNode = GetV3MetadataNode(webpartXmlDocument, "type", WebPartNamespaceV3); - - return typeNode.Attribute("name").Value; - } - if (IsV2version(webpartXmlDocument)) - { - var classPart = GetProperty(webpartXmlDocument, "TypeName", WebPartNamespaceV2); - var assemblyPart = GetProperty(webpartXmlDocument, "Assembly", WebPartNamespaceV2); - - return classPart + ", " + assemblyPart; - } - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static XDocument SetChromeState(this XDocument webpartXmlDocument, string value) - { - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateV3Property(webpartXmlDocument, "ChromeState", value, WebPartNamespaceV3, false, "chromestate"); - if (IsV2version(webpartXmlDocument)) - return SetOrUpdateV2Property(webpartXmlDocument, "FrameState", value, WebPartNamespaceV2, false); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static string GetChromeState(this XDocument webpartXmlDocument) - { - if (IsV3version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, "ChromeState", WebPartNamespaceV3); - if (IsV2version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, "FrameState", WebPartNamespaceV2); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static XDocument SetTitleUrl(this XDocument webpartXmlDocument, string value) - { - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateV3Property(webpartXmlDocument, "TitleUrl", value, WebPartNamespaceV3, false); - if (IsV2version(webpartXmlDocument)) - return SetOrUpdateV2Property(webpartXmlDocument, "DetailLink", value, WebPartNamespaceV2, false); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static string GetTitleUrl(this XDocument webpartXmlDocument) - { - if (IsV3version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, "TitleIconImageUrl", WebPartNamespaceV3); - if (IsV2version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, "PartImageSmall", WebPartNamespaceV2); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static XDocument SetTitleIconImageUrl(this XDocument webpartXmlDocument, string value) - { - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateV3Property(webpartXmlDocument, "TitleIconImageUrl", value, WebPartNamespaceV3, false); - if (IsV2version(webpartXmlDocument)) - return SetOrUpdateV2Property(webpartXmlDocument, "PartImageSmall", value, WebPartNamespaceV2, false); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static string GetTitleIconImageUrl(this XDocument webpartXmlDocument) - { - if (IsV3version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, "TitleIconImageUrl", WebPartNamespaceV3); - if (IsV2version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, "PartImageSmall", WebPartNamespaceV2); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static XDocument SetExportMode(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static string GetExportMode(this XDocument webpartXmlDocument) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); - return GetProperty(webpartXmlDocument, name); - } - - public static XDocument SetListId(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetWebId(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); + }; + } + + #endregion + + #region properties + + private const string WebPartNamespaceV3 = "http://schemas.microsoft.com/WebPart/v3"; + private const string WebPartNamespaceV2 = "http://schemas.microsoft.com/WebPart/v2"; + + #endregion + + #region api + + public static XDocument LoadWebpartXmlDocument(string value) + { + return XDocument.Parse(value); + } + + + public static XDocument SetPropertyMappings(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetOverwriteResultPath(this XDocument webpartXmlDocument, bool value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); + } + + public static XDocument SetShouldHideControlWhenEmpty(this XDocument webpartXmlDocument, bool value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); + } + + public static XDocument SetLogAnalyticsViewEvent(this XDocument webpartXmlDocument, bool value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); + } + + public static XDocument SetAddSEOPropertiesFromSearch(this XDocument webpartXmlDocument, bool value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); + } + + public static XDocument SetStartingItemIndex(this XDocument webpartXmlDocument, int value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); + } + + public static XDocument SetPropertyMappings(this XDocument webpartXmlDocument, int value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); + } + + + public static XDocument SetNumberOfItems(this XDocument webpartXmlDocument, int value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); + } + + + public static XDocument SetResultsPerPage(this XDocument webpartXmlDocument, int value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); + } + + + public static XDocument SetRenderTemplateId(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetItemTemplateId(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetGroupTemplateId(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + + public static XDocument SetDataProviderJSON(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetDescription(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetAuthorizationFilter(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetWidth(this XDocument webpartXmlDocument, int value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateV3Property(webpartXmlDocument, name, value.ToString(), WebPartNamespaceV3, false, "uint"); + if (IsV2version(webpartXmlDocument)) + return SetOrUpdateV2Property(webpartXmlDocument, name, value.ToString(), WebPartNamespaceV2, false); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + + } + + public static XDocument SetHeight(this XDocument webpartXmlDocument, int value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateV3Property(webpartXmlDocument, name, value.ToString(), WebPartNamespaceV3, false, "uint"); + if (IsV2version(webpartXmlDocument)) + return SetOrUpdateV2Property(webpartXmlDocument, name, value.ToString(), WebPartNamespaceV2, false); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + + public static XDocument SetImportErrorMessage(this XDocument webpartXmlDocument, string value) + { + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateMetadataProperty(webpartXmlDocument, "importErrorMessage", value); + if (IsV2version(webpartXmlDocument)) + return SetOrUpdateV2Property(webpartXmlDocument, "MissingAssembly", value, WebPartNamespaceV2, false); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + public static string GetImportErrorMessage(this XDocument webpartXmlDocument) + { + if (IsV3version(webpartXmlDocument)) + return GetV3MetadataNode(webpartXmlDocument, "importErrorMessage", WebPartNamespaceV3).Value; + if (IsV2version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, "MissingAssembly"); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static XDocument SetPrimaryTaskListUrl(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetChromeType(this XDocument webpartXmlDocument, string value) + { + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateV3Property(webpartXmlDocument, "ChromeType", value, WebPartNamespaceV3, false, "chrometype"); + if (IsV2version(webpartXmlDocument)) + return SetOrUpdateV2Property(webpartXmlDocument, "FrameType", value, WebPartNamespaceV2, false); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static string GetChromeType(this XDocument webpartXmlDocument) + { + if (IsV3version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, "ChromeType", WebPartNamespaceV3); + if (IsV2version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, "FrameType", WebPartNamespaceV2); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static string GetWebPartAssemblyQualifiedName(this XDocument webpartXmlDocument) + { + if (IsV3version(webpartXmlDocument)) + { + var typeNode = GetV3MetadataNode(webpartXmlDocument, "type", WebPartNamespaceV3); + + return typeNode.Attribute("name").Value; + } + if (IsV2version(webpartXmlDocument)) + { + var classPart = GetProperty(webpartXmlDocument, "TypeName", WebPartNamespaceV2); + var assemblyPart = GetProperty(webpartXmlDocument, "Assembly", WebPartNamespaceV2); + + return classPart + ", " + assemblyPart; + } + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static XDocument SetChromeState(this XDocument webpartXmlDocument, string value) + { + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateV3Property(webpartXmlDocument, "ChromeState", value, WebPartNamespaceV3, false, "chromestate"); + if (IsV2version(webpartXmlDocument)) + return SetOrUpdateV2Property(webpartXmlDocument, "FrameState", value, WebPartNamespaceV2, false); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static string GetChromeState(this XDocument webpartXmlDocument) + { + if (IsV3version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, "ChromeState", WebPartNamespaceV3); + if (IsV2version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, "FrameState", WebPartNamespaceV2); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static XDocument SetTitleUrl(this XDocument webpartXmlDocument, string value) + { + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateV3Property(webpartXmlDocument, "TitleUrl", value, WebPartNamespaceV3, false); + if (IsV2version(webpartXmlDocument)) + return SetOrUpdateV2Property(webpartXmlDocument, "DetailLink", value, WebPartNamespaceV2, false); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static string GetTitleUrl(this XDocument webpartXmlDocument) + { + if (IsV3version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, "TitleIconImageUrl", WebPartNamespaceV3); + if (IsV2version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, "PartImageSmall", WebPartNamespaceV2); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static XDocument SetTitleIconImageUrl(this XDocument webpartXmlDocument, string value) + { + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateV3Property(webpartXmlDocument, "TitleIconImageUrl", value, WebPartNamespaceV3, false); + if (IsV2version(webpartXmlDocument)) + return SetOrUpdateV2Property(webpartXmlDocument, "PartImageSmall", value, WebPartNamespaceV2, false); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static string GetTitleIconImageUrl(this XDocument webpartXmlDocument) + { + if (IsV3version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, "TitleIconImageUrl", WebPartNamespaceV3); + if (IsV2version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, "PartImageSmall", WebPartNamespaceV2); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static XDocument SetExportMode(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static string GetExportMode(this XDocument webpartXmlDocument) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); + return GetProperty(webpartXmlDocument, name); + } + + public static XDocument SetListId(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetWebId(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); } public static string GetListGuid(this XDocument webpartXmlDocument) @@ -335,643 +341,643 @@ public static string GetWebUrl(this XDocument webpartXmlDocument) { var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); return GetProperty(webpartXmlDocument, name); - } - - - public static string GetWebId(this XDocument webpartXmlDocument) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); - return GetProperty(webpartXmlDocument, name); - } - - public static string GetListId(this XDocument webpartXmlDocument) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); - return GetProperty(webpartXmlDocument, name); - } - - public static XDocument SetShowTimelineIfAvailable(this XDocument webpartXmlDocument, bool value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); - } - - public static XDocument SetTitle(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetXmlDefinition(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetWebUrl(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetJSLink(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static string GetJSLink(this XDocument webpartXmlDocument) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); - return GetProperty(webpartXmlDocument, name); - } - - public static XDocument SetListName(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static string GetListName(this XDocument webpartXmlDocument) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); - return GetProperty(webpartXmlDocument, name); - } - - public static XDocument SetFilterDisplayValue1(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetDataMappingViewFields(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetID(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetItemStyle(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetListGuid(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetDataMappings(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument SetFilterValue1(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - public static XDocument BindXsltListViewWebPartToList(this XDocument webpartXmlDocument, string listId) - { - return webpartXmlDocument - .SetListGuid(listId) - .SetListId(listId) - .SetListName(listId); - } - - - #endregion - - #region utils - - #region version routines - - public static bool IsV3version(this XDocument webpartXmlDocument) - { - var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}WebPart").FirstOrDefault(); - - if (webPartNode == null) - webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}webPart").FirstOrDefault(); - - return webPartNode != null; - } - - public static bool IsV2version(this XDocument webpartXmlDocument) - { - var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}WebPart").FirstOrDefault(); - - if (webPartNode == null) - webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}webPart").FirstOrDefault(); - - return webPartNode != null; - } - - #endregion - - #region set routines - - internal static XElement GetV3Node(this XDocument webpartXmlDocument, string propName) - { - return GetV3Node(webpartXmlDocument, propName, WebPartNamespaceV3); - } - - internal static XElement GetV3MetadataNode(this XDocument webpartXmlDocument, string propName, string propXlmns) - { - var mNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}metaData").FirstOrDefault(); - var namespacedPropName = "{" + WebPartNamespaceV3 + "}" + propName; - - return mNode.Descendants() - .FirstOrDefault(e => e.Name.ToString().ToUpper() == namespacedPropName.ToUpper()); - } - - internal static XElement GetV3Node(this XDocument webpartXmlDocument, string propName, string propXlmns) - { - var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}properties").FirstOrDefault(); - - var propNodePath = "{" + propXlmns + "}property"; - return propsNode.Descendants(propNodePath) - .FirstOrDefault(e => e.Attribute("name") != null && e.Attribute("name").Value.ToUpper() == propName.ToUpper()); - } - - internal static XDocument SetOrUpdateV3MetadataProperty(this XDocument webpartXmlDocument, string propName, - string propValue, string propXlmns, bool isCData) - { - var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}metaData").FirstOrDefault(); - var propNode = GetV3MetadataNode(webpartXmlDocument, propName, propXlmns); - - if (propNode == null) - { - var newNode = (new XElement("{" + WebPartNamespaceV3 + "}" + propName)); - - newNode.SetAttributeValue("name", propName); - - if (isCData) - { - newNode.Add(new XCData(propValue)); - } - else - { - newNode.Value = propValue ?? string.Empty; - } - - propsNode.Add(newNode); - } - else - { - if (isCData) - { - propNode.ReplaceNodes(new XCData(propValue)); - } - else - { - propNode.Value = propValue ?? string.Empty; - } - } - - return webpartXmlDocument; - } - - internal static XDocument SetOrUpdateV3MetadataPropertyAttribute(this XDocument webpartXmlDocument, - string propName, - string attrName, - string attrValue, - string propXlmns, bool isCData) - { - var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}metaData").FirstOrDefault(); - var propNode = GetV3MetadataNode(webpartXmlDocument, propName, propXlmns); - - if (propNode == null) - { - var newNode = (new XElement("{" + WebPartNamespaceV3 + "}" + propName)); - - if (propName.ToUpper() == "SOLUTION") - { - newNode = (new XElement("{http://schemas.microsoft.com/sharepoint/}" + propName)); - newNode.SetAttributeValue("xmlns", "http://schemas.microsoft.com/sharepoint/"); - } - - //newNode.SetAttributeValue("name", propName); - newNode.SetAttributeValue(attrName, attrValue); - - propsNode.Add(newNode); - } - else - { - propNode.SetAttributeValue(attrName, attrValue); - } - - return webpartXmlDocument; - } - - internal static XDocument RemoveV3Property(this XDocument webpartXmlDocument, string propName, - string propXlmns) - { - var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}properties").FirstOrDefault(); - var propNode = GetV3Node(webpartXmlDocument, propName, propXlmns); - - if (propNode != null) - propNode.Remove(); - - return webpartXmlDocument; - } - - internal static XDocument SetOrUpdateV3Property(this XDocument webpartXmlDocument, string propName, - string propValue, string propXlmns, bool isCData) - { - return SetOrUpdateV3Property(webpartXmlDocument, propName, propValue, propXlmns, isCData, "string"); - } - - internal static XDocument SetOrUpdateV3Property(this XDocument webpartXmlDocument, string propName, - string propValue, string propXlmns, bool isCData, string propType) - { - return SetOrUpdateV3Property(webpartXmlDocument, propName, propValue, propType, propXlmns, isCData); - } - - internal static XDocument SetOrUpdateV3Property(this XDocument webpartXmlDocument, string propName, string propValue, - string propType, string propXlmns, bool isCData) - { - var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}properties").FirstOrDefault(); - var propNode = GetV3Node(webpartXmlDocument, propName, propXlmns); - - if (propNode == null) - { - var newNode = (new XElement("{" + WebPartNamespaceV3 + "}property")); - - newNode.SetAttributeValue("name", propName); - newNode.SetAttributeValue("type", propType); - - if (isCData) - { - newNode.Add(new XCData(propValue)); - } - else - { - newNode.Value = propValue ?? string.Empty; - - } - - propsNode.Add(newNode); - } - else - { - if (isCData) - { - propNode.ReplaceNodes(new XCData(propValue ?? string.Empty)); - propNode.SetAttributeValue("null", string.IsNullOrEmpty(propValue)); - } - else - { - propNode.Value = propValue ?? string.Empty; - propNode.SetAttributeValue("null", string.IsNullOrEmpty(propValue)); - } - } - - return webpartXmlDocument; - } - - internal static XElement GetV2Node(this XDocument webpartXmlDocument, string propName) - { - return GetV2Node(webpartXmlDocument, propName, WebPartNamespaceV2); - } - - internal static XElement GetV2Node(this XDocument webpartXmlDocument, string propName, string propXlmns) - { - var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}WebPart").FirstOrDefault(); - if (webPartNode == null) throw new ArgumentException("Web part xml template is very wrong"); - - var propNodePath = "{" + propXlmns + "}" + propName; - return webPartNode.Descendants(propNodePath).FirstOrDefault(); - } - - internal static XDocument RemoveV2Property(this XDocument webpartXmlDocument, string propName, - string propXlmns) - { - var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}WebPart").FirstOrDefault(); - if (webPartNode == null) throw new ArgumentException("Web part xml template is very wrong"); - - var propNodePath = "{" + propXlmns + "}" + propName; - var propNode = webPartNode.Descendants(propNodePath).FirstOrDefault(); - - if (propNode != null) - propNode.Remove(); - - return webpartXmlDocument; - } - - internal static XDocument SetOrUpdateV2Property(this XDocument webpartXmlDocument, string propName, - string propValue, string propXlmns, bool isCData) - { - return SetOrUpdateV2Property(webpartXmlDocument, propName, propValue, "string", propXlmns, isCData); - } - - internal static XDocument SetOrUpdateV2Property(this XDocument webpartXmlDocument, string propName, string propValue, - string propType, string propXlmns, bool isCData) - { - var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}WebPart").FirstOrDefault(); - - var propNodePath = "{" + propXlmns + "}" + propName; - var propNode = GetV2Node(webpartXmlDocument, propName, propXlmns); - - if (propNode == null) - { - var newNode = new XElement(propNodePath); - - if (isCData) - { - newNode.Add(new XCData(propValue)); - } - else - { - newNode.Value = propValue ?? string.Empty; - } - - webPartNode.Add(newNode); - } - else - { - if (isCData) - { - propNode.ReplaceNodes(new XCData(propValue)); - } - else - { - propNode.Value = propValue ?? string.Empty; - } - } - - return webpartXmlDocument; - } - - public static XDocument SetOrUpdateMetadataPropertyAttribute(this XDocument webpartXmlDocument, - string propName, - string attrName, string attrValue) - { - return SetOrUpdateMetadataPropertyAttribute(webpartXmlDocument, propName, attrName, attrValue, false); - } - - public static XDocument SetOrUpdateMetadataPropertyAttribute(this XDocument webpartXmlDocument, - string propName, - string attrName, string attrValue, - bool isCData) - { - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateV3MetadataPropertyAttribute(webpartXmlDocument, propName, attrName, attrValue, WebPartNamespaceV3, isCData); - - return webpartXmlDocument; - } - - public static XDocument SetOrUpdateMetadataProperty(this XDocument webpartXmlDocument, string propName, - string propValue) - { - return SetOrUpdateMetadataProperty(webpartXmlDocument, propName, propValue, false); - } - - public static XDocument SetOrUpdateMetadataProperty(this XDocument webpartXmlDocument, string propName, string propValue, bool isCData) - { - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateV3MetadataProperty(webpartXmlDocument, propName, propValue, WebPartNamespaceV3, isCData); - - return webpartXmlDocument; - } - - public static XDocument RemoveProperty(this XDocument webpartXmlDocument, string propName) - { - if (IsV3version(webpartXmlDocument)) - return RemoveV3Property(webpartXmlDocument, propName, WebPartNamespaceV3); - if (IsV2version(webpartXmlDocument)) - return RemoveV2Property(webpartXmlDocument, propName, WebPartNamespaceV2); - - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - public static XDocument SetOrUpdateProperty(this XDocument webpartXmlDocument, string propName, string propValue, - bool isCData) - { - return SetOrUpdateProperty(webpartXmlDocument, propName, propValue, "string", isCData); - } - - public static XDocument SetOrUpdateProperty(this XDocument webpartXmlDocument, string propName, string propValue, - string propType, bool isCData) - { - if (IsV3version(webpartXmlDocument)) - return SetOrUpdateV3Property(webpartXmlDocument, propName, propValue, propType, WebPartNamespaceV3, isCData); - if (IsV2version(webpartXmlDocument)) - return SetOrUpdateV2Property(webpartXmlDocument, propName, propValue, propType, WebPartNamespaceV2, isCData); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - internal static XDocument SetOrUpdateProperty(this XDocument webpartXmlDocument, string propName, string propValue, string propType, - string propXlmns, bool isCData) - { - if (IsV3version(webpartXmlDocument)) - SetOrUpdateV3Property(webpartXmlDocument, propName, propValue, propXlmns, isCData); - else if (IsV2version(webpartXmlDocument)) - SetOrUpdateV2Property(webpartXmlDocument, propName, propValue, propXlmns, isCData); - else - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - - return webpartXmlDocument; - } - - - - public static XDocument SetOrUpdateProperty(this XDocument webpartXmlDocument, string propName, string propValue) - { - return SetOrUpdateProperty(webpartXmlDocument, propName, propValue, false); - } - - public static XDocument SetOrUpdateCDataProperty(this XDocument webpartXmlDocument, string propName, string propValue) - { - return SetOrUpdateProperty(webpartXmlDocument, propName, propValue, true); - } - - public static XDocument SetGroupStyle(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - - public static XDocument SetTypedProperty(this XDocument webpartXmlDocument, string name, string value, string type) - { - webpartXmlDocument.SetOrUpdateProperty(name, value); - var node = GetV3Node(webpartXmlDocument, name, WebPartNamespaceV3); - - node.SetAttributeValue("type", type); - - return webpartXmlDocument; - } - - public static XDocument SetUseCache(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - - public static XDocument SetCacheXslStorage(this XDocument webpartXmlDocument, string value) - { - var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); - return SetOrUpdateProperty(webpartXmlDocument, name, value); - } - - #endregion - - #region get routines - - public static string GetProperty(this XDocument webpartXmlDocument, string propName) - { - if (IsV3version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, propName, WebPartNamespaceV3); - if (IsV2version(webpartXmlDocument)) - return GetProperty(webpartXmlDocument, propName, WebPartNamespaceV2); - - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - } - - internal static string GetProperty(this XDocument webpartXmlDocument, string propName, string xlmns) - { - XElement propNode = null; - - if (IsV3version(webpartXmlDocument)) - propNode = GetV3Node(webpartXmlDocument, propName, xlmns); - else if (IsV2version(webpartXmlDocument)) - propNode = GetV2Node(webpartXmlDocument, propName, xlmns); - else - throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); - - if (propNode != null) - return propNode.Value; - - return string.Empty; - } - - #endregion - - #endregion - - /// - /// Creates M2 definition based on web part XML - /// - /// - /// - /// - public static TDefinition LoadDefinitionFromWebpartFile(string webpartFileXml) - where TDefinition : DefinitionBase, new() - { - return LoadDefinitionFromWebpartFile(webpartFileXml, null); - } - - /// - /// Creates M2 definition based on web part XML - /// - /// - /// - /// - /// - public static TDefinition LoadDefinitionFromWebpartFile(string webpartFileXml, - Action action) - where TDefinition : DefinitionBase, new() - { - return LoadDefinitionFromWebpartFile(webpartFileXml, DefaultIgnoredProperties, null); - } - - public static List DefaultIgnoredProperties { get; set; } - - /// - /// Creates M2 definition based on web part XML - /// - /// - /// - /// Names of the properties to be removed form the import. - /// - /// - public static TDefinition LoadDefinitionFromWebpartFile(string webpartFileXml, - IEnumerable ignoredProperties, - Action action) - where TDefinition : DefinitionBase, new() - { - var def = new TDefinition(); - var wpXml = LoadWebpartXmlDocument(webpartFileXml); - - var excludedProperties = ignoredProperties.ToList(); - - var defProps = def.GetType().GetProperties(); - - foreach (var defProp in defProps) - { - if (excludedProperties.Any(p => string.Equals(p, defProp.Name, StringComparison.CurrentCultureIgnoreCase))) - continue; - - var xmlPropValue = wpXml.GetProperty(defProp.Name); - - if (!string.IsNullOrEmpty(xmlPropValue)) - { - var method = typeof(WebpartXmlExtensions).GetMethod("CustomChangeType", - BindingFlags.NonPublic | BindingFlags.Static); - var genericMethod = method.MakeGenericMethod(defProp.PropertyType); - - - var defPropValue = genericMethod.Invoke(null, new object[] { xmlPropValue, CultureInfo.CurrentCulture }); - - defProp.SetValue(def, defPropValue, null); - } - } - - if (action != null) - action(def); - - return def; - } - - internal static T CustomChangeType(object value, CultureInfo cultureInfo) - { - var toType = typeof(T); - - if (value == null) return default(T); - - if (value is string) - { - if (toType == typeof(Guid) || toType == typeof(Guid?)) - { - return CustomChangeType(new Guid(Convert.ToString(value, cultureInfo)), cultureInfo); - } - if ((string)value == string.Empty && toType != typeof(string)) - { - return CustomChangeType(null, cultureInfo); - } - } - else - { - if (typeof(T) == typeof(string)) - { - return CustomChangeType(Convert.ToString(value, cultureInfo), cultureInfo); - } - } - - if (toType.IsGenericType && - toType.GetGenericTypeDefinition() == typeof(Nullable<>)) - { - toType = Nullable.GetUnderlyingType(toType); - } - - bool canConvert = toType is IConvertible || (toType.IsValueType && !toType.IsEnum); - if (canConvert) - { - return (T)Convert.ChangeType(value, toType, cultureInfo); - } - return (T)value; - } - } -} + } + + + public static string GetWebId(this XDocument webpartXmlDocument) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); + return GetProperty(webpartXmlDocument, name); + } + + public static string GetListId(this XDocument webpartXmlDocument) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); + return GetProperty(webpartXmlDocument, name); + } + + public static XDocument SetShowTimelineIfAvailable(this XDocument webpartXmlDocument, bool value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value.ToString()); + } + + public static XDocument SetTitle(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetXmlDefinition(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetWebUrl(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetJSLink(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static string GetJSLink(this XDocument webpartXmlDocument) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); + return GetProperty(webpartXmlDocument, name); + } + + public static XDocument SetListName(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static string GetListName(this XDocument webpartXmlDocument) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Get", string.Empty); + return GetProperty(webpartXmlDocument, name); + } + + public static XDocument SetFilterDisplayValue1(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetDataMappingViewFields(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetID(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetItemStyle(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetListGuid(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetDataMappings(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument SetFilterValue1(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + public static XDocument BindXsltListViewWebPartToList(this XDocument webpartXmlDocument, string listId) + { + return webpartXmlDocument + .SetListGuid(listId) + .SetListId(listId) + .SetListName(listId); + } + + + #endregion + + #region utils + + #region version routines + + public static bool IsV3version(this XDocument webpartXmlDocument) + { + var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}WebPart").FirstOrDefault(); + + if (webPartNode == null) + webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}webPart").FirstOrDefault(); + + return webPartNode != null; + } + + public static bool IsV2version(this XDocument webpartXmlDocument) + { + var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}WebPart").FirstOrDefault(); + + if (webPartNode == null) + webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}webPart").FirstOrDefault(); + + return webPartNode != null; + } + + #endregion + + #region set routines + + internal static XElement GetV3Node(this XDocument webpartXmlDocument, string propName) + { + return GetV3Node(webpartXmlDocument, propName, WebPartNamespaceV3); + } + + internal static XElement GetV3MetadataNode(this XDocument webpartXmlDocument, string propName, string propXlmns) + { + var mNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}metaData").FirstOrDefault(); + var namespacedPropName = "{" + WebPartNamespaceV3 + "}" + propName; + + return mNode.Descendants() + .FirstOrDefault(e => e.Name.ToString().ToUpper() == namespacedPropName.ToUpper()); + } + + internal static XElement GetV3Node(this XDocument webpartXmlDocument, string propName, string propXlmns) + { + var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}properties").FirstOrDefault(); + + var propNodePath = "{" + propXlmns + "}property"; + return propsNode.Descendants(propNodePath) + .FirstOrDefault(e => e.Attribute("name") != null && e.Attribute("name").Value.ToUpper() == propName.ToUpper()); + } + + internal static XDocument SetOrUpdateV3MetadataProperty(this XDocument webpartXmlDocument, string propName, + string propValue, string propXlmns, bool isCData) + { + var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}metaData").FirstOrDefault(); + var propNode = GetV3MetadataNode(webpartXmlDocument, propName, propXlmns); + + if (propNode == null) + { + var newNode = (new XElement("{" + WebPartNamespaceV3 + "}" + propName)); + + newNode.SetAttributeValue("name", propName); + + if (isCData) + { + newNode.Add(new XCData(propValue)); + } + else + { + newNode.Value = propValue ?? string.Empty; + } + + propsNode.Add(newNode); + } + else + { + if (isCData) + { + propNode.ReplaceNodes(new XCData(propValue)); + } + else + { + propNode.Value = propValue ?? string.Empty; + } + } + + return webpartXmlDocument; + } + + internal static XDocument SetOrUpdateV3MetadataPropertyAttribute(this XDocument webpartXmlDocument, + string propName, + string attrName, + string attrValue, + string propXlmns, bool isCData) + { + var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}metaData").FirstOrDefault(); + var propNode = GetV3MetadataNode(webpartXmlDocument, propName, propXlmns); + + if (propNode == null) + { + var newNode = (new XElement("{" + WebPartNamespaceV3 + "}" + propName)); + + if (propName.ToUpper() == "SOLUTION") + { + newNode = (new XElement("{http://schemas.microsoft.com/sharepoint/}" + propName)); + newNode.SetAttributeValue("xmlns", "http://schemas.microsoft.com/sharepoint/"); + } + + //newNode.SetAttributeValue("name", propName); + newNode.SetAttributeValue(attrName, attrValue); + + propsNode.Add(newNode); + } + else + { + propNode.SetAttributeValue(attrName, attrValue); + } + + return webpartXmlDocument; + } + + internal static XDocument RemoveV3Property(this XDocument webpartXmlDocument, string propName, + string propXlmns) + { + var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}properties").FirstOrDefault(); + var propNode = GetV3Node(webpartXmlDocument, propName, propXlmns); + + if (propNode != null) + propNode.Remove(); + + return webpartXmlDocument; + } + + internal static XDocument SetOrUpdateV3Property(this XDocument webpartXmlDocument, string propName, + string propValue, string propXlmns, bool isCData) + { + return SetOrUpdateV3Property(webpartXmlDocument, propName, propValue, propXlmns, isCData, "string"); + } + + internal static XDocument SetOrUpdateV3Property(this XDocument webpartXmlDocument, string propName, + string propValue, string propXlmns, bool isCData, string propType) + { + return SetOrUpdateV3Property(webpartXmlDocument, propName, propValue, propType, propXlmns, isCData); + } + + internal static XDocument SetOrUpdateV3Property(this XDocument webpartXmlDocument, string propName, string propValue, + string propType, string propXlmns, bool isCData) + { + var propsNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV3 + "}properties").FirstOrDefault(); + var propNode = GetV3Node(webpartXmlDocument, propName, propXlmns); + + if (propNode == null) + { + var newNode = (new XElement("{" + WebPartNamespaceV3 + "}property")); + + newNode.SetAttributeValue("name", propName); + newNode.SetAttributeValue("type", propType); + + if (isCData) + { + newNode.Add(new XCData(propValue)); + } + else + { + newNode.Value = propValue ?? string.Empty; + + } + + propsNode.Add(newNode); + } + else + { + if (isCData) + { + propNode.ReplaceNodes(new XCData(propValue ?? string.Empty)); + propNode.SetAttributeValue("null", string.IsNullOrEmpty(propValue)); + } + else + { + propNode.Value = propValue ?? string.Empty; + propNode.SetAttributeValue("null", string.IsNullOrEmpty(propValue)); + } + } + + return webpartXmlDocument; + } + + internal static XElement GetV2Node(this XDocument webpartXmlDocument, string propName) + { + return GetV2Node(webpartXmlDocument, propName, WebPartNamespaceV2); + } + + internal static XElement GetV2Node(this XDocument webpartXmlDocument, string propName, string propXlmns) + { + var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}WebPart").FirstOrDefault(); + if (webPartNode == null) throw new ArgumentException("Web part xml template is very wrong"); + + var propNodePath = "{" + propXlmns + "}" + propName; + return webPartNode.Descendants(propNodePath).FirstOrDefault(); + } + + internal static XDocument RemoveV2Property(this XDocument webpartXmlDocument, string propName, + string propXlmns) + { + var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}WebPart").FirstOrDefault(); + if (webPartNode == null) throw new ArgumentException("Web part xml template is very wrong"); + + var propNodePath = "{" + propXlmns + "}" + propName; + var propNode = webPartNode.Descendants(propNodePath).FirstOrDefault(); + + if (propNode != null) + propNode.Remove(); + + return webpartXmlDocument; + } + + internal static XDocument SetOrUpdateV2Property(this XDocument webpartXmlDocument, string propName, + string propValue, string propXlmns, bool isCData) + { + return SetOrUpdateV2Property(webpartXmlDocument, propName, propValue, "string", propXlmns, isCData); + } + + internal static XDocument SetOrUpdateV2Property(this XDocument webpartXmlDocument, string propName, string propValue, + string propType, string propXlmns, bool isCData) + { + var webPartNode = webpartXmlDocument.Descendants("{" + WebPartNamespaceV2 + "}WebPart").FirstOrDefault(); + + var propNodePath = "{" + propXlmns + "}" + propName; + var propNode = GetV2Node(webpartXmlDocument, propName, propXlmns); + + if (propNode == null) + { + var newNode = new XElement(propNodePath); + + if (isCData) + { + newNode.Add(new XCData(propValue)); + } + else + { + newNode.Value = propValue ?? string.Empty; + } + + webPartNode.Add(newNode); + } + else + { + if (isCData) + { + propNode.ReplaceNodes(new XCData(propValue)); + } + else + { + propNode.Value = propValue ?? string.Empty; + } + } + + return webpartXmlDocument; + } + + public static XDocument SetOrUpdateMetadataPropertyAttribute(this XDocument webpartXmlDocument, + string propName, + string attrName, string attrValue) + { + return SetOrUpdateMetadataPropertyAttribute(webpartXmlDocument, propName, attrName, attrValue, false); + } + + public static XDocument SetOrUpdateMetadataPropertyAttribute(this XDocument webpartXmlDocument, + string propName, + string attrName, string attrValue, + bool isCData) + { + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateV3MetadataPropertyAttribute(webpartXmlDocument, propName, attrName, attrValue, WebPartNamespaceV3, isCData); + + return webpartXmlDocument; + } + + public static XDocument SetOrUpdateMetadataProperty(this XDocument webpartXmlDocument, string propName, + string propValue) + { + return SetOrUpdateMetadataProperty(webpartXmlDocument, propName, propValue, false); + } + + public static XDocument SetOrUpdateMetadataProperty(this XDocument webpartXmlDocument, string propName, string propValue, bool isCData) + { + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateV3MetadataProperty(webpartXmlDocument, propName, propValue, WebPartNamespaceV3, isCData); + + return webpartXmlDocument; + } + + public static XDocument RemoveProperty(this XDocument webpartXmlDocument, string propName) + { + if (IsV3version(webpartXmlDocument)) + return RemoveV3Property(webpartXmlDocument, propName, WebPartNamespaceV3); + if (IsV2version(webpartXmlDocument)) + return RemoveV2Property(webpartXmlDocument, propName, WebPartNamespaceV2); + + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + public static XDocument SetOrUpdateProperty(this XDocument webpartXmlDocument, string propName, string propValue, + bool isCData) + { + return SetOrUpdateProperty(webpartXmlDocument, propName, propValue, "string", isCData); + } + + public static XDocument SetOrUpdateProperty(this XDocument webpartXmlDocument, string propName, string propValue, + string propType, bool isCData) + { + if (IsV3version(webpartXmlDocument)) + return SetOrUpdateV3Property(webpartXmlDocument, propName, propValue, propType, WebPartNamespaceV3, isCData); + if (IsV2version(webpartXmlDocument)) + return SetOrUpdateV2Property(webpartXmlDocument, propName, propValue, propType, WebPartNamespaceV2, isCData); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + internal static XDocument SetOrUpdateProperty(this XDocument webpartXmlDocument, string propName, string propValue, string propType, + string propXlmns, bool isCData) + { + if (IsV3version(webpartXmlDocument)) + SetOrUpdateV3Property(webpartXmlDocument, propName, propValue, propXlmns, isCData); + else if (IsV2version(webpartXmlDocument)) + SetOrUpdateV2Property(webpartXmlDocument, propName, propValue, propXlmns, isCData); + else + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + + return webpartXmlDocument; + } + + + + public static XDocument SetOrUpdateProperty(this XDocument webpartXmlDocument, string propName, string propValue) + { + return SetOrUpdateProperty(webpartXmlDocument, propName, propValue, false); + } + + public static XDocument SetOrUpdateCDataProperty(this XDocument webpartXmlDocument, string propName, string propValue) + { + return SetOrUpdateProperty(webpartXmlDocument, propName, propValue, true); + } + + public static XDocument SetGroupStyle(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + + public static XDocument SetTypedProperty(this XDocument webpartXmlDocument, string name, string value, string type) + { + webpartXmlDocument.SetOrUpdateProperty(name, value); + var node = GetV3Node(webpartXmlDocument, name, WebPartNamespaceV3); + + node.SetAttributeValue("type", type); + + return webpartXmlDocument; + } + + public static XDocument SetUseCache(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + + public static XDocument SetCacheXslStorage(this XDocument webpartXmlDocument, string value) + { + var name = MethodBase.GetCurrentMethod().Name.Replace("Set", string.Empty); + return SetOrUpdateProperty(webpartXmlDocument, name, value); + } + + #endregion + + #region get routines + + public static string GetProperty(this XDocument webpartXmlDocument, string propName) + { + if (IsV3version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, propName, WebPartNamespaceV3); + if (IsV2version(webpartXmlDocument)) + return GetProperty(webpartXmlDocument, propName, WebPartNamespaceV2); + + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + } + + internal static string GetProperty(this XDocument webpartXmlDocument, string propName, string xlmns) + { + XElement propNode = null; + + if (IsV3version(webpartXmlDocument)) + propNode = GetV3Node(webpartXmlDocument, propName, xlmns); + else if (IsV2version(webpartXmlDocument)) + propNode = GetV2Node(webpartXmlDocument, propName, xlmns); + else + throw new Exception("http://schemas.microsoft.com/WebPart/v3 or http://schemas.microsoft.com/WebPart/v2 is expected, but missed"); + + if (propNode != null) + return propNode.Value; + + return string.Empty; + } + + #endregion + + #endregion + + /// + /// Creates M2 definition based on web part XML + /// + /// + /// + /// + public static TDefinition LoadDefinitionFromWebpartFile(string webpartFileXml) + where TDefinition : DefinitionBase, new() + { + return LoadDefinitionFromWebpartFile(webpartFileXml, null); + } + + /// + /// Creates M2 definition based on web part XML + /// + /// + /// + /// + /// + public static TDefinition LoadDefinitionFromWebpartFile(string webpartFileXml, + Action action) + where TDefinition : DefinitionBase, new() + { + return LoadDefinitionFromWebpartFile(webpartFileXml, DefaultIgnoredProperties, null); + } + + public static List DefaultIgnoredProperties { get; set; } + + /// + /// Creates M2 definition based on web part XML + /// + /// + /// + /// Names of the properties to be removed form the import. + /// + /// + public static TDefinition LoadDefinitionFromWebpartFile(string webpartFileXml, + IEnumerable ignoredProperties, + Action action) + where TDefinition : DefinitionBase, new() + { + var def = new TDefinition(); + var wpXml = LoadWebpartXmlDocument(webpartFileXml); + + var excludedProperties = ignoredProperties.ToList(); + + var defProps = def.GetType().GetProperties(); + + foreach (var defProp in defProps) + { + if (excludedProperties.Any(p => string.Equals(p, defProp.Name, StringComparison.CurrentCultureIgnoreCase))) + continue; + + var xmlPropValue = wpXml.GetProperty(defProp.Name); + + if (!string.IsNullOrEmpty(xmlPropValue)) + { + var method = typeof(WebpartXmlExtensions).GetMethod("CustomChangeType", + BindingFlags.NonPublic | BindingFlags.Static); + var genericMethod = method.MakeGenericMethod(defProp.PropertyType); + + + var defPropValue = genericMethod.Invoke(null, new object[] { xmlPropValue, CultureInfo.CurrentCulture }); + + defProp.SetValue(def, defPropValue, null); + } + } + + if (action != null) + action(def); + + return def; + } + + internal static T CustomChangeType(object value, CultureInfo cultureInfo) + { + var toType = typeof(T); + + if (value == null) return default(T); + + if (value is string) + { + if (toType == typeof(Guid) || toType == typeof(Guid?)) + { + return CustomChangeType(new Guid(Convert.ToString(value, cultureInfo)), cultureInfo); + } + if ((string)value == string.Empty && toType != typeof(string)) + { + return CustomChangeType(null, cultureInfo); + } + } + else + { + if (typeof(T) == typeof(string)) + { + return CustomChangeType(Convert.ToString(value, cultureInfo), cultureInfo); + } + } + + if (toType.IsGenericType && + toType.GetGenericTypeDefinition() == typeof(Nullable<>)) + { + toType = Nullable.GetUnderlyingType(toType); + } + + bool canConvert = toType is IConvertible || (toType.IsValueType && !toType.IsEnum); + if (canConvert) + { + return (T)Convert.ChangeType(value, toType, cultureInfo); + } + return (T)value; + } + } +} From 6cf65eeab3dc15c96421092d20497c0a2b4d3daa Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Sun, 9 Oct 2016 22:13:17 -0700 Subject: [PATCH 04/27] + Add TrustedAccessProviderDefinition - support trusted identity token issuer provision #167 + SSOM impl and some tests --- .../TrustedProviderDefinitionValidator.cs | 5 +- .../TrustedProviderDefinitionModelHandler.cs | 90 ++++++++++++++++++- .../TrustedAccessProviderDefinition.cs | 24 +++++ 3 files changed, 113 insertions(+), 6 deletions(-) diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Validation/TrustedProviderDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM/Validation/TrustedProviderDefinitionValidator.cs index 379abf368..5440f77c4 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/Validation/TrustedProviderDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM/Validation/TrustedProviderDefinitionValidator.cs @@ -13,10 +13,9 @@ public class TrustedAccessProviderDefinitionValidator : TrustedAccessProviderMod public override void DeployModel(object modelHost, DefinitionBase model) { - var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); + var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); - // TODO - SPTrustedAccessProvider spObject = null; + SPTrustedAccessProvider spObject = GetCurrentTrustedAccessProvider(modelHost, definition); var assert = ServiceFactory.AssertService .NewAssert(definition, spObject) diff --git a/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs b/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs index d58db567c..028e062ac 100644 --- a/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs +++ b/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs @@ -10,6 +10,9 @@ using SPMeta2.Utils; using Microsoft.SharePoint.Administration; using System.Security; +using Microsoft.SharePoint.Administration.Claims; +using System.Security.Cryptography.X509Certificates; +using SPMeta2.Exceptions; namespace SPMeta2.SSOM.ModelHandlers { @@ -34,11 +37,92 @@ public override void DeployModel(object modelHost, DefinitionBase model) DeployAftifact(farmModelHost, farmModelHost.HostFarm, definition); } - private void DeployAftifact(FarmModelHost farmModelHost, SPFarm spFarm, TrustedAccessProviderDefinition definition) + private void DeployAftifact(FarmModelHost modelHost, SPFarm spFarm, TrustedAccessProviderDefinition definition) { - // TODO + var currentObject = GetCurrentTrustedAccessProvider(spFarm, definition); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioning, + Object = currentObject, + ObjectType = typeof(SPTrustedAccessProvider), + ObjectDefinition = definition, + ModelHost = modelHost + }); + + if (currentObject == null) + { + var securityTokenService = SPSecurityTokenServiceManager.Local; + + if (securityTokenService == null) + throw new SPMeta2Exception("SPSecurityTokenServiceManager.Local is NULL"); + + if (definition != null && definition.Certificate.Count() > 0) + { + var certificate = new X509Certificate2(definition.Certificate); + + currentObject = new SPTrustedAccessProvider(securityTokenService, + definition.Name, + definition.Description ?? string.Empty, + certificate); + } + else + { + currentObject = new SPTrustedAccessProvider(securityTokenService, + definition.Name, + definition.Description ?? string.Empty); + } + } + + if (!string.IsNullOrEmpty(definition.MetadataEndPoint)) + { + currentObject.MetadataEndPoint = new Uri(definition.MetadataEndPoint); + } + + if (definition != null && definition.Certificate.Count() > 0) + { + var certificate = new X509Certificate2(definition.Certificate); + if (currentObject.SigningCertificate != certificate) + { + currentObject.SigningCertificate = certificate; + } + } + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = currentObject, + ObjectType = typeof(SPTrustedAccessProvider), + ObjectDefinition = definition, + ModelHost = modelHost + }); + + currentObject.Update(); + } + + protected virtual SPTrustedAccessProvider GetCurrentTrustedAccessProvider(object modelHost, TrustedAccessProviderDefinition definition) + { + var farmModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + + return GetCurrentTrustedAccessProvider(farmModelHost.HostFarm, definition); + + } + + protected virtual SPTrustedAccessProvider GetCurrentTrustedAccessProvider(SPFarm spFarm, TrustedAccessProviderDefinition definition) + { + SPTrustedAccessProvider result = null; + var securityTokenService = SPSecurityTokenServiceManager.Local; + + result = securityTokenService.TrustedAccessProviders + .FirstOrDefault(p => !string.IsNullOrEmpty(p.Name) + && (p.Name.ToUpper() == definition.Name.ToUpper())); + + return result; - throw new NotImplementedException(); } #endregion diff --git a/SPMeta2/SPMeta2/Definitions/TrustedAccessProviderDefinition.cs b/SPMeta2/SPMeta2/Definitions/TrustedAccessProviderDefinition.cs index addc69c1f..32a24b184 100644 --- a/SPMeta2/SPMeta2/Definitions/TrustedAccessProviderDefinition.cs +++ b/SPMeta2/SPMeta2/Definitions/TrustedAccessProviderDefinition.cs @@ -26,6 +26,15 @@ namespace SPMeta2.Definitions [ParentHostCapability(typeof(FarmDefinition))] public class TrustedAccessProviderDefinition : DefinitionBase { + #region constructors + + public TrustedAccessProviderDefinition() + { + Certificate = new byte[0]; + } + + #endregion + #region properties @@ -34,6 +43,21 @@ public class TrustedAccessProviderDefinition : DefinitionBase [IdentityKey] public string Name { get; set; } + + [ExpectValidation] + [DataMember] + public string Description { get; set; } + + [ExpectValidation] + [DataMember] + public string MetadataEndPoint { get; set; } + + + [ExpectValidation] + [DataMember] + [ExpectRequired] + public byte[] Certificate { get; set; } + #endregion #region methods From b061316d4315a5bdf33e47d6e2c0ae3a97e2f883 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 10 Oct 2016 17:09:09 -0700 Subject: [PATCH 05/27] + bootstrapped Add "SharePointDesignerSettingsDefinition" - support sharepoint designer settings provision #419 + NET35 build fix --- SPMeta2/SPMeta2.Build/m2.buildbaseline.xml | 2 +- .../SharePointDesignerSettingsModelHandler.cs | 91 ++++++++++++++ SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj | 1 + ...ointDesignerSettingsDefinitionGenerator.cs | 26 ++++ .../SPMeta2.Containers.csproj | 1 + .../SPMeta2.Regression.CSOM.csproj | 1 + ...ientSharePointDesignerSettingsValidator.cs | 55 +++++++++ .../SPMeta2.Regression.SSOM.csproj | 1 + ...ointDesignerSettingsDefinitionValidator.cs | 50 ++++++++ .../Impl/Random/RandomDefinitionTest.cs | 7 ++ .../SPMeta2.Regression.Tests.csproj | 1 + .../Utils/X509Utils.cs | 17 +++ .../SharePointDesignerSettingsModelHandler.cs | 111 ++++++++++++++++++ .../TrustedProviderDefinitionModelHandler.cs | 2 + SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj | 1 + .../SharePointDesignerSettingsDefinition.cs | 84 +++++++++++++ .../Enumerations/BuiltInWebPropertyId.cs | 4 +- SPMeta2/SPMeta2/SPMeta2.csproj | 2 + .../SharePointDesignerSettingsSyntax.cs | 42 +++++++ 19 files changed, 497 insertions(+), 2 deletions(-) create mode 100644 SPMeta2/SPMeta2.CSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs create mode 100644 SPMeta2/SPMeta2.Containers/DefinitionGenerators/SharePointDesignerSettingsDefinitionGenerator.cs create mode 100644 SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientSharePointDesignerSettingsValidator.cs create mode 100644 SPMeta2/SPMeta2.Regression.SSOM/Validation/SharePointDesignerSettingsDefinitionValidator.cs create mode 100644 SPMeta2/SPMeta2.Regression.Tests/Utils/X509Utils.cs create mode 100644 SPMeta2/SPMeta2.SSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs create mode 100644 SPMeta2/SPMeta2/Definitions/SharePointDesignerSettingsDefinition.cs create mode 100644 SPMeta2/SPMeta2/Syntax/Default/SharePointDesignerSettingsSyntax.cs diff --git a/SPMeta2/SPMeta2.Build/m2.buildbaseline.xml b/SPMeta2/SPMeta2.Build/m2.buildbaseline.xml index 411195f9b..c2904a19b 100644 --- a/SPMeta2/SPMeta2.Build/m2.buildbaseline.xml +++ b/SPMeta2/SPMeta2.Build/m2.buildbaseline.xml @@ -1 +1 @@ -SPMeta2.dllSPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AlternateUrlDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AnonymousAccessSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeveloperDashboardSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AppDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AuditSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ClearRecycleBinDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ComposedLookItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ComposedLookItemLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentDatabaseDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteQuickLaunchNavigationNodesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteWebPartsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiscussionReplyItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.LookupFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.DependentLookupFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DocumentParserDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.MultiChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.ChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.OutcomeChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.GeolocationFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiscussionItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemFieldValuesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.HtmlMasterPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPagePreviewDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PeoplePickerSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ResetRoleInheritanceDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SupportedUICultureDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteTopNavigationNodesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TreeViewSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.RootWebDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiagnosticsServiceBaseDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.EventReceiverDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.CalculatedFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.NumberFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.GuidFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.ComputedFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.URLFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.UserFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.DateTimeFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.BooleanFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.NoteFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.CurrencyFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.TextFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.InformationRightsManagementSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPageSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.RegionalSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecureStoreApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TargetApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TrustedAccessProviderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebConfigModificationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogAdminWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogLinksWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogMonthQuickLaunchDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.DataFormWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.GettingStartedWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ImageWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.MembersWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.PageViewerWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.PictureLibrarySlideshowWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SilverlightWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SimpleFormWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SPTimelineWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserCodeWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserDocsWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserTasksWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.WebPartGalleryFileDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.XmlWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.UserDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WorkflowAssociationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AppPrincipalDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.BreakRoleInheritanceDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.RemoveContentTypeFieldLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.HideContentTypeFieldLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.UniqueContentTypeFieldsOrderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FarmSolutionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.BusinessDataFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.RemoveContentTypeLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.JobDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ManagedAccountDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SandboxSolutionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.HideContentTypeLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.UniqueContentTypeOrderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ClientWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ScriptEditorWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ContentEditorWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ListViewWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.XsltListViewWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WelcomePageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeFieldLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FolderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListFieldLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ModuleFileDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PrefixDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.QuickLaunchNavigationNodeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SP2013WorkflowDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SP2013WorkflowSubscriptionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TopNavigationNodeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.UserCustomActionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FarmDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PropertyDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FeatureDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListViewDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityGroupDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityGroupLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityRoleDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityRoleLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SiteDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebPartPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WikiPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemFieldValueDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DiscussionBoardListDefinitionValidationModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.BooleanFieldDefinitionValidationModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultContentTypeIdPropertyModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultRequiredPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultNotAbsoluteUrlPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultVersionBasedPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultFieldInternalNamePropertyModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultXmlBasedPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.dllSPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DesignPackageDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ProfileTypePropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.CorePropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DocumentSetDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.ControlDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.FilterDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ManagedPropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.MetadataNavigationSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ReusableHTMLItemDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ReusableTextItemDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.AdvancedSearchBoxDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CategoryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CommunityAdminWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CommunityJoinWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.DocumentSetContentsWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.DocumentSetPropertiesWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.MyMembershipWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ProjectSummaryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.RefinementScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.RSSAggregatorWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SearchBoxScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SearchNavigationWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SiteDocumentsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SocialCommentWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.TableOfContentsWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.TagCloudWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.CustomDocumentIdProviderDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.JavaScriptDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.ItemDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.MediaFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.SummaryLinkFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.LinkFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.ImageFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.HTMLFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PageLayoutAndSiteTemplateSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.AudienceDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.TaxonomyFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ImageRenditionDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PublishingPageLayoutDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PublishingPageDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchConfigurationDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchResultDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermLabelDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.WebNavigationSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContactFieldControlDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContentBySearchWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContentByQueryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ResultScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SiteFeedWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SummaryLinkWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermGroupDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermSetDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermStoreDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Services.ServiceModelHandlers.PublishingPageDefinitionValidationModelHandler, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.dllSPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AnonymousAccessSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AppModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AppPrincipalModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Base.WebPartGalleryFileModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.BreakRoleInheritanceModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ClearRecycleBinModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ComposedLookItemLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeFieldLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.HideContentTypeFieldLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.RemoveContentTypeFieldLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.UniqueContentTypeFieldsOrderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.HideContentTypeLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.RemoveContentTypeLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.UniqueContentTypeOrderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.QuickLaunchNavigationNodeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteQuickLaunchNavigationNodesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.TopNavigationNodeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteTopNavigationNodesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteWebPartsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DiscussionReplyItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.EventReceiverModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FeatureModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.LookupFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.DependentLookupFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.MultiChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.ChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.OutcomeChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.GeolocationFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.CalculatedFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.ComputedFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.NumberFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.GuidFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.URLFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.UserFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.BooleanFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.DateTimeFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.TextFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.NoteFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.CurrencyFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.BusinessDataFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FolderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.InformationRightsManagementSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListFieldLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemFieldValuesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemFieldValueModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DiscussionItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.UserModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListViewModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.HtmlMasterPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPagePreviewModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPageSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.PropertyModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.RegionalSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ResetRoleInheritanceModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ComposedLookItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityGroupLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityGroupModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityRoleLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityRoleModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SiteModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SP2013WorkflowSubscriptionDefinitionModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SupportedUICultureModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.TreeViewSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.UserCustomActionModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.RootWebModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebPartPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogAdminWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogLinksWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogMonthQuickLaunchModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.DataFormWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.GettingStartedWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ImageWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.MembersWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.PageViewerWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.PictureLibrarySlideshowWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SilverlightWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SimpleFormWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SPTimelineWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserCodePartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ClientWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ScriptEditorWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ContentEditorWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ListViewWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserDocsWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserTasksWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.XmlWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WelcomePageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WorkflowAssociationModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WikiPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.XsltListViewWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ModuleFileModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SP2013WorkflowDefinitionHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.dllSPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.ControlDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.FilterDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.JavaScriptDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.ItemDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DesignPackageModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.SummaryLinkFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.MediaFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.LinkFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.HTMLFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.ImageFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.TaxonomyFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DocumentSetModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ImageRenditionModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.MetadataNavigationSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PageLayoutAndSiteTemplateSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PublishingPageLayoutModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PublishingPageModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ReusableHTMLItemModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ReusableTextItemModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchConfigurationModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchResultModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyGroupModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermLabelModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermSetModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermStoreModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.WebNavigationSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.AdvancedSearchBoxModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CategoryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CommunityAdminWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CommunityJoinWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContentBySearchWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.DocumentSetContentsWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.DocumentSetPropertiesWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.MyMembershipWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.RefinementScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ResultScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ProjectSummaryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.RSSAggregatorWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SearchBoxScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SearchNavigationWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SiteDocumentsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SocialCommentWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SummaryLinkWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContactFieldControlModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContentByQueryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SiteFeedWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.TableOfContentsWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.TagCloudWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SandboxSolutionModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.dllSPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AnonymousAccessSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AuditSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TopNavigationNodeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteTopNavigationNodesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.QuickLaunchNavigationNodeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteQuickLaunchNavigationNodesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ClearRecycleBinModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ComposedLookItemLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteWebPartsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiscussionReplyItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DocumentParserModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AlternateUrlModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AppModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AppPrincipalModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.HideContentTypeFieldLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.RemoveContentTypeFieldLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.RemoveContentTypeLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.HideContentTypeLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.UniqueContentTypeFieldsOrderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiagnosticsServiceBaseModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.EventReceiverModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FarmSolutionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.LookupFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.DependentLookupFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.GeolocationFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.MultiChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.ChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.OutcomeChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.URLFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.CalculatedFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.ComputedFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.DateTimeFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.BooleanFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.GuidFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.NumberFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.TextFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.NoteFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.CurrencyFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.UserFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentDatabaseModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.InformationRightsManagementSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemFieldValuesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.HtmlMasterPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiscussionItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPagePreviewModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PeoplePickerSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ResetRoleInheritanceModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ComposedLookItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.UserModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SupportedUICultureModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TreeViewSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ManagedAccountModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPageSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PropertyModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.BreakRoleInheritanceModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeFieldLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FeatureModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.BusinessDataFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FolderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.JobModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListFieldLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemFieldValueModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ModuleFileModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PrefixModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.RegionalSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SandboxSolutionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecureStoreApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SP2013WorkflowDefinitionHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SP2013WorkflowSubscriptionDefinitionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TargetApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.UniqueContentTypeOrderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.UserCustomActionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeveloperDashboardSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TrustedAccessProviderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebConfigModificationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.RootWebModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FarmModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListViewModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityGroupLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityGroupModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityRoleLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityRoleModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SiteModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebPartPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogAdminWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogLinksWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogMonthQuickLaunchModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ClientWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.DataFormWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.GettingStartedWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ImageWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ListViewWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.MembersWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.PageViewerWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.PictureLibrarySlideshowWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SilverlightWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SimpleFormWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SPTimelineWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserCodePartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserDocsWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserTasksWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.WebPartGalleryFileModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.XmlWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.XsltListViewWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ScriptEditorWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ContentEditorWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WelcomePageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WikiPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WorkflowAssociationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.dllSPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DesignPackageModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.CorePropertyModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DocumentSetModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.ControlDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.FilterDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.JavaScriptDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.ItemDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.SummaryLinkFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.MediaFieldDefinitionModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.HTMLFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.ImageFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.LinkFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ManagedPropertyModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.MetadataNavigationSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ReusableTextItemModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ReusableHTMLItemModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.CustomDocumentIdProviderModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PageLayoutAndSiteTemplateSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.TaxonomyFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.AudienceModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ImageRenditionModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PublishingPageLayoutModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PublishingPageModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchResultModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchConfigurationModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermLabelModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermStoreModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermSetModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyGroupModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.WebNavigationSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.AdvancedSearchBoxModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CategoryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CommunityAdminWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CommunityJoinWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContentBySearchWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.DocumentSetContentsWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.DocumentSetPropertiesWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.MyMembershipWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.RefinementScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ResultScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.RSSAggregatorWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SearchBoxScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SearchNavigationWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SiteDocumentsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SocialCommentWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SummaryLinkWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContactFieldControlModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContentByQueryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SiteFeedWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.TableOfContentsWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.TagCloudWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ProjectSummaryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531a \ No newline at end of file +SPMeta2.dllSPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AlternateUrlDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AnonymousAccessSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SharePointDesignerSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeveloperDashboardSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AppDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AuditSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ClearRecycleBinDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ComposedLookItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ComposedLookItemLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentDatabaseDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteQuickLaunchNavigationNodesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteWebPartsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiscussionReplyItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.LookupFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.DependentLookupFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DocumentParserDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.MultiChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.ChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.OutcomeChoiceFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.GeolocationFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiscussionItemDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemFieldValuesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.HtmlMasterPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPagePreviewDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PeoplePickerSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ResetRoleInheritanceDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SupportedUICultureDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DeleteTopNavigationNodesDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TreeViewSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.RootWebDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.DiagnosticsServiceBaseDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.EventReceiverDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.CalculatedFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.NumberFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.GuidFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.ComputedFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.URLFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.UserFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.DateTimeFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.BooleanFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.NoteFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.CurrencyFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.TextFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.InformationRightsManagementSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.MasterPageSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.RegionalSettingsDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecureStoreApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TargetApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TrustedAccessProviderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebConfigModificationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogAdminWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogLinksWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.BlogMonthQuickLaunchDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.DataFormWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.GettingStartedWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ImageWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.MembersWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.PageViewerWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.PictureLibrarySlideshowWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SilverlightWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SimpleFormWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.SPTimelineWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserCodeWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserDocsWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.UserTasksWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.WebPartGalleryFileDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.XmlWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.UserDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WorkflowAssociationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.AppPrincipalDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.BreakRoleInheritanceDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.RemoveContentTypeFieldLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.HideContentTypeFieldLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.UniqueContentTypeFieldsOrderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FarmSolutionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Fields.BusinessDataFieldDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.RemoveContentTypeLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.JobDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ManagedAccountDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SandboxSolutionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.HideContentTypeLinksDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypes.UniqueContentTypeOrderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ClientWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ScriptEditorWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ContentEditorWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.ListViewWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.Webparts.XsltListViewWebPartDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WelcomePageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeFieldLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ContentTypeLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FolderDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListFieldLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ModuleFileDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PrefixDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.QuickLaunchNavigationNodeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SP2013WorkflowDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SP2013WorkflowSubscriptionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.TopNavigationNodeDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.UserCustomActionDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FarmDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.PropertyDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.FeatureDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListViewDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityGroupDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityGroupLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityRoleDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SecurityRoleLinkDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.SiteDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebApplicationDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WebPartPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.WikiPageDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Definitions.ListItemFieldValueDefinition, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DiscussionBoardListDefinitionValidationModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.BooleanFieldDefinitionValidationModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultContentTypeIdPropertyModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultRequiredPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultNotAbsoluteUrlPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultVersionBasedPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultFieldInternalNamePropertyModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Services.ServiceModelHandlers.DefaultXmlBasedPropertiesModelHandler, SPMeta2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.dllSPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DesignPackageDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ProfileTypePropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.CorePropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DocumentSetDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.ControlDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.FilterDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ManagedPropertyDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.MetadataNavigationSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ReusableHTMLItemDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ReusableTextItemDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.AdvancedSearchBoxDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CategoryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CommunityAdminWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.CommunityJoinWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.DocumentSetContentsWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.DocumentSetPropertiesWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.MyMembershipWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ProjectSummaryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.RefinementScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.RSSAggregatorWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SearchBoxScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SearchNavigationWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SiteDocumentsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SocialCommentWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.TableOfContentsWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.TagCloudWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.CustomDocumentIdProviderDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.JavaScriptDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.DisplayTemplates.ItemDisplayTemplateDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.MediaFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.SummaryLinkFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.LinkFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.ImageFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.HTMLFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PageLayoutAndSiteTemplateSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.AudienceDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Fields.TaxonomyFieldDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.ImageRenditionDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PublishingPageLayoutDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.PublishingPageDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchConfigurationDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchResultDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.SearchSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermLabelDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.WebNavigationSettingsDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContactFieldControlDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContentBySearchWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ContentByQueryWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.ResultScriptWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SiteFeedWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Webparts.SummaryLinkWebPartDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermGroupDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermSetDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Definitions.Taxonomy.TaxonomyTermStoreDefinition, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.Standard.Services.ServiceModelHandlers.PublishingPageDefinitionValidationModelHandler, SPMeta2.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.dllSPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AnonymousAccessSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AppModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.AppPrincipalModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Base.WebPartGalleryFileModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.BreakRoleInheritanceModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ClearRecycleBinModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ComposedLookItemLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeFieldLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.HideContentTypeFieldLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.RemoveContentTypeFieldLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.UniqueContentTypeFieldsOrderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.HideContentTypeLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.RemoveContentTypeLinksModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ContentTypes.UniqueContentTypeOrderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.QuickLaunchNavigationNodeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteQuickLaunchNavigationNodesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.TopNavigationNodeModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteTopNavigationNodesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DeleteWebPartsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DiscussionReplyItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.EventReceiverModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FeatureModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.LookupFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.DependentLookupFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.MultiChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.ChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.OutcomeChoiceFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.GeolocationFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.CalculatedFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.ComputedFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.NumberFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.GuidFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.URLFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.UserFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.BooleanFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.DateTimeFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.TextFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.NoteFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.CurrencyFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Fields.BusinessDataFieldModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.FolderModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.InformationRightsManagementSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListFieldLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemFieldValuesModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListItemFieldValueModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.DiscussionItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SharePointDesignerSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.UserModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ListViewModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.HtmlMasterPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPagePreviewModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPageSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.PropertyModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.MasterPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.RegionalSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ResetRoleInheritanceModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ComposedLookItemModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityGroupLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityGroupModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityRoleLinkModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SecurityRoleModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SiteModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SP2013WorkflowSubscriptionDefinitionModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SupportedUICultureModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.TreeViewSettingsModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.UserCustomActionModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.RootWebModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WebPartPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogAdminWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogLinksWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.BlogMonthQuickLaunchModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.DataFormWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.GettingStartedWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ImageWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.MembersWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.PageViewerWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.PictureLibrarySlideshowWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SilverlightWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SimpleFormWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.SPTimelineWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserCodePartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ClientWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ScriptEditorWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ContentEditorWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.ListViewWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserDocsWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.UserTasksWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.XmlWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WelcomePageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WorkflowAssociationModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.WikiPageModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.Webparts.XsltListViewWebPartModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.ModuleFileModelHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.ModelHandlers.SP2013WorkflowDefinitionHandler, SPMeta2.CSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.dllSPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.ControlDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.FilterDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.JavaScriptDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DisplayTemplates.ItemDisplayTemplateModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DesignPackageModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.SummaryLinkFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.MediaFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.LinkFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.HTMLFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.ImageFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Fields.TaxonomyFieldModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.DocumentSetModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ImageRenditionModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.MetadataNavigationSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PageLayoutAndSiteTemplateSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PublishingPageLayoutModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.PublishingPageModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ReusableHTMLItemModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.ReusableTextItemModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchConfigurationModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SearchResultModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyGroupModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermLabelModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermSetModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermStoreModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.WebNavigationSettingsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.AdvancedSearchBoxModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CategoryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CommunityAdminWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.CommunityJoinWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContentBySearchWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.DocumentSetContentsWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.DocumentSetPropertiesWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.MyMembershipWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.RefinementScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ResultScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ProjectSummaryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.RSSAggregatorWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SearchBoxScriptWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SearchNavigationWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SiteDocumentsModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SocialCommentWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SummaryLinkWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContactFieldControlModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.ContentByQueryWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.SiteFeedWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.TableOfContentsWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.Webparts.TagCloudWebPartModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.CSOM.Standard.ModelHandlers.SandboxSolutionModelHandler, SPMeta2.CSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.dllSPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AnonymousAccessSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AuditSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TopNavigationNodeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteTopNavigationNodesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.QuickLaunchNavigationNodeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteQuickLaunchNavigationNodesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ClearRecycleBinModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ComposedLookItemLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeleteWebPartsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiscussionReplyItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DocumentParserModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AlternateUrlModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AppModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.AppPrincipalModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.HideContentTypeFieldLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.RemoveContentTypeFieldLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.RemoveContentTypeLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.HideContentTypeLinksModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.UniqueContentTypeFieldsOrderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiagnosticsServiceBaseModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.EventReceiverModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FarmSolutionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.LookupFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.DependentLookupFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.GeolocationFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.MultiChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.ChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.OutcomeChoiceFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.URLFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.CalculatedFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.ComputedFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.DateTimeFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.BooleanFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.GuidFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.NumberFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.TextFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.NoteFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.CurrencyFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.UserFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentDatabaseModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.InformationRightsManagementSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemFieldValuesModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.HtmlMasterPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DiscussionItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPagePreviewModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PeoplePickerSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ResetRoleInheritanceModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ComposedLookItemModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SharePointDesignerSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.UserModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SupportedUICultureModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TreeViewSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ManagedAccountModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.MasterPageSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PropertyModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.BreakRoleInheritanceModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeFieldLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypeModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FeatureModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Fields.BusinessDataFieldModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FolderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.JobModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListFieldLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListItemFieldValueModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ModuleFileModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.PrefixModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.RegionalSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SandboxSolutionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecureStoreApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SP2013WorkflowDefinitionHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SP2013WorkflowSubscriptionDefinitionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TargetApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ContentTypes.UniqueContentTypeOrderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.UserCustomActionModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.DeveloperDashboardSettingsModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.TrustedAccessProviderModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebApplicationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebConfigModificationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.RootWebModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.FarmModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.ListViewModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityGroupLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityGroupModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityRoleLinkModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SecurityRoleModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.SiteModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WebPartPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogAdminWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogLinksWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.BlogMonthQuickLaunchModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ClientWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.DataFormWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.GettingStartedWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ImageWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ListViewWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.MembersWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.PageViewerWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.PictureLibrarySlideshowWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SilverlightWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SimpleFormWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.SPTimelineWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserCodePartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserDocsWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.UserTasksWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.WebPartGalleryFileModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.XmlWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.XsltListViewWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ScriptEditorWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.Webparts.ContentEditorWebPartModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WelcomePageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WikiPageModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.ModelHandlers.WorkflowAssociationModelHandler, SPMeta2.SSOM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.dllSPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DesignPackageModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.CorePropertyModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DocumentSetModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.ControlDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.FilterDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.JavaScriptDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.DisplayTemplates.ItemDisplayTemplateModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.SummaryLinkFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.MediaFieldDefinitionModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.HTMLFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.ImageFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.LinkFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ManagedPropertyModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.MetadataNavigationSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ReusableTextItemModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ReusableHTMLItemModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.CustomDocumentIdProviderModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PageLayoutAndSiteTemplateSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Fields.TaxonomyFieldModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.AudienceModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.ImageRenditionModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PublishingPageLayoutModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.PublishingPageModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchResultModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.SearchConfigurationModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermLabelModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermStoreModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermSetModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyTermModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Taxonomy.TaxonomyGroupModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.WebNavigationSettingsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.AdvancedSearchBoxModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CategoryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CommunityAdminWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.CommunityJoinWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContentBySearchWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.DocumentSetContentsWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.DocumentSetPropertiesWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.MyMembershipWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.RefinementScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ResultScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.RSSAggregatorWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SearchBoxScriptWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SearchNavigationWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SiteDocumentsModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SocialCommentWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SummaryLinkWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContactFieldControlModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ContentByQueryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.SiteFeedWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.TableOfContentsWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.TagCloudWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531aSPMeta2.SSOM.Standard.ModelHandlers.Webparts.ProjectSummaryWebPartModelHandler, SPMeta2.SSOM.Standard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d71faae3bf28531a \ No newline at end of file diff --git a/SPMeta2/SPMeta2.CSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs b/SPMeta2/SPMeta2.CSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs new file mode 100644 index 000000000..b274d9d7b --- /dev/null +++ b/SPMeta2/SPMeta2.CSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs @@ -0,0 +1,91 @@ +using System; +using Microsoft.SharePoint.Client; +using SPMeta2.Common; +using SPMeta2.CSOM.Extensions; +using SPMeta2.CSOM.ModelHosts; +using SPMeta2.Definitions; +using SPMeta2.Utils; + +namespace SPMeta2.CSOM.ModelHandlers +{ + public class SharePointDesignerSettingsModelHandler : CSOMModelHandlerBase + { + #region methods + + public override Type TargetType + { + get { return typeof(SharePointDesignerSettingsDefinition); } + } + + public override void DeployModel(object modelHost, DefinitionBase model) + { + var siteModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + var site = siteModelHost.HostSite; + var rootWeb = site.RootWeb; + + var context = site.Context; + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioning, + Object = site, + ObjectType = typeof(Site), + ObjectDefinition = definition, + ModelHost = modelHost + }); + + var shouldUpdate = false; + + if (definition.EnableCustomizingMasterPagesAndPageLayouts.HasValue) + { + // TODO + + shouldUpdate = true; + } + + if (definition.EnableDetachingPages.HasValue) + { + // TODO + + shouldUpdate = true; + } + + if (definition.EnableManagingWebSiteUrlStructure.HasValue) + { + // TODO + + shouldUpdate = true; + } + + if (definition.EnableSharePointDesigner.HasValue) + { + // TODO + + shouldUpdate = true; + } + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = site, + ObjectType = typeof(Site), + ObjectDefinition = definition, + ModelHost = modelHost + }); + + if (shouldUpdate) + { + // TODO + context.ExecuteQueryWithTrace(); + } + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj b/SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj index 0dc02f8bf..56d3a263f 100644 --- a/SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj +++ b/SPMeta2/SPMeta2.CSOM/SPMeta2.CSOM.csproj @@ -206,6 +206,7 @@ + diff --git a/SPMeta2/SPMeta2.Containers/DefinitionGenerators/SharePointDesignerSettingsDefinitionGenerator.cs b/SPMeta2/SPMeta2.Containers/DefinitionGenerators/SharePointDesignerSettingsDefinitionGenerator.cs new file mode 100644 index 000000000..10a28b3ac --- /dev/null +++ b/SPMeta2/SPMeta2.Containers/DefinitionGenerators/SharePointDesignerSettingsDefinitionGenerator.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using SPMeta2.Containers.Services; +using SPMeta2.Containers.Services.Base; +using SPMeta2.Definitions; +using SPMeta2.Enumerations; + +namespace SPMeta2.Containers.DefinitionGenerators +{ + public class SharePointDesignerSettingsDefinitionGenerator : TypedDefinitionGeneratorServiceBase + { + public override DefinitionBase GenerateRandomDefinition(Action action) + { + return WithEmptyDefinition(def => + { + def.EnableCustomizingMasterPagesAndPageLayouts = Rnd.Bool(); + def.EnableDetachingPages = Rnd.Bool(); + def.EnableManagingWebSiteUrlStructure = Rnd.Bool(); + def.EnableSharePointDesigner = Rnd.Bool(); + }); + } + } +} diff --git a/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj b/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj index c65c72fce..22bb9c1b4 100644 --- a/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj +++ b/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj @@ -112,6 +112,7 @@ True DefaultWebpartTemplates.resx + diff --git a/SPMeta2/SPMeta2.Regression.CSOM/SPMeta2.Regression.CSOM.csproj b/SPMeta2/SPMeta2.Regression.CSOM/SPMeta2.Regression.CSOM.csproj index f2f1b2cb0..c217a45b2 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM/SPMeta2.Regression.CSOM.csproj +++ b/SPMeta2/SPMeta2.Regression.CSOM/SPMeta2.Regression.CSOM.csproj @@ -121,6 +121,7 @@ + diff --git a/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientSharePointDesignerSettingsValidator.cs b/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientSharePointDesignerSettingsValidator.cs new file mode 100644 index 000000000..6e8c25750 --- /dev/null +++ b/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientSharePointDesignerSettingsValidator.cs @@ -0,0 +1,55 @@ +using System.Linq; +using SPMeta2.Containers.Assertion; +using SPMeta2.CSOM.Extensions; +using SPMeta2.CSOM.ModelHandlers; +using SPMeta2.CSOM.ModelHosts; +using SPMeta2.Definitions; +using SPMeta2.Utils; + +namespace SPMeta2.Regression.CSOM.Validation +{ + public class ClientSharePointDesignerSettingsValidator : SharePointDesignerSettingsModelHandler + { + public override void DeployModel(object modelHost, DefinitionBase model) + { + var webHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + var spObject = webHost.HostSite.RootWeb; + + var context = spObject.Context; + context.Load(spObject, s => s.AllProperties); + context.ExecuteQueryWithTrace(); + + var assert = ServiceFactory.AssertService + .NewAssert(definition, spObject) + .ShouldNotBeNull(spObject); + + // TODO + + //if (definition.DeleteAll) + //{ + // assert.ShouldBeEqual((p, s, d) => + // { + // var srcProp = s.GetExpressionValue(def => def.DeleteAll); + // var isValid = true; + + // isValid = spObject.RecycleBin.Count == 0; + + // return new PropertyValidationResult + // { + // Tag = p.Tag, + // Src = srcProp, + // Dst = null, + // IsValid = isValid + // }; + // }); + //} + //else + //{ + // assert.SkipProperty(o => o.DeleteAll, "DeleteAll is false"); + //} + } + } + +} diff --git a/SPMeta2/SPMeta2.Regression.SSOM/SPMeta2.Regression.SSOM.csproj b/SPMeta2/SPMeta2.Regression.SSOM/SPMeta2.Regression.SSOM.csproj index 161323827..3e938e104 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/SPMeta2.Regression.SSOM.csproj +++ b/SPMeta2/SPMeta2.Regression.SSOM/SPMeta2.Regression.SSOM.csproj @@ -132,6 +132,7 @@ + diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Validation/SharePointDesignerSettingsDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM/Validation/SharePointDesignerSettingsDefinitionValidator.cs new file mode 100644 index 000000000..1f09c7362 --- /dev/null +++ b/SPMeta2/SPMeta2.Regression.SSOM/Validation/SharePointDesignerSettingsDefinitionValidator.cs @@ -0,0 +1,50 @@ +using System.Linq; +using SPMeta2.Containers.Assertion; +using SPMeta2.Definitions; +using SPMeta2.SSOM.ModelHandlers; +using SPMeta2.SSOM.ModelHosts; +using SPMeta2.Utils; + +namespace SPMeta2.Regression.SSOM.Validation +{ + public class SharePointDesignerSettingsDefinitionValidator : SharePointDesignerSettingsModelHandler + { + public override void DeployModel(object modelHost, DefinitionBase model) + { + var webHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + var spObject = webHost.HostSite.RootWeb; + + var assert = ServiceFactory.AssertService + .NewAssert(definition, spObject) + .ShouldNotBeNull(spObject); + + // TODO + + //if (definition.DeleteAll) + //{ + // assert.ShouldBeEqual((p, s, d) => + // { + // var srcProp = s.GetExpressionValue(def => def.DeleteAll); + // var isValid = true; + + // isValid = spObject.RecycleBin.Count == 0; + + // return new PropertyValidationResult + // { + // Tag = p.Tag, + // Src = srcProp, + // Dst = null, + // IsValid = isValid + // }; + // }); + //} + //else + //{ + // assert.SkipProperty(o => o.DeleteAll, "DeleteAll is false"); + //} + } + } + +} diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Random/RandomDefinitionTest.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Random/RandomDefinitionTest.cs index 0b399775e..6c00fe94d 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Impl/Random/RandomDefinitionTest.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Random/RandomDefinitionTest.cs @@ -618,6 +618,13 @@ public void CanDeployRandom_FarmSolutionDefinition() }); } + [TestMethod] + [TestCategory("Regression.Rnd.Site")] + public void CanDeployRandom_SharePointDesignerSettingsDefinition() + { + TestRandomDefinition(); + } + [TestMethod] [TestCategory("Regression.Rnd.Site")] public void CanDeployRandom_AudienceDefinition() diff --git a/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj b/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj index 186c95a4b..4e6986115 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj +++ b/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj @@ -291,6 +291,7 @@ + True True diff --git a/SPMeta2/SPMeta2.Regression.Tests/Utils/X509Utils.cs b/SPMeta2/SPMeta2.Regression.Tests/Utils/X509Utils.cs new file mode 100644 index 000000000..05d7f7685 --- /dev/null +++ b/SPMeta2/SPMeta2.Regression.Tests/Utils/X509Utils.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Threading.Tasks; + +namespace SPMeta2.Regression.Tests.Utils +{ + public static class X509Utils + { + public static X509Certificate2 GenerateSelfSignedCertificate() + { + throw new NotImplementedException(); + } + } +} diff --git a/SPMeta2/SPMeta2.SSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs b/SPMeta2/SPMeta2.SSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs new file mode 100644 index 000000000..4d6de8d8c --- /dev/null +++ b/SPMeta2/SPMeta2.SSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs @@ -0,0 +1,111 @@ +using System; +using System.Linq; +using Microsoft.SharePoint; +using Microsoft.SharePoint.Utilities; +using SPMeta2.Common; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.ModelHandlers; +using SPMeta2.Services; +using SPMeta2.SSOM.DefaultSyntax; +using SPMeta2.SSOM.ModelHosts; +using SPMeta2.Utils; +using SPMeta2.Enumerations; +using System.Collections; + +namespace SPMeta2.SSOM.ModelHandlers +{ + public class SharePointDesignerSettingsModelHandler : SSOMModelHandlerBase + { + #region methods + + public override Type TargetType + { + get { return typeof(SharePointDesignerSettingsDefinition); } + } + + protected virtual void SetPropertySafe(Hashtable properties, string key, object value) + { + if (!properties.ContainsKey(key)) + properties.Add(key, value); + else + properties[key] = value; + } + + public override void DeployModel(object modelHost, DefinitionBase model) + { + var siteModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + var site = siteModelHost.HostSite; + var rootWeb = site.RootWeb; + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioning, + Object = site, + ObjectType = typeof(SPSite), + ObjectDefinition = definition, + ModelHost = modelHost + }); + + var shouldUpdate = false; + + if (definition.EnableCustomizingMasterPagesAndPageLayouts.HasValue) + { + SetPropertySafe(rootWeb.AllProperties, + BuiltInWebPropertyId.AllowMasterpageEditing, + definition.EnableCustomizingMasterPagesAndPageLayouts.Value == true ? 1 : 0); + + shouldUpdate = true; + } + + if (definition.EnableDetachingPages.HasValue) + { + SetPropertySafe(rootWeb.AllProperties, + BuiltInWebPropertyId.AllowRevertFromTemplate, + definition.EnableDetachingPages.Value == true ? 1 : 0); + + shouldUpdate = true; + } + + if (definition.EnableManagingWebSiteUrlStructure.HasValue) + { + SetPropertySafe(rootWeb.AllProperties, + BuiltInWebPropertyId.ShowUrlStructure, + definition.EnableManagingWebSiteUrlStructure.Value == true ? 1 : 0); + + shouldUpdate = true; + } + + if (definition.EnableSharePointDesigner.HasValue) + { + SetPropertySafe(rootWeb.AllProperties, + BuiltInWebPropertyId.AllowDesigner, + definition.EnableSharePointDesigner.Value == true ? 1 : 0); + + shouldUpdate = true; + } + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = site, + ObjectType = typeof(SPSite), + ObjectDefinition = definition, + ModelHost = modelHost + }); + + if (shouldUpdate) + { + rootWeb.Update(); + } + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs b/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs index 028e062ac..d7a7740eb 100644 --- a/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs +++ b/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs @@ -76,10 +76,12 @@ private void DeployAftifact(FarmModelHost modelHost, SPFarm spFarm, TrustedAcces } } +#if !NET35 if (!string.IsNullOrEmpty(definition.MetadataEndPoint)) { currentObject.MetadataEndPoint = new Uri(definition.MetadataEndPoint); } +#endif if (definition != null && definition.Certificate.Count() > 0) { diff --git a/SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj b/SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj index 5ea25fb3e..213bb891b 100644 --- a/SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj +++ b/SPMeta2/SPMeta2.SSOM/SPMeta2.SSOM.csproj @@ -252,6 +252,7 @@ + diff --git a/SPMeta2/SPMeta2/Definitions/SharePointDesignerSettingsDefinition.cs b/SPMeta2/SPMeta2/Definitions/SharePointDesignerSettingsDefinition.cs new file mode 100644 index 000000000..72ee4b0ee --- /dev/null +++ b/SPMeta2/SPMeta2/Definitions/SharePointDesignerSettingsDefinition.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; + +using SPMeta2.Attributes; +using SPMeta2.Attributes.Capabilities; +using SPMeta2.Attributes.Identity; +using SPMeta2.Attributes.Regression; +using SPMeta2.Utils; + +namespace SPMeta2.Definitions +{ + + /// + /// Allows to provision SharePointDesigner settings on the target site. + /// + [SPObjectType(SPObjectModelType.SSOM, "Microsoft.SharePoint.SPSite", "Microsoft.SharePoint")] + [SPObjectType(SPObjectModelType.CSOM, "Microsoft.SharePoint.Client.Site", "Microsoft.SharePoint.Client")] + + [DefaultRootHost(typeof(SiteDefinition))] + [DefaultParentHost(typeof(SiteDefinition))] + + [Serializable] + [DataContract] + + //[ExpectWithExtensionMethod] + //[ExpectArrayExtensionMethod] + + [SingletonIdentity] + [ExpectManyInstances] + + [ParentHostCapability(typeof(WebDefinition))] + public class SharePointDesignerSettingsDefinition : DefinitionBase + { + #region constructors + + public SharePointDesignerSettingsDefinition() + { + + } + + #endregion + + #region properties + + [DataMember] + [ExpectValidation] + [ExpectUpdate] + public bool? EnableSharePointDesigner { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectUpdate] + public bool? EnableDetachingPages { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectUpdate] + public bool? EnableCustomizingMasterPagesAndPageLayouts { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectUpdate] + public bool? EnableManagingWebSiteUrlStructure { get; set; } + + #endregion + + #region methods + + public override string ToString() + { + return new ToStringResult(this) + .AddPropertyValue(p => p.EnableSharePointDesigner) + .AddPropertyValue(p => p.EnableDetachingPages) + .AddPropertyValue(p => p.EnableCustomizingMasterPagesAndPageLayouts) + .AddPropertyValue(p => p.EnableManagingWebSiteUrlStructure) + .ToString(); + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2/Enumerations/BuiltInWebPropertyId.cs b/SPMeta2/SPMeta2/Enumerations/BuiltInWebPropertyId.cs index 81cf78072..6c1427b0b 100644 --- a/SPMeta2/SPMeta2/Enumerations/BuiltInWebPropertyId.cs +++ b/SPMeta2/SPMeta2/Enumerations/BuiltInWebPropertyId.cs @@ -82,7 +82,9 @@ public static class BuiltInWebPropertyId /// /// Refers to allowrevertfromtemplate /// - public static string AllowRevertFromTemplate = "allowrevertfromtemplate"; + public static string AllowRevertFromTemplate = "allowrevertfromtemplate"; + + public static string ShowUrlStructure = "showurlstructure"; #endregion } diff --git a/SPMeta2/SPMeta2/SPMeta2.csproj b/SPMeta2/SPMeta2/SPMeta2.csproj index b38299d1c..8ee08216f 100644 --- a/SPMeta2/SPMeta2/SPMeta2.csproj +++ b/SPMeta2/SPMeta2/SPMeta2.csproj @@ -140,6 +140,7 @@ + @@ -411,6 +412,7 @@ + diff --git a/SPMeta2/SPMeta2/Syntax/Default/SharePointDesignerSettingsSyntax.cs b/SPMeta2/SPMeta2/Syntax/Default/SharePointDesignerSettingsSyntax.cs new file mode 100644 index 000000000..fbb3743ff --- /dev/null +++ b/SPMeta2/SPMeta2/Syntax/Default/SharePointDesignerSettingsSyntax.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using SPMeta2.Definitions; +using SPMeta2.Models; + +namespace SPMeta2.Syntax.Default +{ + + [Serializable] + [DataContract] + public class SharePointDesignerSettingsModelNode : TypedModelNode + { + + } + + public static class SharePointDesignerSettingsSyntax + { + #region methods + + public static TModelNode AddSharePointDesignerSettings(this TModelNode model, SharePointDesignerSettingsDefinition definition) + where TModelNode : ModelNode, ISiteModelNode, new() + { + return AddSharePointDesignerSettings(model, definition, null); + } + + public static TModelNode AddSharePointDesignerSettings(this TModelNode model, SharePointDesignerSettingsDefinition definition, + Action action) + where TModelNode : ModelNode, ISiteModelNode, new() + { + return model.AddTypedDefinitionNode(definition, action); + } + + #endregion + + #region array overload + + + + #endregion + } +} From cc246f96a636c6346588e8fb8ef961a417781698 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 10 Oct 2016 17:43:22 -0700 Subject: [PATCH 06/27] + Add "SharePointDesignerSettingsDefinition" - support sharepoint designer settings provision #419 + Passed CanDeployRandom_SharePointDesignerSettingsDefinition tests for SSOM + Added 'Regression.Utils.ConvertUtils' tests for ConvertUtils.ToBool calls --- ...ointDesignerSettingsDefinitionValidator.cs | 131 ++++++++--- .../Impl/Utils/ConvertUtilsTests.cs | 88 ++++++++ .../SPMeta2.Regression.Tests.csproj | 1 + .../SharePointDesignerSettingsModelHandler.cs | 15 +- .../SharePointDesignerSettingsDefinition.cs | 14 +- SPMeta2/SPMeta2/Utils/ConvertUtils.cs | 210 +++++++++--------- 6 files changed, 326 insertions(+), 133 deletions(-) create mode 100644 SPMeta2/SPMeta2.Regression.Tests/Impl/Utils/ConvertUtilsTests.cs diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Validation/SharePointDesignerSettingsDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM/Validation/SharePointDesignerSettingsDefinitionValidator.cs index 1f09c7362..60cd92b2f 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/Validation/SharePointDesignerSettingsDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM/Validation/SharePointDesignerSettingsDefinitionValidator.cs @@ -4,6 +4,7 @@ using SPMeta2.SSOM.ModelHandlers; using SPMeta2.SSOM.ModelHosts; using SPMeta2.Utils; +using SPMeta2.Enumerations; namespace SPMeta2.Regression.SSOM.Validation { @@ -12,7 +13,7 @@ public class SharePointDesignerSettingsDefinitionValidator : SharePointDesignerS public override void DeployModel(object modelHost, DefinitionBase model) { var webHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); + var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); var spObject = webHost.HostSite.RootWeb; @@ -20,30 +21,110 @@ public override void DeployModel(object modelHost, DefinitionBase model) .NewAssert(definition, spObject) .ShouldNotBeNull(spObject); - // TODO - - //if (definition.DeleteAll) - //{ - // assert.ShouldBeEqual((p, s, d) => - // { - // var srcProp = s.GetExpressionValue(def => def.DeleteAll); - // var isValid = true; - - // isValid = spObject.RecycleBin.Count == 0; - - // return new PropertyValidationResult - // { - // Tag = p.Tag, - // Src = srcProp, - // Dst = null, - // IsValid = isValid - // }; - // }); - //} - //else - //{ - // assert.SkipProperty(o => o.DeleteAll, "DeleteAll is false"); - //} + if (definition.EnableCustomizingMasterPagesAndPageLayouts.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.EnableCustomizingMasterPagesAndPageLayouts); + var isValid = true; + + var dstValue = ConvertUtils.ToBool(spObject.AllProperties[BuiltInWebPropertyId.AllowMasterpageEditing]); + + isValid = s.EnableCustomizingMasterPagesAndPageLayouts.Value == dstValue; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid, + Message = string.Format("{0} - {1}", BuiltInWebPropertyId.AllowMasterpageEditing, dstValue) + }; + }); + } + else + { + assert.SkipProperty(o => o.EnableCustomizingMasterPagesAndPageLayouts, "EnableCustomizingMasterPagesAndPageLayouts is NULL. Skipping"); + } + + if (definition.EnableDetachingPages.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.EnableDetachingPages); + var isValid = true; + + var dstValue = ConvertUtils.ToBool(spObject.AllProperties[BuiltInWebPropertyId.AllowRevertFromTemplate]); + + isValid = s.EnableDetachingPages.Value == dstValue; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid, + Message = string.Format("{0} - {1}", BuiltInWebPropertyId.AllowMasterpageEditing, dstValue) + }; + }); + } + else + { + assert.SkipProperty(o => o.EnableDetachingPages, "EnableDetachingPages is NULL. Skipping"); + } + + if (definition.EnableManagingWebSiteUrlStructure.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.EnableManagingWebSiteUrlStructure); + var isValid = true; + + var dstValue = ConvertUtils.ToBool(spObject.AllProperties[BuiltInWebPropertyId.ShowUrlStructure]); + + isValid = s.EnableManagingWebSiteUrlStructure.Value == dstValue; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid, + Message = string.Format("{0} - {1}", BuiltInWebPropertyId.AllowMasterpageEditing, dstValue) + }; + }); + } + else + { + assert.SkipProperty(o => o.EnableManagingWebSiteUrlStructure, "EnableManagingWebSiteUrlStructure is NULL. Skipping"); + } + + if (definition.EnableSharePointDesigner.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.EnableSharePointDesigner); + var isValid = true; + + var dstValue = ConvertUtils.ToBool(spObject.AllProperties[BuiltInWebPropertyId.AllowDesigner]); + + isValid = s.EnableSharePointDesigner.Value == dstValue; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid, + Message = string.Format("{0} - {1}", BuiltInWebPropertyId.AllowMasterpageEditing, dstValue) + }; + }); + } + else + { + assert.SkipProperty(o => o.EnableSharePointDesigner, "EnableSharePointDesigner is NULL. Skipping"); + } + } } diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Utils/ConvertUtilsTests.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Utils/ConvertUtilsTests.cs new file mode 100644 index 000000000..a55d10f8e --- /dev/null +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Utils/ConvertUtilsTests.cs @@ -0,0 +1,88 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using SPMeta2.Utils; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SPMeta2.Regression.Tests.Impl.Utils +{ + [TestClass] + public class ConvertUtilsTests + { + #region tests + + [TestMethod] + [TestCategory("Regression.Utils.ConvertUtils")] + [TestCategory("CI.Core")] + public void ConvertUtils_CanParseBool_AsTrue() + { + Assert.IsTrue(ConvertUtils.ToBool(1).Value); + Assert.IsTrue(ConvertUtils.ToBool((object)1).Value); + + Assert.IsTrue(ConvertUtils.ToBool("1").Value); + Assert.IsTrue(ConvertUtils.ToBool((object)"1").Value); + + Assert.IsTrue(ConvertUtils.ToBool("true").Value); + Assert.IsTrue(ConvertUtils.ToBool("True").Value); + Assert.IsTrue(ConvertUtils.ToBool("TRUE").Value); + Assert.IsTrue(ConvertUtils.ToBool((object)"true").Value); + Assert.IsTrue(ConvertUtils.ToBool((object)"True").Value); + Assert.IsTrue(ConvertUtils.ToBool((object)"TRUE").Value); + + + Assert.IsTrue(ConvertUtils.ToBool(true).Value); + Assert.IsTrue(ConvertUtils.ToBool((object)true).Value); + } + + [TestMethod] + [TestCategory("Regression.Utils.ConvertUtils")] + [TestCategory("CI.Core")] + public void ConvertUtils_CanParseBool_AsFalse() + { + Assert.IsFalse(ConvertUtils.ToBool(0).Value); + Assert.IsFalse(ConvertUtils.ToBool((object)0).Value); + + Assert.IsFalse(ConvertUtils.ToBool("0").Value); + Assert.IsFalse(ConvertUtils.ToBool((object)"0").Value); + + Assert.IsFalse(ConvertUtils.ToBool("false").Value); + Assert.IsFalse(ConvertUtils.ToBool("False").Value); + Assert.IsFalse(ConvertUtils.ToBool("FALSE").Value); + Assert.IsFalse(ConvertUtils.ToBool((object)"false").Value); + Assert.IsFalse(ConvertUtils.ToBool((object)"False").Value); + Assert.IsFalse(ConvertUtils.ToBool((object)"FALSE").Value); + + Assert.IsFalse(ConvertUtils.ToBool(false).Value); + Assert.IsFalse(ConvertUtils.ToBool((object)false).Value); + } + + [TestMethod] + [TestCategory("Regression.Utils.ConvertUtils")] + [TestCategory("CI.Core")] + public void ConvertUtils_CanParseBool_AsNull() + { + Assert.IsFalse(ConvertUtils.ToBool(2).HasValue); + Assert.IsFalse(ConvertUtils.ToBool((object)2).HasValue); + + Assert.IsFalse(ConvertUtils.ToBool("2").HasValue); + Assert.IsFalse(ConvertUtils.ToBool((object)"2").HasValue); + + Assert.IsFalse(ConvertUtils.ToBool(-1).HasValue); + Assert.IsFalse(ConvertUtils.ToBool((object)-1).HasValue); + + Assert.IsFalse(ConvertUtils.ToBool("-1").HasValue); + Assert.IsFalse(ConvertUtils.ToBool((object)"-1").HasValue); + + Assert.IsFalse(ConvertUtils.ToBool("truee").HasValue); + Assert.IsFalse(ConvertUtils.ToBool("Truee").HasValue); + Assert.IsFalse(ConvertUtils.ToBool("TRUEE").HasValue); + Assert.IsFalse(ConvertUtils.ToBool((object)"trueE").HasValue); + Assert.IsFalse(ConvertUtils.ToBool((object)"TrueE").HasValue); + Assert.IsFalse(ConvertUtils.ToBool((object)"TRUEE").HasValue); + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj b/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj index 4e6986115..f74fc8341 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj +++ b/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj @@ -238,6 +238,7 @@ + diff --git a/SPMeta2/SPMeta2.SSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs b/SPMeta2/SPMeta2.SSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs index 4d6de8d8c..6ddf5fc19 100644 --- a/SPMeta2/SPMeta2.SSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs +++ b/SPMeta2/SPMeta2.SSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs @@ -27,9 +27,9 @@ public override Type TargetType protected virtual void SetPropertySafe(Hashtable properties, string key, object value) { if (!properties.ContainsKey(key)) - properties.Add(key, value); + properties.Add(key, value.ToString()); else - properties[key] = value; + properties[key] = value.ToString(); } public override void DeployModel(object modelHost, DefinitionBase model) @@ -40,6 +40,8 @@ public override void DeployModel(object modelHost, DefinitionBase model) var site = siteModelHost.HostSite; var rootWeb = site.RootWeb; + var properties = rootWeb.AllProperties; + InvokeOnModelEvent(this, new ModelEventArgs { CurrentModelNode = null, @@ -55,7 +57,7 @@ public override void DeployModel(object modelHost, DefinitionBase model) if (definition.EnableCustomizingMasterPagesAndPageLayouts.HasValue) { - SetPropertySafe(rootWeb.AllProperties, + SetPropertySafe(properties, BuiltInWebPropertyId.AllowMasterpageEditing, definition.EnableCustomizingMasterPagesAndPageLayouts.Value == true ? 1 : 0); @@ -64,7 +66,7 @@ public override void DeployModel(object modelHost, DefinitionBase model) if (definition.EnableDetachingPages.HasValue) { - SetPropertySafe(rootWeb.AllProperties, + SetPropertySafe(properties, BuiltInWebPropertyId.AllowRevertFromTemplate, definition.EnableDetachingPages.Value == true ? 1 : 0); @@ -73,7 +75,7 @@ public override void DeployModel(object modelHost, DefinitionBase model) if (definition.EnableManagingWebSiteUrlStructure.HasValue) { - SetPropertySafe(rootWeb.AllProperties, + SetPropertySafe(properties, BuiltInWebPropertyId.ShowUrlStructure, definition.EnableManagingWebSiteUrlStructure.Value == true ? 1 : 0); @@ -82,7 +84,7 @@ public override void DeployModel(object modelHost, DefinitionBase model) if (definition.EnableSharePointDesigner.HasValue) { - SetPropertySafe(rootWeb.AllProperties, + SetPropertySafe(properties, BuiltInWebPropertyId.AllowDesigner, definition.EnableSharePointDesigner.Value == true ? 1 : 0); @@ -102,6 +104,7 @@ public override void DeployModel(object modelHost, DefinitionBase model) if (shouldUpdate) { + siteModelHost.ShouldUpdateHost = false; rootWeb.Update(); } } diff --git a/SPMeta2/SPMeta2/Definitions/SharePointDesignerSettingsDefinition.cs b/SPMeta2/SPMeta2/Definitions/SharePointDesignerSettingsDefinition.cs index 72ee4b0ee..5b91f2d2f 100644 --- a/SPMeta2/SPMeta2/Definitions/SharePointDesignerSettingsDefinition.cs +++ b/SPMeta2/SPMeta2/Definitions/SharePointDesignerSettingsDefinition.cs @@ -29,7 +29,7 @@ namespace SPMeta2.Definitions //[ExpectArrayExtensionMethod] [SingletonIdentity] - [ExpectManyInstances] + //[ExpectManyInstances] [ParentHostCapability(typeof(WebDefinition))] public class SharePointDesignerSettingsDefinition : DefinitionBase @@ -45,21 +45,33 @@ public SharePointDesignerSettingsDefinition() #region properties + /// + /// Maps out AllowDesigner property bag value at the root web. + /// [DataMember] [ExpectValidation] [ExpectUpdate] public bool? EnableSharePointDesigner { get; set; } + /// + /// Maps out AllowRevertFromTemplate property bag value at the root web. + /// [DataMember] [ExpectValidation] [ExpectUpdate] public bool? EnableDetachingPages { get; set; } + /// + /// Maps out AllowMasterpageEditing property bag value at the root web. + /// [DataMember] [ExpectValidation] [ExpectUpdate] public bool? EnableCustomizingMasterPagesAndPageLayouts { get; set; } + /// + /// Maps out ShowUrlStructure property bag value at the root web. + /// [DataMember] [ExpectValidation] [ExpectUpdate] diff --git a/SPMeta2/SPMeta2/Utils/ConvertUtils.cs b/SPMeta2/SPMeta2/Utils/ConvertUtils.cs index 6d3b9acb9..45a24b5a4 100644 --- a/SPMeta2/SPMeta2/Utils/ConvertUtils.cs +++ b/SPMeta2/SPMeta2/Utils/ConvertUtils.cs @@ -1,101 +1,109 @@ -using System; - -namespace SPMeta2.Utils -{ - public static class ConvertUtils - { - #region nullable extensions - - public static bool HasGuidValue(this Guid? value) - { - return value.HasValue && (value.Value != default(Guid)); - } - - #endregion - - #region methods - - public static int? ToInt(object value) - { - if (value == null) return null; - if (value is int) return (int)value; - - int tmpInt; - - if (int.TryParse(value.ToString(), out tmpInt)) - return tmpInt; - - return null; - } - - public static string ToString(object value) - { - if (value == null) return string.Empty; - - return value.ToString(); - } - - public static string ToStringAndTrim(object value) - { - if (value == null) return string.Empty; - - return value.ToString().Trim(); - } - - public static TEnumType ToEnum(object value) - { - if (value == null) return default(TEnumType); - - if (value is TEnumType) - return (TEnumType)value; - - var stringValue = value.ToString(); - - if (!string.IsNullOrEmpty(stringValue)) - return (TEnumType)Enum.Parse(typeof(TEnumType), stringValue, true); - - return default(TEnumType); - } - - public static Guid? ToGuid(object value) - { - if (value == null) return null; - if (value is Guid) return (Guid)value; - - try - { - var result = new Guid(value.ToString()); - return result; - } - catch (Exception) - { - return null; - } - } - - public static bool? ToBool(object value) - { - if (value == null) return null; - if (value is bool) return (bool)value; - - bool tmpBool; - - if (bool.TryParse(value.ToString(), out tmpBool)) - return tmpBool; - - return null; - } - - public static bool ToBoolWithDefault(object value, bool defaultValue) - { - var boolResult = ToBool(value); - - if (boolResult.HasValue) - return boolResult.Value; - - return defaultValue; - } - - #endregion - } -} +using System; + +namespace SPMeta2.Utils +{ + public static class ConvertUtils + { + #region nullable extensions + + public static bool HasGuidValue(this Guid? value) + { + return value.HasValue && (value.Value != default(Guid)); + } + + #endregion + + #region methods + + public static int? ToInt(object value) + { + if (value == null) return null; + if (value is int) return (int)value; + + int tmpInt; + + if (int.TryParse(value.ToString(), out tmpInt)) + return tmpInt; + + return null; + } + + public static string ToString(object value) + { + if (value == null) return string.Empty; + + return value.ToString(); + } + + public static string ToStringAndTrim(object value) + { + if (value == null) return string.Empty; + + return value.ToString().Trim(); + } + + public static TEnumType ToEnum(object value) + { + if (value == null) return default(TEnumType); + + if (value is TEnumType) + return (TEnumType)value; + + var stringValue = value.ToString(); + + if (!string.IsNullOrEmpty(stringValue)) + return (TEnumType)Enum.Parse(typeof(TEnumType), stringValue, true); + + return default(TEnumType); + } + + public static Guid? ToGuid(object value) + { + if (value == null) return null; + if (value is Guid) return (Guid)value; + + try + { + var result = new Guid(value.ToString()); + return result; + } + catch (Exception) + { + return null; + } + } + + public static bool? ToBool(object value) + { + if (value == null) return null; + if (value is bool) return (bool)value; + + var stringValue = value.ToString(); + + if (stringValue == "1") + return true; + + if (stringValue == "0") + return false; + + bool tmpBool; + + if (bool.TryParse(value.ToString(), out tmpBool)) + return tmpBool; + + return null; + } + + public static bool ToBoolWithDefault(object value, bool defaultValue) + { + var boolResult = ToBool(value); + + if (boolResult.HasValue) + return boolResult.Value; + + return defaultValue; + } + + #endregion + } +} From ef7efea80fd09b4e4ed64ce053d2263a84cb8137 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 10 Oct 2016 17:49:53 -0700 Subject: [PATCH 07/27] + Add "SharePointDesignerSettingsDefinition" - support sharepoint designer settings provision #419 + Passed CanDeployRandom_SharePointDesignerSettingsDefinition tests for CSOM --- .../SharePointDesignerSettingsModelHandler.cs | 31 ++++- ...ientSharePointDesignerSettingsValidator.cs | 128 ++++++++++++++---- 2 files changed, 130 insertions(+), 29 deletions(-) diff --git a/SPMeta2/SPMeta2.CSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs b/SPMeta2/SPMeta2.CSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs index b274d9d7b..1886ae71f 100644 --- a/SPMeta2/SPMeta2.CSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs +++ b/SPMeta2/SPMeta2.CSOM/ModelHandlers/SharePointDesignerSettingsModelHandler.cs @@ -5,6 +5,7 @@ using SPMeta2.CSOM.ModelHosts; using SPMeta2.Definitions; using SPMeta2.Utils; +using SPMeta2.Enumerations; namespace SPMeta2.CSOM.ModelHandlers { @@ -17,6 +18,11 @@ public override Type TargetType get { return typeof(SharePointDesignerSettingsDefinition); } } + protected virtual void SetPropertySafe(PropertyValues properties, string key, object value) + { + properties[key] = value.ToString(); + } + public override void DeployModel(object modelHost, DefinitionBase model) { var siteModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); @@ -27,6 +33,9 @@ public override void DeployModel(object modelHost, DefinitionBase model) var context = site.Context; + context.Load(rootWeb, w => w.AllProperties); + context.ExecuteQueryWithTrace(); + InvokeOnModelEvent(this, new ModelEventArgs { CurrentModelNode = null, @@ -39,35 +48,45 @@ public override void DeployModel(object modelHost, DefinitionBase model) }); var shouldUpdate = false; + var properties = rootWeb.AllProperties; if (definition.EnableCustomizingMasterPagesAndPageLayouts.HasValue) { - // TODO + SetPropertySafe(properties, + BuiltInWebPropertyId.AllowMasterpageEditing, + definition.EnableCustomizingMasterPagesAndPageLayouts.Value == true ? 1 : 0); shouldUpdate = true; } if (definition.EnableDetachingPages.HasValue) { - // TODO + SetPropertySafe(properties, + BuiltInWebPropertyId.AllowRevertFromTemplate, + definition.EnableDetachingPages.Value == true ? 1 : 0); shouldUpdate = true; } if (definition.EnableManagingWebSiteUrlStructure.HasValue) { - // TODO + SetPropertySafe(properties, + BuiltInWebPropertyId.ShowUrlStructure, + definition.EnableManagingWebSiteUrlStructure.Value == true ? 1 : 0); shouldUpdate = true; } if (definition.EnableSharePointDesigner.HasValue) { - // TODO + SetPropertySafe(properties, + BuiltInWebPropertyId.AllowDesigner, + definition.EnableSharePointDesigner.Value == true ? 1 : 0); shouldUpdate = true; } + InvokeOnModelEvent(this, new ModelEventArgs { CurrentModelNode = null, @@ -81,7 +100,9 @@ public override void DeployModel(object modelHost, DefinitionBase model) if (shouldUpdate) { - // TODO + siteModelHost.ShouldUpdateHost = false; + + rootWeb.Update(); context.ExecuteQueryWithTrace(); } } diff --git a/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientSharePointDesignerSettingsValidator.cs b/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientSharePointDesignerSettingsValidator.cs index 6e8c25750..668ea6218 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientSharePointDesignerSettingsValidator.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM/Validation/ClientSharePointDesignerSettingsValidator.cs @@ -5,6 +5,7 @@ using SPMeta2.CSOM.ModelHosts; using SPMeta2.Definitions; using SPMeta2.Utils; +using SPMeta2.Enumerations; namespace SPMeta2.Regression.CSOM.Validation { @@ -25,30 +26,109 @@ public override void DeployModel(object modelHost, DefinitionBase model) .NewAssert(definition, spObject) .ShouldNotBeNull(spObject); - // TODO - - //if (definition.DeleteAll) - //{ - // assert.ShouldBeEqual((p, s, d) => - // { - // var srcProp = s.GetExpressionValue(def => def.DeleteAll); - // var isValid = true; - - // isValid = spObject.RecycleBin.Count == 0; - - // return new PropertyValidationResult - // { - // Tag = p.Tag, - // Src = srcProp, - // Dst = null, - // IsValid = isValid - // }; - // }); - //} - //else - //{ - // assert.SkipProperty(o => o.DeleteAll, "DeleteAll is false"); - //} + if (definition.EnableCustomizingMasterPagesAndPageLayouts.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.EnableCustomizingMasterPagesAndPageLayouts); + var isValid = true; + + var dstValue = ConvertUtils.ToBool(spObject.AllProperties[BuiltInWebPropertyId.AllowMasterpageEditing]); + + isValid = s.EnableCustomizingMasterPagesAndPageLayouts.Value == dstValue; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid, + Message = string.Format("{0} - {1}", BuiltInWebPropertyId.AllowMasterpageEditing, dstValue) + }; + }); + } + else + { + assert.SkipProperty(o => o.EnableCustomizingMasterPagesAndPageLayouts, "EnableCustomizingMasterPagesAndPageLayouts is NULL. Skipping"); + } + + if (definition.EnableDetachingPages.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.EnableDetachingPages); + var isValid = true; + + var dstValue = ConvertUtils.ToBool(spObject.AllProperties[BuiltInWebPropertyId.AllowRevertFromTemplate]); + + isValid = s.EnableDetachingPages.Value == dstValue; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid, + Message = string.Format("{0} - {1}", BuiltInWebPropertyId.AllowMasterpageEditing, dstValue) + }; + }); + } + else + { + assert.SkipProperty(o => o.EnableDetachingPages, "EnableDetachingPages is NULL. Skipping"); + } + + if (definition.EnableManagingWebSiteUrlStructure.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.EnableManagingWebSiteUrlStructure); + var isValid = true; + + var dstValue = ConvertUtils.ToBool(spObject.AllProperties[BuiltInWebPropertyId.ShowUrlStructure]); + + isValid = s.EnableManagingWebSiteUrlStructure.Value == dstValue; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid, + Message = string.Format("{0} - {1}", BuiltInWebPropertyId.AllowMasterpageEditing, dstValue) + }; + }); + } + else + { + assert.SkipProperty(o => o.EnableManagingWebSiteUrlStructure, "EnableManagingWebSiteUrlStructure is NULL. Skipping"); + } + + if (definition.EnableSharePointDesigner.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.EnableSharePointDesigner); + var isValid = true; + + var dstValue = ConvertUtils.ToBool(spObject.AllProperties[BuiltInWebPropertyId.AllowDesigner]); + + isValid = s.EnableSharePointDesigner.Value == dstValue; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid, + Message = string.Format("{0} - {1}", BuiltInWebPropertyId.AllowMasterpageEditing, dstValue) + }; + }); + } + else + { + assert.SkipProperty(o => o.EnableSharePointDesigner, "EnableSharePointDesigner is NULL. Skipping"); + } } } From 76ab6ab60c2b6251032520c0cfa944ed9a19cd40 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 10 Oct 2016 17:50:49 -0700 Subject: [PATCH 08/27] + Add "SharePointDesignerSettingsDefinition" - support sharepoint designer settings provision #419 + added site level syntax test --- .../SPMeta2.Regression.Tests/Impl/Syntax/TypedSyntaxTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Syntax/TypedSyntaxTests.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Syntax/TypedSyntaxTests.cs index 6443af3a0..a20588efd 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Impl/Syntax/TypedSyntaxTests.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Syntax/TypedSyntaxTests.cs @@ -77,6 +77,8 @@ public void CanPassTypedSyntax_SiteLevel() { var model = SPMeta2Model.NewSiteModel(site => { + site.AddSharePointDesignerSettings(new SharePointDesignerSettingsDefinition()); + site.AddCoreProperty(new CorePropertyDefinition()) .AddCoreProperty(new CorePropertyDefinition(), property => { From 00e23756b8023203c7dd9d36835e1d933b1f5293 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 10 Oct 2016 18:01:25 -0700 Subject: [PATCH 09/27] + Enhance WebPartDefinition - add .AuthorizationFilter property for audience targeting #517 + SSOM impl + Passed CanDeploy_Webpart_With_AuthorizationFilter tests for SSOM --- .../SecurityGroupDefinitionValidator.cs | 85 +- .../Validation/WebPartDefinitionValidator.cs | 804 +++++++++--------- .../ModelHandlers/WebPartModelHandler.cs | 551 ++++++------ 3 files changed, 730 insertions(+), 710 deletions(-) diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Validation/SecurityGroupDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM/Validation/SecurityGroupDefinitionValidator.cs index 78a3cd7d9..53abbd9e1 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/Validation/SecurityGroupDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM/Validation/SecurityGroupDefinitionValidator.cs @@ -54,53 +54,66 @@ public override void DeployModel(object modelHost, DefinitionBase model) else assert.SkipProperty(m => m.AutoAcceptRequestToJoinLeave, "AutoAcceptRequestToJoinLeave is NULL. Skipping."); - - assert.ShouldBeEqual((p, s, d) => + if (!string.IsNullOrEmpty(definition.DefaultUser)) { - var srcProp = s.GetExpressionValue(def => def.Owner); - var dstProp = d.GetExpressionValue(ct => ct.GetOwnerLogin()); + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.Owner); + var dstProp = d.GetExpressionValue(ct => ct.GetOwnerLogin()); - var isValid = srcProp.Value.ToString().ToUpper().Replace("\\", "/") == - dstProp.Value.ToString().ToUpper().Replace("\\", "/"); + var isValid = srcProp.Value.ToString().ToUpper().Replace("\\", "/") == + dstProp.Value.ToString().ToUpper().Replace("\\", "/"); - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = dstProp, - IsValid = isValid - }; - }); - - assert.ShouldBeEqual((p, s, d) => + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = dstProp, + IsValid = isValid + }; + }); + } + else { - var srcProp = s.GetExpressionValue(def => def.DefaultUser); + assert.SkipProperty(m => m.Owner, ""); + } - // should be in the group - var userNames = d.Users.OfType() - .Select(u => u.LoginName); + if (!string.IsNullOrEmpty(definition.DefaultUser)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.DefaultUser); - var isValid = false; + // should be in the group + var userNames = d.Users.OfType() + .Select(u => u.LoginName); - foreach (var userName in userNames) - { - if (srcProp.Value.ToString().ToUpper().Replace("\\", "/") == - userName.ToString().ToUpper().Replace("\\", "/")) + var isValid = false; + + foreach (var userName in userNames) { - isValid = true; - break; + if (srcProp.Value.ToString().ToUpper().Replace("\\", "/") == + userName.ToString().ToUpper().Replace("\\", "/")) + { + isValid = true; + break; + } } - } - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = null, - IsValid = isValid - }; - }); + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid + }; + }); + } + else + { + assert.SkipProperty(m => m.DefaultUser, ""); + } } else if (modelHost is SecurityGroupModelHost) { diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Validation/WebPartDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM/Validation/WebPartDefinitionValidator.cs index 49247c140..6902cbf2d 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/Validation/WebPartDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM/Validation/WebPartDefinitionValidator.cs @@ -1,400 +1,404 @@ -using System.Web.UI.WebControls; -using SPMeta2.Containers.Assertion; -using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; -using SPMeta2.SSOM.ModelHandlers; -using SPMeta2.SSOM.ModelHosts; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - - -using SPMeta2.Utils; -using SPMeta2.SSOM.Extensions; -using System.Web.UI.WebControls.WebParts; -using SPMeta2.Exceptions; - -using Microsoft.SharePoint; -using System.IO; -using System.Reflection; -using System.Xml; -using SPMeta2.Attributes.Regression; - -namespace SPMeta2.Regression.SSOM.Validation -{ - public class WebPartDefinitionValidator : WebPartModelHandler - { - public override void DeployModel(object modelHost, DefinitionBase model) - { - var host = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); - - var file = host.HostFile; - var web = host.HostFile.Web; - - WebPartExtensions.WithExistingWebPart(file, definition, (spWebPartManager, spObject) => - { - //[FALSE] - [Title] - // [FALSE] - [Id] - // [FALSE] - [ZoneId] - // [FALSE] - [ZoneIndex] - // [FALSE] - [WebpartFileName] - // [FALSE] - [WebpartType] - // [FALSE] - [WebpartXmlTemplate] - - var assert = ServiceFactory.AssertService - .NewAssert(definition, spObject) - .ShouldNotBeNull(spObject); - - var currentType = spObject.GetType().AssemblyQualifiedName; - var currentClassName = currentType.Split(',').First().Trim(); - - var expectedTypeAttr = (definition.GetType().GetCustomAttributes(typeof(ExpectWebpartType)) - .FirstOrDefault() as ExpectWebpartType); - - // NULL for the generic web part - // should not be tested here - if (expectedTypeAttr != null) - { - var expectedType = expectedTypeAttr.WebPartType; - - var expectedClassName = expectedType.Split(',').First().Trim(); - - assert.ShouldBeEqual((p, s, d) => - { - var isValid = true; - - isValid = currentClassName.ToUpper() == expectedClassName.ToUpper(); - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = null, - Dst = null, - IsValid = isValid - }; - }); - } - // props - - if (definition.Properties.Count > 0) - { - assert.ShouldBeEqual((p, s, d) => - { - var isValid = true; - - foreach (var prop in definition.Properties) - { - // returns correct one depending on the V2/V3 - var value = ReflectionUtils.GetPropertyValue(d, prop.Name); - - // that True / true issue give a pain - // toLower for the time being - isValid = value.ToString().ToLower() == prop.Value.ToLower(); - - if (!isValid) - break; - } - - var srcProp = s.GetExpressionValue(m => m.Properties); - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = null, - IsValid = isValid - }; - }); - } - else - assert.SkipProperty(m => m.Properties, "Properties are empty. Skipping."); - - if (!string.IsNullOrEmpty(definition.ChromeState)) - { - assert.ShouldBeEqual((p, s, d) => - { - var srcProp = s.GetExpressionValue(m => m.ChromeState); - var srcValue = (PartChromeState)Enum.Parse(typeof(PartChromeState), s.ChromeState); - var isValid = srcValue == d.ChromeState; - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = null, - IsValid = isValid - }; - }); - } - else - assert.SkipProperty(m => m.ChromeState, "ChromeType is null or empty. Skipping."); - - if (!string.IsNullOrEmpty(definition.ChromeType)) - { - assert.ShouldBeEqual((p, s, d) => - { - var srcProp = s.GetExpressionValue(m => m.ChromeType); - var chromeType = WebPartChromeTypesConvertService.NormilizeValueToPartChromeTypes(s.ChromeType); - - var srcValue = (PartChromeType)Enum.Parse(typeof(PartChromeType), chromeType); - var isValid = srcValue == d.ChromeType; - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = null, - IsValid = isValid - }; - }); - } - else - assert.SkipProperty(m => m.ChromeType, "ChromeType is null or empty. Skipping."); - - if (!string.IsNullOrEmpty(definition.Description)) - assert.ShouldBeEqual(m => m.Description, o => o.Description); - else - assert.SkipProperty(m => m.Description, "Description is null or empty. Skipping."); - - if (definition.Height.HasValue) - { - assert.ShouldBeEqual((p, s, d) => - { - var srcProp = s.GetExpressionValue(m => m.Height); - var isValid = d.Height == new Unit(s.Height.Value); - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = null, - IsValid = isValid - }; - }); - } - else - assert.SkipProperty(m => m.Height, "Height is null or empty. Skipping."); - - if (definition.Width.HasValue) - { - assert.ShouldBeEqual((p, s, d) => - { - var srcProp = s.GetExpressionValue(m => m.Width); - var isValid = d.Width == new Unit(s.Width.Value); - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = null, - IsValid = isValid - }; - }); - } - else - assert.SkipProperty(m => m.Width, "Width is null or empty. Skipping."); - - if (!string.IsNullOrEmpty(definition.ImportErrorMessage)) - assert.ShouldBeEqual(m => m.ImportErrorMessage, o => o.ImportErrorMessage); - else - assert.SkipProperty(m => m.ImportErrorMessage, "ImportErrorMessage is null or empty. Skipping."); - - if (!DisableTitleUrlValidation) - { - if (!string.IsNullOrEmpty(definition.TitleUrl)) - { - assert.ShouldBeEqual((p, s, d) => - { - var srcProp = s.GetExpressionValue(m => m.TitleUrl); - var dstProp = d.GetExpressionValue(o => o.TitleUrl); - - var srcUrl = srcProp.Value as string; - var dstUrl = dstProp.Value as string; - - var isValid = false; - - if (definition.TitleUrl.Contains("~sitecollection")) - { - var siteCollectionUrl = web.Site.ServerRelativeUrl == "/" ? string.Empty : web.Site.ServerRelativeUrl; - - isValid = srcUrl.Replace("~sitecollection", siteCollectionUrl) == dstUrl; - } - else if (definition.TitleUrl.Contains("~site")) - { - var siteCollectionUrl = web.ServerRelativeUrl == "/" ? string.Empty : web.ServerRelativeUrl; - - isValid = srcUrl.Replace("~site", siteCollectionUrl) == dstUrl; - } - else - { - isValid = srcUrl == dstUrl; - } - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = dstProp, - IsValid = isValid - }; - }); - } - else - assert.SkipProperty(m => m.TitleUrl, "TitleUrl is null or empty. Skipping."); - } - - if (!string.IsNullOrEmpty(definition.TitleIconImageUrl)) - { - assert.ShouldBeEndOf(m => m.TitleIconImageUrl, o => o.TitleIconImageUrl); - } - else - assert.SkipProperty(m => m.TitleIconImageUrl, "TitleIconImageUrl is null or empty. Skipping."); - - if (!string.IsNullOrEmpty(definition.ExportMode)) - { - assert.ShouldBeEqual(m => m.ExportMode, o => o.GetExportMode()); - } - else - assert.SkipProperty(m => m.ExportMode, "ExportMode is null or empty. Skipping."); - - - if (!string.IsNullOrEmpty(definition.Id)) - assert.ShouldBeEqual(m => m.Id, o => o.ID); - else - assert.SkipProperty(m => m.Id, "Id is null or empty. Skipping."); - - if (!string.IsNullOrEmpty(definition.Title)) - assert.ShouldBeEqual(m => m.Title, o => o.Title); - else - assert.SkipProperty(m => m.Title, "Title is null or empty. Skipping."); - - if (!string.IsNullOrEmpty(definition.ZoneId)) - { - assert.ShouldBeEqual((p, s, d) => - { - var srcProp = s.GetExpressionValue(m => m.ZoneId); - //var dstProp = d.GetExpressionValue(ct => ct.GetId()); - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = null, - IsValid = object.Equals(s.ZoneId, spWebPartManager.GetZoneID(d)) - }; - }); - } - - else - assert.SkipProperty(m => m.ZoneId, "ZoneId is null or empty. Skipping."); - - //if (definition.ZoneIndex > 0) - // assert.ShouldBeEqual(m => m.ZoneIndex, o => o.ZoneIndex); - //else - // assert.SkipProperty(m => m.ZoneIndex, "ZoneIndex == 0. Skipping."); - - assert.SkipProperty(m => m.ZoneIndex, "Skipping."); - - if (!string.IsNullOrEmpty(definition.WebpartFileName)) - { - var site = host.HostFile.Web.Site; - - var webPartManager = host.SPLimitedWebPartManager; - - var webpartFileName = definition.WebpartFileName; - var rootWeb = site.RootWeb; - - // load definition from WP catalog - var webpartCatalog = rootWeb.GetCatalog(SPListTemplateType.WebPartCatalog); - var webpartItem = webpartCatalog.Items.OfType().FirstOrDefault( - i => string.Compare(i.Name, webpartFileName, true) == 0); - - if (webpartItem == null) - throw new ArgumentException(string.Format("webpartItem. Can't find web part file with name: {0}", webpartFileName)); - - using (var streamReader = new MemoryStream(webpartItem.File.OpenBinary())) - { - using (var xmlReader = XmlReader.Create(streamReader)) - { - var errMessage = string.Empty; - var webpartInstance = webPartManager.ImportWebPart(xmlReader, out errMessage); - var webPartInstanceType = webpartInstance.GetType(); - - assert.ShouldBeEqual((p, s, d) => - { - var srcProp = s.GetExpressionValue(m => m.WebpartFileName); - //var dstProp = d.GetExpressionValue(ct => ct.GetId()); - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = null, - IsValid = webPartInstanceType == d.GetType() - }; - }); - } - } - } - else - assert.SkipProperty(m => m.WebpartFileName, "ZoneIndex == 0. Skipping."); - - if (!string.IsNullOrEmpty(definition.WebpartType)) - { - var webPartInstance = WebPartExtensions.ResolveWebPartInstance(host.HostFile.Web.Site, host.SPLimitedWebPartManager, definition); - var webPartInstanceType = webPartInstance.GetType(); - - assert.ShouldBeEqual((p, s, d) => - { - var srcProp = s.GetExpressionValue(m => m.WebpartType); - //var dstProp = d.GetExpressionValue(ct => ct.GetId()); - - return new PropertyValidationResult - { - Tag = p.Tag, - Src = srcProp, - Dst = null, - IsValid = webPartInstanceType == d.GetType() - }; - }); - } - else - assert.SkipProperty(m => m.WebpartType, "WebpartType is empty. Skipping."); - - if (!string.IsNullOrEmpty(definition.WebpartXmlTemplate)) - { - assert.SkipProperty(m => m.WebpartXmlTemplate, "WebpartXmlTemplate is not empty, but no validation is required with SSOM. Skipping."); - } - else - assert.SkipProperty(m => m.WebpartXmlTemplate, "WebpartXmlTemplate is empty. Skipping."); - - if (definition.ParameterBindings.Count == 0) - { - assert.SkipProperty(m => m.ParameterBindings, "ParameterBindings is null or empty. Skipping."); - } - else - { - // TODO - } - - }); - } - - protected bool DisableTitleUrlValidation { get; set; } - } - - internal static class WebpartEx - { - public static string GetZoneId(this WebPart webpart) - { - return webpart.Zone != null ? webpart.Zone.ID : string.Empty; - } - - public static string GetExportMode(this WebPart webpart) - { - return webpart.ExportMode.ToString(); - } - } -} +using System.Web.UI.WebControls; +using SPMeta2.Containers.Assertion; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.SSOM.ModelHandlers; +using SPMeta2.SSOM.ModelHosts; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + + +using SPMeta2.Utils; +using SPMeta2.SSOM.Extensions; +using System.Web.UI.WebControls.WebParts; +using SPMeta2.Exceptions; + +using Microsoft.SharePoint; +using System.IO; +using System.Reflection; +using System.Xml; +using SPMeta2.Attributes.Regression; + +namespace SPMeta2.Regression.SSOM.Validation +{ + public class WebPartDefinitionValidator : WebPartModelHandler + { + public override void DeployModel(object modelHost, DefinitionBase model) + { + var host = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + var file = host.HostFile; + var web = host.HostFile.Web; + + WebPartExtensions.WithExistingWebPart(file, definition, (spWebPartManager, spObject) => + { + //[FALSE] - [Title] + // [FALSE] - [Id] + // [FALSE] - [ZoneId] + // [FALSE] - [ZoneIndex] + // [FALSE] - [WebpartFileName] + // [FALSE] - [WebpartType] + // [FALSE] - [WebpartXmlTemplate] + + var assert = ServiceFactory.AssertService + .NewAssert(definition, spObject) + .ShouldNotBeNull(spObject); + + var currentType = spObject.GetType().AssemblyQualifiedName; + var currentClassName = currentType.Split(',').First().Trim(); + + var expectedTypeAttr = (definition.GetType().GetCustomAttributes(typeof(ExpectWebpartType)) + .FirstOrDefault() as ExpectWebpartType); + + // NULL for the generic web part + // should not be tested here + if (expectedTypeAttr != null) + { + var expectedType = expectedTypeAttr.WebPartType; + + var expectedClassName = expectedType.Split(',').First().Trim(); + + assert.ShouldBeEqual((p, s, d) => + { + var isValid = true; + + isValid = currentClassName.ToUpper() == expectedClassName.ToUpper(); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = null, + Dst = null, + IsValid = isValid + }; + }); + } + // props + + if (definition.Properties.Count > 0) + { + assert.ShouldBeEqual((p, s, d) => + { + var isValid = true; + + foreach (var prop in definition.Properties) + { + // returns correct one depending on the V2/V3 + var value = ReflectionUtils.GetPropertyValue(d, prop.Name); + + // that True / true issue give a pain + // toLower for the time being + isValid = value.ToString().ToLower() == prop.Value.ToLower(); + + if (!isValid) + break; + } + + var srcProp = s.GetExpressionValue(m => m.Properties); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid + }; + }); + } + else + assert.SkipProperty(m => m.Properties, "Properties are empty. Skipping."); + + if (!string.IsNullOrEmpty(definition.ChromeState)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.ChromeState); + var srcValue = (PartChromeState)Enum.Parse(typeof(PartChromeState), s.ChromeState); + var isValid = srcValue == d.ChromeState; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid + }; + }); + } + else + assert.SkipProperty(m => m.ChromeState, "ChromeType is null or empty. Skipping."); + + if (!string.IsNullOrEmpty(definition.ChromeType)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.ChromeType); + var chromeType = WebPartChromeTypesConvertService.NormilizeValueToPartChromeTypes(s.ChromeType); + + var srcValue = (PartChromeType)Enum.Parse(typeof(PartChromeType), chromeType); + var isValid = srcValue == d.ChromeType; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid + }; + }); + } + else + assert.SkipProperty(m => m.ChromeType, "ChromeType is null or empty. Skipping."); + + if (!string.IsNullOrEmpty(definition.Description)) + assert.ShouldBeEqual(m => m.Description, o => o.Description); + else + assert.SkipProperty(m => m.Description, "Description is null or empty. Skipping."); + + if (definition.Height.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.Height); + var isValid = d.Height == new Unit(s.Height.Value); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid + }; + }); + } + else + assert.SkipProperty(m => m.Height, "Height is null or empty. Skipping."); + + if (definition.Width.HasValue) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.Width); + var isValid = d.Width == new Unit(s.Width.Value); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid + }; + }); + } + else + assert.SkipProperty(m => m.Width, "Width is null or empty. Skipping."); + + if (!string.IsNullOrEmpty(definition.ImportErrorMessage)) + assert.ShouldBeEqual(m => m.ImportErrorMessage, o => o.ImportErrorMessage); + else + assert.SkipProperty(m => m.ImportErrorMessage, "ImportErrorMessage is null or empty. Skipping."); + + if (!DisableTitleUrlValidation) + { + if (!string.IsNullOrEmpty(definition.TitleUrl)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.TitleUrl); + var dstProp = d.GetExpressionValue(o => o.TitleUrl); + + var srcUrl = srcProp.Value as string; + var dstUrl = dstProp.Value as string; + + var isValid = false; + + if (definition.TitleUrl.Contains("~sitecollection")) + { + var siteCollectionUrl = web.Site.ServerRelativeUrl == "/" ? string.Empty : web.Site.ServerRelativeUrl; + + isValid = srcUrl.Replace("~sitecollection", siteCollectionUrl) == dstUrl; + } + else if (definition.TitleUrl.Contains("~site")) + { + var siteCollectionUrl = web.ServerRelativeUrl == "/" ? string.Empty : web.ServerRelativeUrl; + + isValid = srcUrl.Replace("~site", siteCollectionUrl) == dstUrl; + } + else + { + isValid = srcUrl == dstUrl; + } + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = dstProp, + IsValid = isValid + }; + }); + } + else + assert.SkipProperty(m => m.TitleUrl, "TitleUrl is null or empty. Skipping."); + } + + if (!string.IsNullOrEmpty(definition.TitleIconImageUrl)) + { + assert.ShouldBeEndOf(m => m.TitleIconImageUrl, o => o.TitleIconImageUrl); + } + else + assert.SkipProperty(m => m.TitleIconImageUrl, "TitleIconImageUrl is null or empty. Skipping."); + + if (!string.IsNullOrEmpty(definition.ExportMode)) + { + assert.ShouldBeEqual(m => m.ExportMode, o => o.GetExportMode()); + } + else + assert.SkipProperty(m => m.ExportMode, "ExportMode is null or empty. Skipping."); + + + if (!string.IsNullOrEmpty(definition.Id)) + assert.ShouldBeEqual(m => m.Id, o => o.ID); + else + assert.SkipProperty(m => m.Id, "Id is null or empty. Skipping."); + + if (!string.IsNullOrEmpty(definition.Title)) + assert.ShouldBeEqual(m => m.Title, o => o.Title); + else + assert.SkipProperty(m => m.Title, "Title is null or empty. Skipping."); + + if (!string.IsNullOrEmpty(definition.ZoneId)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.ZoneId); + //var dstProp = d.GetExpressionValue(ct => ct.GetId()); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = object.Equals(s.ZoneId, spWebPartManager.GetZoneID(d)) + }; + }); + } + + else + assert.SkipProperty(m => m.ZoneId, "ZoneId is null or empty. Skipping."); + + //if (definition.ZoneIndex > 0) + // assert.ShouldBeEqual(m => m.ZoneIndex, o => o.ZoneIndex); + //else + // assert.SkipProperty(m => m.ZoneIndex, "ZoneIndex == 0. Skipping."); + + assert.SkipProperty(m => m.ZoneIndex, "Skipping."); + + if (!string.IsNullOrEmpty(definition.WebpartFileName)) + { + var site = host.HostFile.Web.Site; + + var webPartManager = host.SPLimitedWebPartManager; + + var webpartFileName = definition.WebpartFileName; + var rootWeb = site.RootWeb; + + // load definition from WP catalog + var webpartCatalog = rootWeb.GetCatalog(SPListTemplateType.WebPartCatalog); + var webpartItem = webpartCatalog.Items.OfType().FirstOrDefault( + i => string.Compare(i.Name, webpartFileName, true) == 0); + + if (webpartItem == null) + throw new ArgumentException(string.Format("webpartItem. Can't find web part file with name: {0}", webpartFileName)); + + using (var streamReader = new MemoryStream(webpartItem.File.OpenBinary())) + { + using (var xmlReader = XmlReader.Create(streamReader)) + { + var errMessage = string.Empty; + var webpartInstance = webPartManager.ImportWebPart(xmlReader, out errMessage); + var webPartInstanceType = webpartInstance.GetType(); + + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.WebpartFileName); + //var dstProp = d.GetExpressionValue(ct => ct.GetId()); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = webPartInstanceType == d.GetType() + }; + }); + } + } + } + else + assert.SkipProperty(m => m.WebpartFileName, "ZoneIndex == 0. Skipping."); + + if (!string.IsNullOrEmpty(definition.WebpartType)) + { + var webPartInstance = WebPartExtensions.ResolveWebPartInstance(host.HostFile.Web.Site, host.SPLimitedWebPartManager, definition); + var webPartInstanceType = webPartInstance.GetType(); + + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.WebpartType); + //var dstProp = d.GetExpressionValue(ct => ct.GetId()); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = webPartInstanceType == d.GetType() + }; + }); + } + else + assert.SkipProperty(m => m.WebpartType, "WebpartType is empty. Skipping."); + + if (!string.IsNullOrEmpty(definition.WebpartXmlTemplate)) + { + assert.SkipProperty(m => m.WebpartXmlTemplate, "WebpartXmlTemplate is not empty, but no validation is required with SSOM. Skipping."); + } + else + assert.SkipProperty(m => m.WebpartXmlTemplate, "WebpartXmlTemplate is empty. Skipping."); + + if (definition.ParameterBindings.Count == 0) + { + assert.SkipProperty(m => m.ParameterBindings, "ParameterBindings is null or empty. Skipping."); + } + else + { + // TODO + } + + if (!string.IsNullOrEmpty(definition.AuthorizationFilter)) + assert.ShouldBeEqual(m => m.AuthorizationFilter, o => o.AuthorizationFilter); + else + assert.SkipProperty(m => m.AuthorizationFilter, "AuthorizationFilter is null or empty. Skipping."); + }); + } + + protected bool DisableTitleUrlValidation { get; set; } + } + + internal static class WebpartEx + { + public static string GetZoneId(this WebPart webpart) + { + return webpart.Zone != null ? webpart.Zone.ID : string.Empty; + } + + public static string GetExportMode(this WebPart webpart) + { + return webpart.ExportMode.ToString(); + } + } +} diff --git a/SPMeta2/SPMeta2.SSOM/ModelHandlers/WebPartModelHandler.cs b/SPMeta2/SPMeta2.SSOM/ModelHandlers/WebPartModelHandler.cs index eba5b4b20..611acc575 100644 --- a/SPMeta2/SPMeta2.SSOM/ModelHandlers/WebPartModelHandler.cs +++ b/SPMeta2/SPMeta2.SSOM/ModelHandlers/WebPartModelHandler.cs @@ -1,274 +1,277 @@ -using System; -using System.IO; -using System.Linq; -using System.Security; -using System.Text; -using System.Web.UI.WebControls; -using Microsoft.SharePoint; -using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; -using SPMeta2.Enumerations; -using SPMeta2.ModelHandlers; -using SPMeta2.Services; -using SPMeta2.SSOM.Extensions; -using SPMeta2.Syntax.Default; -using SPMeta2.Utils; -using System.Web.UI.WebControls.WebParts; -using Microsoft.SharePoint.WebPartPages; -using SPMeta2.SSOM.ModelHosts; -using SPMeta2.Common; -using SPMeta2.Services.Webparts; -using WebPart = System.Web.UI.WebControls.WebParts.WebPart; - -namespace SPMeta2.SSOM.ModelHandlers -{ - public class WebPartModelHandler : SSOMModelHandlerBase - { - #region constructors - - public WebPartModelHandler() - { - WebPartChromeTypesConvertService = ServiceContainer.Instance.GetService(); - } - - #endregion - - #region properties - - private const string WebPartPageCmdTemplate = - "" + - "" + - "{0}" + - "New" + - "{1}" + - "NewWebPage" + - "{2}" + - "WebPartPage" + - "{3}" + - ""; - - #endregion - - #region methods - - public override Type TargetType - { - get { return typeof(WebPartDefinition); } - } - protected WebPartChromeTypesConvertService WebPartChromeTypesConvertService { get; set; } - - protected virtual void ProcessWebpartProperties(WebPart instance, WebPartDefinition definition) - { - if (definition.Width.HasValue) - instance.Width = new Unit(definition.Width.Value); - - if (definition.Height.HasValue) - instance.Height = new Unit(definition.Height.Value); - - if (!string.IsNullOrEmpty(definition.ChromeState)) - instance.ChromeState = (PartChromeState)Enum.Parse(typeof(PartChromeState), definition.ChromeState); - - if (!string.IsNullOrEmpty(definition.ChromeType)) - { - var chromeType = WebPartChromeTypesConvertService.NormilizeValueToPartChromeTypes(definition.ChromeType); - instance.ChromeType = (PartChromeType)Enum.Parse(typeof(PartChromeType), chromeType); - } - - if (!string.IsNullOrEmpty(definition.ImportErrorMessage)) - instance.ImportErrorMessage = definition.ImportErrorMessage; - - if (!string.IsNullOrEmpty(definition.Description)) - instance.Description = definition.Description; - - if (!string.IsNullOrEmpty(definition.TitleIconImageUrl)) - instance.TitleIconImageUrl = definition.TitleIconImageUrl; - - if (!string.IsNullOrEmpty(definition.TitleUrl)) - { - var urlValue = definition.TitleUrl ?? string.Empty; - - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Original value: [{0}]", - urlValue); - - urlValue = TokenReplacementService.ReplaceTokens(new TokenReplacementContext - { - Value = urlValue, - Context = CurrentHost.HostFile.Web - }).Value; - - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Token replaced value: [{0}]", urlValue); - - instance.TitleUrl = urlValue; - } - - if (!string.IsNullOrEmpty(definition.ExportMode)) - instance.ExportMode = (WebPartExportMode)Enum.Parse(typeof(WebPartExportMode), definition.ExportMode); - - ProcessWebpartCustomProperties(instance, definition); - ProcessParameterBindings(instance, definition); - } - - protected virtual void ProcessWebpartCustomProperties(WebPart instance, WebPartDefinition definition) - { - if (definition.Properties != null && definition.Properties.Count > 0) - { - var wpType = instance.GetType(); - - foreach (var prop in definition.Properties) - { - var isCdata = prop.IsCData.HasValue && prop.IsCData.Value; - - if (ReflectionUtils.HasProperty(instance, prop.Name)) - { - var wpProp = wpType.GetProperty(prop.Name); - var wpPropType = wpProp.PropertyType; - - var targetValue = Convert.ChangeType(prop.Value, wpPropType); - - wpProp.SetValue(instance, targetValue, null); - } - } - } - } - - protected virtual void ProcessParameterBindings(WebPart instance, WebPartDefinition definition) - { - var dataFomWebPart = instance as DataFormWebPart; - - if (dataFomWebPart != null - && definition.ParameterBindings != null - && definition.ParameterBindings.Count > 0) - { - var parameterBinder = new WebPartParameterBindingsOptions(); - - foreach (var binding in definition.ParameterBindings) - parameterBinder.AddParameterBinding(binding.Name, binding.Location); - - var parameterBindingValue = SecurityElement.Escape(parameterBinder.ParameterBinding); - dataFomWebPart.ParameterBindings = parameterBindingValue; - } - } - - public WebpartPageModelHost CurrentHost { get; set; } - - public override void DeployModel(object modelHost, DefinitionBase model) - { - var host = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var webpartModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); - - CurrentHost = host; - - OnBeforeDeployModel(host, webpartModel); - - WebPartExtensions.DeployWebPartToPage(host.SPLimitedWebPartManager, webpartModel, - onUpdatingWebpartInstnce => - { - if (onUpdatingWebpartInstnce == null) - TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new web part"); - else - TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing web part"); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioning, - Object = onUpdatingWebpartInstnce, - ObjectType = typeof(System.Web.UI.WebControls.WebParts.WebPart), - ObjectDefinition = model, - ModelHost = modelHost - }); - - }, - onUpdatedWebpartInstnce => - { - HandleWikiOrPublishingPageProvision(host.HostFile.ListItemAllFields, webpartModel); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioned, - Object = onUpdatedWebpartInstnce, - ObjectType = typeof(System.Web.UI.WebControls.WebParts.WebPart), - ObjectDefinition = model, - ModelHost = modelHost - }); - }, - ProcessWebpartProperties); - - OnAfterDeployModel(host, webpartModel); - - } - - - - private static Guid PageLayout = new Guid("0f800910-b30d-4c8f-b011-8189b2297094"); - private static Guid PublishingPageContent = new Guid("f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8"); - - private static void HandleWikiOrPublishingPageProvision(SPListItem listItem, WebPartDefinition webpartModel) - { - if (!webpartModel.AddToPageContent) - return; - - var targetFieldId = Guid.Empty; - - if (listItem.Fields.Contains(SPBuiltInFieldId.WikiField)) - targetFieldId = SPBuiltInFieldId.WikiField; - else if (listItem.Fields.Contains(PageLayout) && webpartModel.AddToPageContent) - targetFieldId = PublishingPageContent; - else - { - return; - } - - var wpRichTextTemplate = new StringBuilder(); - - var wpId = webpartModel.Id - .Replace("g_", string.Empty) - .Replace("_", "-"); - - var content = listItem[targetFieldId] == null - ? string.Empty - : listItem[targetFieldId].ToString(); - - wpRichTextTemplate.AppendFormat("​​​​​​​​​​​​​​​​​​​​​​
"); - wpRichTextTemplate.AppendFormat("
", wpId); - wpRichTextTemplate.AppendFormat("
"); - wpRichTextTemplate.AppendFormat("
"); - - var wikiResult = wpRichTextTemplate.ToString(); - - if (string.IsNullOrEmpty(content)) - { - content = wikiResult; - - listItem[targetFieldId] = content; - listItem.Update(); - } - else - { - if (content.ToUpper().IndexOf(wpId.ToUpper()) == -1) - { - content += wikiResult; - - listItem[targetFieldId] = content; - listItem.Update(); - } - } - - } - - protected virtual void OnBeforeDeployModel(WebpartPageModelHost host, WebPartDefinition webpartPageModel) - { - - } - - protected virtual void OnAfterDeployModel(WebpartPageModelHost host, WebPartDefinition webpartModel) - { - - } - - #endregion - } -} +using System; +using System.IO; +using System.Linq; +using System.Security; +using System.Text; +using System.Web.UI.WebControls; +using Microsoft.SharePoint; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.Enumerations; +using SPMeta2.ModelHandlers; +using SPMeta2.Services; +using SPMeta2.SSOM.Extensions; +using SPMeta2.Syntax.Default; +using SPMeta2.Utils; +using System.Web.UI.WebControls.WebParts; +using Microsoft.SharePoint.WebPartPages; +using SPMeta2.SSOM.ModelHosts; +using SPMeta2.Common; +using SPMeta2.Services.Webparts; +using WebPart = System.Web.UI.WebControls.WebParts.WebPart; + +namespace SPMeta2.SSOM.ModelHandlers +{ + public class WebPartModelHandler : SSOMModelHandlerBase + { + #region constructors + + public WebPartModelHandler() + { + WebPartChromeTypesConvertService = ServiceContainer.Instance.GetService(); + } + + #endregion + + #region properties + + private const string WebPartPageCmdTemplate = + "" + + "" + + "{0}" + + "New" + + "{1}" + + "NewWebPage" + + "{2}" + + "WebPartPage" + + "{3}" + + ""; + + #endregion + + #region methods + + public override Type TargetType + { + get { return typeof(WebPartDefinition); } + } + protected WebPartChromeTypesConvertService WebPartChromeTypesConvertService { get; set; } + + protected virtual void ProcessWebpartProperties(WebPart instance, WebPartDefinition definition) + { + if (definition.Width.HasValue) + instance.Width = new Unit(definition.Width.Value); + + if (definition.Height.HasValue) + instance.Height = new Unit(definition.Height.Value); + + if (!string.IsNullOrEmpty(definition.ChromeState)) + instance.ChromeState = (PartChromeState)Enum.Parse(typeof(PartChromeState), definition.ChromeState); + + if (!string.IsNullOrEmpty(definition.ChromeType)) + { + var chromeType = WebPartChromeTypesConvertService.NormilizeValueToPartChromeTypes(definition.ChromeType); + instance.ChromeType = (PartChromeType)Enum.Parse(typeof(PartChromeType), chromeType); + } + + if (!string.IsNullOrEmpty(definition.ImportErrorMessage)) + instance.ImportErrorMessage = definition.ImportErrorMessage; + + if (!string.IsNullOrEmpty(definition.Description)) + instance.Description = definition.Description; + + if (!string.IsNullOrEmpty(definition.TitleIconImageUrl)) + instance.TitleIconImageUrl = definition.TitleIconImageUrl; + + if (!string.IsNullOrEmpty(definition.TitleUrl)) + { + var urlValue = definition.TitleUrl ?? string.Empty; + + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Original value: [{0}]", + urlValue); + + urlValue = TokenReplacementService.ReplaceTokens(new TokenReplacementContext + { + Value = urlValue, + Context = CurrentHost.HostFile.Web + }).Value; + + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Token replaced value: [{0}]", urlValue); + + instance.TitleUrl = urlValue; + } + + if (!string.IsNullOrEmpty(definition.ExportMode)) + instance.ExportMode = (WebPartExportMode)Enum.Parse(typeof(WebPartExportMode), definition.ExportMode); + + ProcessWebpartCustomProperties(instance, definition); + ProcessParameterBindings(instance, definition); + + if (!string.IsNullOrEmpty(definition.AuthorizationFilter)) + instance.AuthorizationFilter = definition.AuthorizationFilter; + } + + protected virtual void ProcessWebpartCustomProperties(WebPart instance, WebPartDefinition definition) + { + if (definition.Properties != null && definition.Properties.Count > 0) + { + var wpType = instance.GetType(); + + foreach (var prop in definition.Properties) + { + var isCdata = prop.IsCData.HasValue && prop.IsCData.Value; + + if (ReflectionUtils.HasProperty(instance, prop.Name)) + { + var wpProp = wpType.GetProperty(prop.Name); + var wpPropType = wpProp.PropertyType; + + var targetValue = Convert.ChangeType(prop.Value, wpPropType); + + wpProp.SetValue(instance, targetValue, null); + } + } + } + } + + protected virtual void ProcessParameterBindings(WebPart instance, WebPartDefinition definition) + { + var dataFomWebPart = instance as DataFormWebPart; + + if (dataFomWebPart != null + && definition.ParameterBindings != null + && definition.ParameterBindings.Count > 0) + { + var parameterBinder = new WebPartParameterBindingsOptions(); + + foreach (var binding in definition.ParameterBindings) + parameterBinder.AddParameterBinding(binding.Name, binding.Location); + + var parameterBindingValue = SecurityElement.Escape(parameterBinder.ParameterBinding); + dataFomWebPart.ParameterBindings = parameterBindingValue; + } + } + + public WebpartPageModelHost CurrentHost { get; set; } + + public override void DeployModel(object modelHost, DefinitionBase model) + { + var host = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var webpartModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + CurrentHost = host; + + OnBeforeDeployModel(host, webpartModel); + + WebPartExtensions.DeployWebPartToPage(host.SPLimitedWebPartManager, webpartModel, + onUpdatingWebpartInstnce => + { + if (onUpdatingWebpartInstnce == null) + TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new web part"); + else + TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing web part"); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioning, + Object = onUpdatingWebpartInstnce, + ObjectType = typeof(System.Web.UI.WebControls.WebParts.WebPart), + ObjectDefinition = model, + ModelHost = modelHost + }); + + }, + onUpdatedWebpartInstnce => + { + HandleWikiOrPublishingPageProvision(host.HostFile.ListItemAllFields, webpartModel); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = onUpdatedWebpartInstnce, + ObjectType = typeof(System.Web.UI.WebControls.WebParts.WebPart), + ObjectDefinition = model, + ModelHost = modelHost + }); + }, + ProcessWebpartProperties); + + OnAfterDeployModel(host, webpartModel); + + } + + + + private static Guid PageLayout = new Guid("0f800910-b30d-4c8f-b011-8189b2297094"); + private static Guid PublishingPageContent = new Guid("f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8"); + + private static void HandleWikiOrPublishingPageProvision(SPListItem listItem, WebPartDefinition webpartModel) + { + if (!webpartModel.AddToPageContent) + return; + + var targetFieldId = Guid.Empty; + + if (listItem.Fields.Contains(SPBuiltInFieldId.WikiField)) + targetFieldId = SPBuiltInFieldId.WikiField; + else if (listItem.Fields.Contains(PageLayout) && webpartModel.AddToPageContent) + targetFieldId = PublishingPageContent; + else + { + return; + } + + var wpRichTextTemplate = new StringBuilder(); + + var wpId = webpartModel.Id + .Replace("g_", string.Empty) + .Replace("_", "-"); + + var content = listItem[targetFieldId] == null + ? string.Empty + : listItem[targetFieldId].ToString(); + + wpRichTextTemplate.AppendFormat("​​​​​​​​​​​​​​​​​​​​​​
"); + wpRichTextTemplate.AppendFormat("
", wpId); + wpRichTextTemplate.AppendFormat("
"); + wpRichTextTemplate.AppendFormat("
"); + + var wikiResult = wpRichTextTemplate.ToString(); + + if (string.IsNullOrEmpty(content)) + { + content = wikiResult; + + listItem[targetFieldId] = content; + listItem.Update(); + } + else + { + if (content.ToUpper().IndexOf(wpId.ToUpper()) == -1) + { + content += wikiResult; + + listItem[targetFieldId] = content; + listItem.Update(); + } + } + + } + + protected virtual void OnBeforeDeployModel(WebpartPageModelHost host, WebPartDefinition webpartPageModel) + { + + } + + protected virtual void OnAfterDeployModel(WebpartPageModelHost host, WebPartDefinition webpartModel) + { + + } + + #endregion + } +} From a1faac95b27af5edd0173697b175fdfad79c829a Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 10 Oct 2016 18:28:50 -0700 Subject: [PATCH 10/27] + Enhance 'FolderDefinition' provision with specific content type #600 + SSOM impl and tests, passed 'Regression.Scenarios.Folders.ContentType' category + More tests under 'Regression.Utils.ConvertUtils' category --- .../Validation/FolderDefinitionValidator.cs | 143 +++-- .../Impl/Utils/ConvertUtilsTests.cs | 86 ++- .../ModelHandlers/FolderModelHandler.cs | 564 +++++++++--------- 3 files changed, 487 insertions(+), 306 deletions(-) diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Validation/FolderDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM/Validation/FolderDefinitionValidator.cs index 328e55380..f2731f713 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/Validation/FolderDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM/Validation/FolderDefinitionValidator.cs @@ -1,35 +1,108 @@ -using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; -using SPMeta2.SSOM.ModelHandlers; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - - -using SPMeta2.Utils; -using Microsoft.SharePoint; -using SPMeta2.SSOM.ModelHosts; - -namespace SPMeta2.Regression.SSOM.Validation -{ - public class FolderDefinitionValidator : FolderModelHandler - { - public override void DeployModel(object modelHost, DefinitionBase model) - { - var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); - - SPFolder spObject = null; - - if (folderModelHost.CurrentLibrary != null) - spObject = GetLibraryFolder(folderModelHost, definition); - else if (folderModelHost.CurrentList != null) - spObject = GetListFolder(folderModelHost, definition); - - var assert = ServiceFactory.AssertService - .NewAssert(definition, spObject) - .ShouldBeEqual(m => m.Name, o => o.Name); - } - } -} +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.SSOM.ModelHandlers; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + + +using SPMeta2.Utils; +using Microsoft.SharePoint; +using SPMeta2.SSOM.ModelHosts; +using SPMeta2.Containers.Assertion; + +namespace SPMeta2.Regression.SSOM.Validation +{ + public class FolderDefinitionValidator : FolderModelHandler + { + public override void DeployModel(object modelHost, DefinitionBase model) + { + var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var definition = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + SPFolder spObject = null; + + if (folderModelHost.CurrentLibrary != null) + spObject = GetLibraryFolder(folderModelHost, definition); + else if (folderModelHost.CurrentList != null) + spObject = GetListFolder(folderModelHost, definition); + + var assert = ServiceFactory.AssertService + .NewAssert(definition, spObject) + .ShouldBeEqual(m => m.Name, o => o.Name); + + var item = spObject.Item; + + var stringCustomContentTypeId = string.Empty; + + if (!string.IsNullOrEmpty(definition.ContentTypeName) + || !string.IsNullOrEmpty(definition.ContentTypeId)) + { + if (!string.IsNullOrEmpty(definition.ContentTypeName)) + { + var ct = ContentTypeLookupService + .LookupContentTypeByName(item.ParentList, definition.ContentTypeName); + + stringCustomContentTypeId = ct.ToString(); + } + + if (!string.IsNullOrEmpty(definition.ContentTypeId)) + { + var ct = ContentTypeLookupService + .LookupListContentTypeById(item.ParentList, definition.ContentTypeId); + + stringCustomContentTypeId = ct.ToString(); + } + } + + if (!string.IsNullOrEmpty(definition.ContentTypeId)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.ContentTypeId); + var currentContentTypeId = ConvertUtils.ToString(item["ContentTypeId"]); + + var isValis = currentContentTypeId.StartsWith(s.ContentTypeId); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValis + }; + }); + } + else + { + assert.SkipProperty(m => m.ContentTypeId, "ContentTypeId is null or empty. Skipping."); + } + + if (!string.IsNullOrEmpty(definition.ContentTypeName)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.ContentTypeName); + + // still validating agains content type ID. + // setting up by Name, the item must have correct ID + var currentContentTypeId = ConvertUtils.ToString(item["ContentTypeId"]); + var isValis = stringCustomContentTypeId.StartsWith(currentContentTypeId); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValis + }; + }); + } + else + { + assert.SkipProperty(m => m.ContentTypeName, "ContentTypeName is null or empty. Skipping."); + } + } + } +} diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Utils/ConvertUtilsTests.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Utils/ConvertUtilsTests.cs index a55d10f8e..47d4d26c2 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Impl/Utils/ConvertUtilsTests.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Utils/ConvertUtilsTests.cs @@ -11,12 +11,12 @@ namespace SPMeta2.Regression.Tests.Impl.Utils [TestClass] public class ConvertUtilsTests { - #region tests + #region ToBool tests [TestMethod] [TestCategory("Regression.Utils.ConvertUtils")] [TestCategory("CI.Core")] - public void ConvertUtils_CanParseBool_AsTrue() + public void ConvertUtils_ToBool_AsTrue() { Assert.IsTrue(ConvertUtils.ToBool(1).Value); Assert.IsTrue(ConvertUtils.ToBool((object)1).Value); @@ -39,7 +39,7 @@ public void ConvertUtils_CanParseBool_AsTrue() [TestMethod] [TestCategory("Regression.Utils.ConvertUtils")] [TestCategory("CI.Core")] - public void ConvertUtils_CanParseBool_AsFalse() + public void ConvertUtils_ToBool_AsFalse() { Assert.IsFalse(ConvertUtils.ToBool(0).Value); Assert.IsFalse(ConvertUtils.ToBool((object)0).Value); @@ -61,7 +61,7 @@ public void ConvertUtils_CanParseBool_AsFalse() [TestMethod] [TestCategory("Regression.Utils.ConvertUtils")] [TestCategory("CI.Core")] - public void ConvertUtils_CanParseBool_AsNull() + public void ConvertUtils_ToBool_AsNull() { Assert.IsFalse(ConvertUtils.ToBool(2).HasValue); Assert.IsFalse(ConvertUtils.ToBool((object)2).HasValue); @@ -84,5 +84,83 @@ public void ConvertUtils_CanParseBool_AsNull() } #endregion + + #region ToInt tests + + [TestMethod] + [TestCategory("Regression.Utils.ConvertUtils")] + [TestCategory("CI.Core")] + public void ConvertUtils_ToInt_AsInt() + { + Assert.AreEqual(1, ConvertUtils.ToInt(1)); + Assert.AreEqual(0, ConvertUtils.ToInt(0)); + Assert.AreEqual(-1, ConvertUtils.ToInt(-1)); + + Assert.AreEqual(1, ConvertUtils.ToInt((object)1)); + Assert.AreEqual(0, ConvertUtils.ToInt((object)0)); + Assert.AreEqual(-1, ConvertUtils.ToInt((object)-1)); + + Assert.AreEqual(1, ConvertUtils.ToInt("1")); + Assert.AreEqual(0, ConvertUtils.ToInt("0")); + Assert.AreEqual(-1, ConvertUtils.ToInt("-1")); + + Assert.AreEqual(1, ConvertUtils.ToInt((object)"1")); + Assert.AreEqual(0, ConvertUtils.ToInt((object)"0")); + Assert.AreEqual(-1, ConvertUtils.ToInt((object)"-1")); + } + + [TestMethod] + [TestCategory("Regression.Utils.ConvertUtils")] + [TestCategory("CI.Core")] + public void ConvertUtils_ToInt_AsNull() + { + Assert.IsFalse(ConvertUtils.ToInt(null).HasValue); + + Assert.IsFalse(ConvertUtils.ToInt("tmp").HasValue); + Assert.IsFalse(ConvertUtils.ToInt((object)"tmp").HasValue); + } + + #endregion + + #region ToGuid tests + + [TestMethod] + [TestCategory("Regression.Utils.ConvertUtils")] + [TestCategory("CI.Core")] + public void ConvertUtils_ToGuid_AsGuid() + { + var g1 = Guid.NewGuid(); + var g2 = Guid.NewGuid(); + var g3 = Guid.NewGuid(); + + Assert.AreEqual(g1, ConvertUtils.ToGuid(g1)); + Assert.AreEqual(g2, ConvertUtils.ToGuid(g2)); + Assert.AreEqual(g3, ConvertUtils.ToGuid(g3)); + + Assert.AreEqual(g1, ConvertUtils.ToGuid((object)g1)); + Assert.AreEqual(g2, ConvertUtils.ToGuid((object)g2)); + Assert.AreEqual(g3, ConvertUtils.ToGuid((object)g3)); + + Assert.AreEqual(g1, ConvertUtils.ToGuid(g1.ToString())); + Assert.AreEqual(g2, ConvertUtils.ToGuid(g2.ToString())); + Assert.AreEqual(g3, ConvertUtils.ToGuid(g3.ToString())); + + Assert.AreEqual(g1, ConvertUtils.ToGuid((object)g1.ToString())); + Assert.AreEqual(g2, ConvertUtils.ToGuid((object)g2.ToString())); + Assert.AreEqual(g3, ConvertUtils.ToGuid((object)g3.ToString())); + } + + [TestMethod] + [TestCategory("Regression.Utils.ConvertUtils")] + [TestCategory("CI.Core")] + public void ConvertUtils_ToGuid_AsNull() + { + Assert.IsFalse(ConvertUtils.ToGuid(null).HasValue); + + Assert.IsFalse(ConvertUtils.ToGuid("tmp").HasValue); + Assert.IsFalse(ConvertUtils.ToGuid((object)"tmp").HasValue); + } + + #endregion } } diff --git a/SPMeta2/SPMeta2.SSOM/ModelHandlers/FolderModelHandler.cs b/SPMeta2/SPMeta2.SSOM/ModelHandlers/FolderModelHandler.cs index e52f98b1d..d4b92db1a 100644 --- a/SPMeta2/SPMeta2.SSOM/ModelHandlers/FolderModelHandler.cs +++ b/SPMeta2/SPMeta2.SSOM/ModelHandlers/FolderModelHandler.cs @@ -1,267 +1,297 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -using Microsoft.SharePoint; -using Microsoft.SharePoint.Administration; -using SPMeta2.Common; -using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; -using SPMeta2.ModelHandlers; -using SPMeta2.Services; -using SPMeta2.SSOM.ModelHosts; -using SPMeta2.Utils; - -namespace SPMeta2.SSOM.ModelHandlers -{ - public class FolderModelHandler : SSOMModelHandlerBase - { - #region properties - - public override Type TargetType - { - get { return typeof(FolderDefinition); } - } - - #endregion - - #region methods - - public override void WithResolvingModelHost(ModelHostResolveContext modelHostContext) - { - var modelHost = modelHostContext.ModelHost; - var model = modelHostContext.Model; - var childModelType = modelHostContext.ChildModelType; - var action = modelHostContext.Action; - - - var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var folderModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); - - if (folderModelHost.CurrentLibrary != null) - { - var currentFolder = EnsureLibraryFolder(folderModelHost, folderModel); - - var newContext = new FolderModelHost - { - CurrentLibrary = folderModelHost.CurrentLibrary, - CurrentLibraryFolder = currentFolder - }; - - action(newContext); - - currentFolder.Update(); - } - else if (folderModelHost.CurrentList != null) - { - var currentListItem = EnsureListFolder(folderModelHost, folderModel); - - var newContext = new FolderModelHost - { - CurrentList = folderModelHost.CurrentList, - CurrentListItem = currentListItem - }; - - action(newContext); - - if (newContext.ShouldUpdateHost) - currentListItem.Update(); - } - } - - public override void DeployModel(object modelHost, DefinitionBase model) - { - var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); - var folderModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); - - if (folderModelHost.CurrentLibrary != null) - EnsureLibraryFolder(folderModelHost, folderModel); - else if (folderModelHost.CurrentList != null) - EnsureListFolder(folderModelHost, folderModel); - else - { - throw new ArgumentException("Model host is not supported."); - } - } - - protected SPFolder GetListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) - { - var list = folderModelHost.CurrentList; - var currentFolderItem = folderModelHost.CurrentListItem; - - var serverRelativeUrl = folderModelHost.CurrentListItem == null - ? list.RootFolder.ServerRelativeUrl - : folderModelHost.CurrentListItem.Folder.ServerRelativeUrl; - - var currentUrl = serverRelativeUrl + "/" + folderModel.Name; - - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Loading list folder with URL: [{0}]", currentUrl); - - var folder = folderModelHost.CurrentList.ParentWeb.GetFolder(currentUrl); - - if (folder != null && folder.Exists) - { - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "List folder with URL does exist: [{0}]", currentUrl); - } - else - { - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "List folder with URL does not exist: [{0}]", currentUrl); - } - - return folder; - } - - - protected SPFolder GetLibraryFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) - { - var parentFolder = folderModelHost.CurrentLibraryFolder; - - // dirty stuff, needs to be rewritten - var folder = parentFolder - .SubFolders - .OfType() - .FirstOrDefault(f => f.Name == folderModel.Name); - - - if (folder != null) - { - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Library folder with name does exist: [{0}]", folderModel.Name); - } - else - { - TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Library folder with name does not exist: [{0}]", folderModel.Name); - } - - return folder; - } - - private SPListItem EnsureListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "EnsureListFolder()"); - - var list = folderModelHost.CurrentList; - var currentFolderItem = folderModelHost.CurrentListItem; - - var serverRelativeUrl = folderModelHost.CurrentListItem == null - ? list.RootFolder.ServerRelativeUrl - : folderModelHost.CurrentListItem.Folder.ServerRelativeUrl; - - var currentUrl = serverRelativeUrl + "/" + folderModel.Name; - var currentFolder = GetListFolder(folderModelHost, folderModel); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioning, - Object = currentFolder == null || !currentFolder.Exists ? null : currentFolder, - ObjectType = typeof(SPFolder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - - if (!currentFolder.Exists) - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new list folder"); - - currentFolderItem = list.AddItem(serverRelativeUrl, SPFileSystemObjectType.Folder); - - currentFolderItem[SPBuiltInFieldId.Title] = folderModel.Name; - currentFolderItem.Update(); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioned, - Object = currentFolderItem.Folder, - ObjectType = typeof(SPFolder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - } - else - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing list folder"); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioned, - Object = currentFolder, - ObjectType = typeof(SPFolder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - - currentFolder.Update(); - - currentFolderItem = currentFolder.Item; - } - - return currentFolderItem; - } - - private SPFolder EnsureLibraryFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) - { - TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "EnsureLibraryFolder()"); - - var parentFolder = folderModelHost.CurrentLibraryFolder; - - // dirty stuff, needs to be rewritten - var currentFolder = GetLibraryFolder(folderModelHost, folderModel); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioning, - Object = currentFolder == null || !currentFolder.Exists ? null : currentFolder, - ObjectType = typeof(SPFolder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - - if (currentFolder == null || !currentFolder.Exists) - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new library folder"); - - currentFolder = parentFolder.SubFolders.Add(folderModel.Name); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioned, - Object = currentFolder, - ObjectType = typeof(SPFolder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - } - else - { - TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing library folder"); - - InvokeOnModelEvent(this, new ModelEventArgs - { - CurrentModelNode = null, - Model = null, - EventType = ModelEventType.OnProvisioned, - Object = currentFolder, - ObjectType = typeof(SPFolder), - ObjectDefinition = folderModel, - ModelHost = folderModelHost - }); - - currentFolder.Update(); - } - - return currentFolder; - } - - #endregion - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using Microsoft.SharePoint; +using Microsoft.SharePoint.Administration; +using SPMeta2.Common; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.ModelHandlers; +using SPMeta2.Services; +using SPMeta2.SSOM.ModelHosts; +using SPMeta2.Utils; + +namespace SPMeta2.SSOM.ModelHandlers +{ + public class FolderModelHandler : SSOMModelHandlerBase + { + #region properties + + public override Type TargetType + { + get { return typeof(FolderDefinition); } + } + + #endregion + + #region methods + + public override void WithResolvingModelHost(ModelHostResolveContext modelHostContext) + { + var modelHost = modelHostContext.ModelHost; + var model = modelHostContext.Model; + var childModelType = modelHostContext.ChildModelType; + var action = modelHostContext.Action; + + + var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var folderModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + if (folderModelHost.CurrentLibrary != null) + { + var currentFolder = EnsureLibraryFolder(folderModelHost, folderModel); + + var newContext = new FolderModelHost + { + CurrentLibrary = folderModelHost.CurrentLibrary, + CurrentLibraryFolder = currentFolder + }; + + action(newContext); + + currentFolder.Update(); + } + else if (folderModelHost.CurrentList != null) + { + var currentListItem = EnsureListFolder(folderModelHost, folderModel); + + var newContext = new FolderModelHost + { + CurrentList = folderModelHost.CurrentList, + CurrentListItem = currentListItem + }; + + action(newContext); + + if (newContext.ShouldUpdateHost) + currentListItem.Update(); + } + } + + public override void DeployModel(object modelHost, DefinitionBase model) + { + var folderModelHost = modelHost.WithAssertAndCast("modelHost", value => value.RequireNotNull()); + var folderModel = model.WithAssertAndCast("model", value => value.RequireNotNull()); + + if (folderModelHost.CurrentLibrary != null) + EnsureLibraryFolder(folderModelHost, folderModel); + else if (folderModelHost.CurrentList != null) + EnsureListFolder(folderModelHost, folderModel); + else + { + throw new ArgumentException("Model host is not supported."); + } + } + + protected SPFolder GetListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) + { + var list = folderModelHost.CurrentList; + var currentFolderItem = folderModelHost.CurrentListItem; + + var serverRelativeUrl = folderModelHost.CurrentListItem == null + ? list.RootFolder.ServerRelativeUrl + : folderModelHost.CurrentListItem.Folder.ServerRelativeUrl; + + var currentUrl = serverRelativeUrl + "/" + folderModel.Name; + + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Loading list folder with URL: [{0}]", currentUrl); + + var folder = folderModelHost.CurrentList.ParentWeb.GetFolder(currentUrl); + + if (folder != null && folder.Exists) + { + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "List folder with URL does exist: [{0}]", currentUrl); + } + else + { + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "List folder with URL does not exist: [{0}]", currentUrl); + } + + return folder; + } + + + protected SPFolder GetLibraryFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) + { + var parentFolder = folderModelHost.CurrentLibraryFolder; + + // dirty stuff, needs to be rewritten + var folder = parentFolder + .SubFolders + .OfType() + .FirstOrDefault(f => f.Name == folderModel.Name); + + + if (folder != null) + { + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Library folder with name does exist: [{0}]", folderModel.Name); + } + else + { + TraceService.VerboseFormat((int)LogEventId.ModelProvisionCoreCall, "Library folder with name does not exist: [{0}]", folderModel.Name); + } + + return folder; + } + + private SPListItem EnsureListFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "EnsureListFolder()"); + + var list = folderModelHost.CurrentList; + var currentFolderItem = folderModelHost.CurrentListItem; + + var serverRelativeUrl = folderModelHost.CurrentListItem == null + ? list.RootFolder.ServerRelativeUrl + : folderModelHost.CurrentListItem.Folder.ServerRelativeUrl; + + var currentUrl = serverRelativeUrl + "/" + folderModel.Name; + var currentFolder = GetListFolder(folderModelHost, folderModel); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioning, + Object = currentFolder == null || !currentFolder.Exists ? null : currentFolder, + ObjectType = typeof(SPFolder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + + if (!currentFolder.Exists) + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new list folder"); + + currentFolderItem = list.AddItem(serverRelativeUrl, SPFileSystemObjectType.Folder); + + currentFolderItem[SPBuiltInFieldId.Title] = folderModel.Name; + + MapFolderProperties(currentFolderItem, folderModel); + + currentFolderItem.Update(); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = currentFolderItem.Folder, + ObjectType = typeof(SPFolder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + } + else + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing list folder"); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = currentFolder, + ObjectType = typeof(SPFolder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + + + currentFolder.Update(); + + currentFolderItem = currentFolder.Item; + MapFolderProperties(currentFolderItem, folderModel); + currentFolderItem.Update(); + } + + return currentFolderItem; + } + + + + private SPFolder EnsureLibraryFolder(FolderModelHost folderModelHost, FolderDefinition folderModel) + { + TraceService.Information((int)LogEventId.ModelProvisionCoreCall, "EnsureLibraryFolder()"); + + var parentFolder = folderModelHost.CurrentLibraryFolder; + + // dirty stuff, needs to be rewritten + var currentFolder = GetLibraryFolder(folderModelHost, folderModel); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioning, + Object = currentFolder == null || !currentFolder.Exists ? null : currentFolder, + ObjectType = typeof(SPFolder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + + if (currentFolder == null || !currentFolder.Exists) + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingNewObject, "Processing new library folder"); + + currentFolder = parentFolder.SubFolders.Add(folderModel.Name); + currentFolder.Update(); + + MapFolderProperties(currentFolder.Item, folderModel); + currentFolder.Item.Update(); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = currentFolder, + ObjectType = typeof(SPFolder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + } + else + { + TraceService.Information((int)LogEventId.ModelProvisionProcessingExistingObject, "Processing existing library folder"); + + InvokeOnModelEvent(this, new ModelEventArgs + { + CurrentModelNode = null, + Model = null, + EventType = ModelEventType.OnProvisioned, + Object = currentFolder, + ObjectType = typeof(SPFolder), + ObjectDefinition = folderModel, + ModelHost = folderModelHost + }); + + currentFolder.Update(); + + MapFolderProperties(currentFolder.Item, folderModel); + currentFolder.Item.Update(); + } + + return currentFolder; + } + + protected virtual void MapFolderProperties(SPListItem item, FolderDefinition definition) + { + if (!string.IsNullOrEmpty(definition.ContentTypeId) || + !string.IsNullOrEmpty(definition.ContentTypeName)) + { + var list = item.ParentList; + + if (!string.IsNullOrEmpty(definition.ContentTypeId)) + item["ContentTypeId"] = ContentTypeLookupService.LookupListContentTypeById(list, definition.ContentTypeId); + + if (!string.IsNullOrEmpty(definition.ContentTypeName)) + item["ContentTypeId"] = ContentTypeLookupService.LookupContentTypeByName(list, definition.ContentTypeName); + } + } + + #endregion + } +} From 6776fa9e42b7148f2145d0684c3c4b1853621673 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 10 Oct 2016 22:15:53 -0700 Subject: [PATCH 11/27] + passed CanDeployRandom_CorePropertyDefinition() test --- .../CorePropertyDefinitionGenerator.cs | 18 ++++++- .../SPMeta2.Regression.SSOM.Standard.csproj | 4 +- .../Validation/CorePropertyValidator.cs | Bin 0 -> 4934 bytes .../ProfileTypePropertyValidator.cs | Bin .../Webparts/CorePropertyValidator.cs | Bin 3066 -> 0 bytes .../ModelHandlers/CorePropertyModelHandler.cs | 47 +++++++++++++++++- .../Definitions/CorePropertyDefinition.cs | 5 +- .../Enumerations/BuiltInPropertyDataType.cs | 31 ++++++++++++ .../SPMeta2.Standard/SPMeta2.Standard.csproj | 1 + 9 files changed, 99 insertions(+), 7 deletions(-) create mode 100644 SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/CorePropertyValidator.cs rename SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/{Webparts => }/ProfileTypePropertyValidator.cs (100%) delete mode 100644 SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/Webparts/CorePropertyValidator.cs create mode 100644 SPMeta2/SPMeta2.Standard/Enumerations/BuiltInPropertyDataType.cs diff --git a/SPMeta2/SPMeta2.Containers.Standard/DefinitionGenerators/CorePropertyDefinitionGenerator.cs b/SPMeta2/SPMeta2.Containers.Standard/DefinitionGenerators/CorePropertyDefinitionGenerator.cs index dc11ce593..7b0996776 100644 --- a/SPMeta2/SPMeta2.Containers.Standard/DefinitionGenerators/CorePropertyDefinitionGenerator.cs +++ b/SPMeta2/SPMeta2.Containers.Standard/DefinitionGenerators/CorePropertyDefinitionGenerator.cs @@ -1,10 +1,12 @@ using System; using System.Collections.Generic; +using SPMeta2.Containers.Services; using SPMeta2.Containers.Services.Base; using SPMeta2.Definitions; using SPMeta2.Definitions.Base; using SPMeta2.Enumerations; using SPMeta2.Standard.Definitions; +using SPMeta2.Standard.Enumerations; using SPMeta2.Syntax.Default; namespace SPMeta2.Containers.Standard.DefinitionGenerators @@ -15,9 +17,21 @@ public override DefinitionBase GenerateRandomDefinition(Action a { return WithEmptyDefinition(def => { - def.Name = Rnd.String(); + def.Name = string.Format("UserProperty{0}", Rnd.String(5)); + def.DisplayName = Rnd.String(); - // TODO + def.Type = Rnd.RandomFromArray(new string[]{ + BuiltInPropertyDataType.String, + BuiltInPropertyDataType.Integer, + BuiltInPropertyDataType.Email + } + ); + + if (def.Type == BuiltInPropertyDataType.String || + def.Type == BuiltInPropertyDataType.Email) + { + def.Length = 1 + Rnd.Int(25); + } }); } } diff --git a/SPMeta2/SPMeta2.Regression.SSOM.Standard/SPMeta2.Regression.SSOM.Standard.csproj b/SPMeta2/SPMeta2.Regression.SSOM.Standard/SPMeta2.Regression.SSOM.Standard.csproj index 1f9452b5d..554844587 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM.Standard/SPMeta2.Regression.SSOM.Standard.csproj +++ b/SPMeta2/SPMeta2.Regression.SSOM.Standard/SPMeta2.Regression.SSOM.Standard.csproj @@ -162,8 +162,8 @@ - - + + diff --git a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/CorePropertyValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/CorePropertyValidator.cs new file mode 100644 index 0000000000000000000000000000000000000000..57a34c412f7d679c423d7a8c8aa66d358a880b8a GIT binary patch literal 4934 zcmd5=T~8B16ur+T{)e%=l*H_Vk0K;|DJB+-6?`sjDb>z}rYyFPo6!X~ssB1WDg8tmtxr;d+jHS|(SJ>wOZO)(KFU4Ps);jAxVciJU zXoX&J9Z_|GvxC+d_MhPS0KZ}1s-I;v+4>H49ANi}9HB*~)lAegUT09&DQC3A zJZ{&rYQ@tg^4H04(?9>z!npxkj8tkDxT|BS%rK)cl}pW(x!ScX+{EoQ)-&^+R+j`Z z6@%?84%+CS%U9Uy!PBTbyhc_6#*A zk}vRtjO=Pw_#D_(e)kniDsPahoHNXM7}oDV@m3CNc-|6vNE8#q3H{lYox+nynDO5+ zI#wl*!BHy5=uhxz%O*Zsrsp9dgOAKv#@`@^uk7!7e%4h4D|XAC->1h`Oa`y(Fgoa$ z;B3mr9W{RkW>RD&vy~Y$)t+7X+N*epR;N-F^)coZ3a31814DU> zcwxp6-2x|CJ|>GZo2&(Ulky z@Z`1Nz2*{odn?@kP&1R++eUVW?7e~}$IysXlq|%nkvKOJ5Y+L1SIY;e6!exS_@V)a zJ@27Vg>$ybM;Hl~A3}`}P=fbuR`4o<{OCF;#yG(p6u0s`lJ{VL7wnJ0{~UTB>F*i7 zeT}!zsd5zDRsEv%s;|ZI;BDD@==0vqH;N`r!rU_AZ(ty)+#1VyQp7{NtrCMyz&%)7{Qom}$8M@Dbro>kyMk@Cs=qz&|EqsHT(^H?4gC6*{`((*727)i literal 0 HcmV?d00001 diff --git a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/Webparts/ProfileTypePropertyValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/ProfileTypePropertyValidator.cs similarity index 100% rename from SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/Webparts/ProfileTypePropertyValidator.cs rename to SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/ProfileTypePropertyValidator.cs diff --git a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/Webparts/CorePropertyValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/Webparts/CorePropertyValidator.cs deleted file mode 100644 index 73c17bebe66ddc13237435fef46381891817da77..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3066 zcmcIm!EVz)5S=p;|FCK=iG+OMNNFWnKwQ#Bguu@$0~Qvzf$p)`=5= zqQv%kXXeeDH?#Tk`WF(JxDkYHzIg_XIM5=EG*cZz}a_q_F4*Mcl+{%yRl?=F7V!akK_|}jpYjaxQl)=yx)#9g8cw{OL%?`Z?AEGr(RO5rD}h? zT_l(ATfpbBku8(CW?pv6;XUF_m8SyxeGX)ABsa)4l8^93z9zU@j{EU#?BB=_*d<`r zymw(}V?O|^6WC|+4tLZ*H+$A-rl=SAZL8HWjNK{^VTBx`#2l;>Wd?Lz6&Uh=0}WDz zF<4^d68K%}uYY0}#8CVHi_#T+vwudK|Nbg%>+Mh;ZlN0TGQ^h?A_eQoT1lKI{LWB~ z2VG|ekxx#Zde86cm+hQF9b~oGbSmTjR1^+T`I)b0Rg9+?h&de!+;dX-$;NEvnpuen zS&zg$PF~>a>obHs6&IRX+m^&*Nb0z3^;9uTS2Kfnt7uZ?(U>(GyVi5dS9)FOoFVHU zkPY+V9Z^qlU#?fH*vw-XqrLU^4h%a*U4q*M>h0jwN1`fvt;~iv>tjwk`Bkf##q+Bn zoTtcyif8?dyEc}Z3{#sWI++u((72%p`?y`gp7Y$P66VlV4h}YRwuk4jd_k-j(HuIW zIf0+8Y@27FonKX(evqHt)mm!Joo333@8mp)gI&av_g-FUXRyOd+>_rc?UqtrqJz07 zsbpv;$ptEY63FjFm?2SQ&*TGnkC9qKp7KaQ&ISo7J6QP1Tr&&H>pkzNU&M>`Sy z3HcUPrLH+0A8{sDl~dojE1KnV*foMe68T<>*#j0ofvO6i{zB{FZaNG_bGQGmoGa54 ZAf%EnfpeqgW^LNEefZQfEZ)-p{sjUB + /// Represents Microsoft.Office.Server.UserProfiles.PropertyDataType properties + /// + public static class BuiltInPropertyDataType + { + public static string BigInteger = "big integer"; + public static string Binary = "binary"; + public static string Boolean = "boolean"; + public static string Date = "date"; + public static string DateNoYear = "datenoyear"; + public static string DateTime = "date time"; + public static string Email = "Email"; + public static string Float = "float"; + public static string Guid = "unique identifier"; + public static string HTML = "HTML"; + public static string Integer = "integer"; + public static string Person = "Person"; + public static string String = "string"; + public static string StringMultiValue = "string (Multi Value)"; + public static string StringSingleValue = "string (Single Value)"; + public static string TimeZone = "timezone"; + public static string URL = "URL"; + } +} diff --git a/SPMeta2/SPMeta2.Standard/SPMeta2.Standard.csproj b/SPMeta2/SPMeta2.Standard/SPMeta2.Standard.csproj index 1abc5398f..965d3c370 100644 --- a/SPMeta2/SPMeta2.Standard/SPMeta2.Standard.csproj +++ b/SPMeta2/SPMeta2.Standard/SPMeta2.Standard.csproj @@ -131,6 +131,7 @@ + From 17fece6df3f68fbd240f92939d819aa0e7600f4a Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 10 Oct 2016 22:42:22 -0700 Subject: [PATCH 12/27] + Add CorePropertyDefinition - user profile property provision #820 + Passed tests under "Regression.Scenarios.CoreProperty" category --- .../Scenarios/CorePropertyScenariosTest.cs | 541 ++++++++++++++++++ .../SPMeta2.Regression.Tests.csproj | 1 + .../ModelHandlers/CorePropertyModelHandler.cs | 24 + 3 files changed, 566 insertions(+) create mode 100644 SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/CorePropertyScenariosTest.cs diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/CorePropertyScenariosTest.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/CorePropertyScenariosTest.cs new file mode 100644 index 000000000..2c7208ff0 --- /dev/null +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/CorePropertyScenariosTest.cs @@ -0,0 +1,541 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using SPMeta2.BuiltInDefinitions; +using SPMeta2.Containers; +using SPMeta2.Containers.Standard; +using SPMeta2.Definitions; +using SPMeta2.Enumerations; +using SPMeta2.Models; +using SPMeta2.Regression.Tests.Base; +using SPMeta2.Regression.Tests.Definitions; +using SPMeta2.Regression.Tests.Impl.Scenarios.Base; +using SPMeta2.Syntax.Default; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using SPMeta2.Standard.Syntax; +using SPMeta2.Syntax.Default.Modern; +using SPMeta2.Standard.Definitions; +using SPMeta2.Standard.Enumerations; + +namespace SPMeta2.Regression.Tests.Impl.Scenarios +{ + [TestClass] + public class CorePropertyScenariosTest : SPMeta2RegresionScenarioTestBase + { + #region internal + + [ClassInitializeAttribute] + public static void Init(TestContext context) + { + InternalInit(); + } + + [ClassCleanupAttribute] + public static void Cleanup() + { + InternalCleanup(); + } + + #endregion + + #region properties + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.Properties")] + public void CanDeploy_CoreProperty_As_IsAlias() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.IsAlias = Rnd.Bool(); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + + // revert prop. deploy again + var invertedPropDef = propDef.Inherit(def => + { + def.IsAlias = !def.IsAlias; + }); + + var invertedModel = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(invertedPropDef); + }); + + + TestModel(invertedModel); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.Properties")] + public void CanDeploy_CoreProperty_As_IsMultivalued() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.StringMultiValue; + def.IsMultivalued = Rnd.Bool(); + def.Length = 1 + Rnd.Int(100); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + TestModel(model); + + // revert prop. deploy again + // change name cause we need new model as IsMultivalued prop cannot be updated + var invertedPropDef = propDef.Inherit(def => + { + def.Name = Rnd.String(); + def.IsMultivalued = !def.IsMultivalued; + }); + + var invertedModel = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(invertedPropDef); + }); + + + TestModel(invertedModel); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.Properties")] + public void CanDeploy_CoreProperty_As_IsSearchable() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.String; + def.IsSearchable = Rnd.Bool(); + def.Length = 1 + Rnd.Int(10); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + + // revert prop. deploy again + var invertedPropDef = propDef.Inherit(def => + { + def.IsSearchable = !def.IsSearchable; + }); + + var invertedModel = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(invertedPropDef); + }); + + + TestModel(invertedModel); + }); + } + + #endregion + + #region data types + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_BigInteger() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.BigInteger; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_Binary() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.Binary; + def.Length = 1 + Rnd.Int(10); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_Boolean() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.Boolean; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_Date() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.Date; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_DateNoYear() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.DateNoYear; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_DateTime() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.DateTime; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_Email() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.Email; + def.Length = 1 + Rnd.Int(10); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_Float() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.Float; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_Guid() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.Guid; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_HTML() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.HTML; + def.Length = 1 + Rnd.Int(10); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_Integer() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.Integer; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_Person() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.Person; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_String() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.String; + def.Length = 1 + Rnd.Int(10); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_StringMultiValue() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.StringMultiValue; + def.Length = 1 + Rnd.Int(10); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_StringSingleValue() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.StringSingleValue; + def.Length = 1 + Rnd.Int(10); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_TimeZone() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.TimeZone; + def.Length = null; + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + [TestMethod] + [TestCategory("Regression.Scenarios.CoreProperty.DataType")] + public void CanDeploy_CoreProperty_As_URL() + { + WithExpectedUnsupportedCSOMnO365RunnerExceptions(() => + { + var propDef = ModelGeneratorService.GetRandomDefinition(def => + { + def.Type = BuiltInPropertyDataType.URL; + def.Length = 1 + Rnd.Int(10); + }); + + var model = SPMeta2Model.NewSiteModel(site => + { + site.AddCoreProperty(propDef); + }); + + + TestModel(model); + }); + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj b/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj index f74fc8341..8218eb09b 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj +++ b/SPMeta2/SPMeta2.Regression.Tests/SPMeta2.Regression.Tests.csproj @@ -161,6 +161,7 @@ + diff --git a/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/CorePropertyModelHandler.cs b/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/CorePropertyModelHandler.cs index d5927c049..b3bcab4ee 100644 --- a/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/CorePropertyModelHandler.cs +++ b/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/CorePropertyModelHandler.cs @@ -61,6 +61,8 @@ private void DeployDefinition(object modelHost, SiteModelHost siteModelHost, Cor if (currentProperty == null) currentProperty = CreateNewCoreProperty(site, definition); + MapProperties(currentProperty, definition); + InvokeOnModelEvent(this, new ModelEventArgs { CurrentModelNode = null, @@ -73,6 +75,19 @@ private void DeployDefinition(object modelHost, SiteModelHost siteModelHost, Cor }); } + private void MapProperties(CoreProperty currentProperty, CorePropertyDefinition definition) + { + if (definition.IsAlias.HasValue) + currentProperty.IsAlias = definition.IsAlias.Value; + + if (definition.IsSearchable.HasValue) + currentProperty.IsSearchable = definition.IsSearchable.Value; + + // this is cannot be updated + //if (definition.IsMultivalued.HasValue) + // currentProperty.IsMultivalued = definition.IsMultivalued.Value; + } + protected virtual CoreProperty CreateNewCoreProperty(SPSite site, CorePropertyDefinition definition) { var serverContext = SPServiceContext.GetContext(site); @@ -94,6 +109,15 @@ protected virtual CoreProperty CreateNewCoreProperty(SPSite site, CorePropertyDe if (definition.Length.HasValue) coreProp.Length = definition.Length.Value; + if (definition.IsAlias.HasValue) + coreProp.IsAlias = definition.IsAlias.Value; + + if (definition.IsSearchable.HasValue) + coreProp.IsSearchable = definition.IsSearchable.Value; + + if (definition.IsMultivalued.HasValue) + coreProp.IsMultivalued = definition.IsMultivalued.Value; + corePropertiesManager.Add(coreProp); return coreProp; From 526793d76525e606fa679f742d6de2cf27802b7e Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 10 Oct 2016 23:31:15 -0700 Subject: [PATCH 13/27] + Add TrustedAccessProviderDefinition - support trusted identity token issuer provision #167 + passed CanDeployRandom_TrustedAccessProviderDefinition --- ...rustedAccessProviderDefinitionGenerator.cs | 5 +- .../SPMeta2.Containers.csproj | 5 + SPMeta2/SPMeta2.Containers/Utils/X509Utils.cs | 118 ++++++++++++++++++ SPMeta2/SPMeta2.Containers/packages.config | 4 + .../SPMeta2.Regression.Impl.Tests/app.config | 28 ++--- .../TrustedProviderDefinitionValidator.cs | 51 +++++++- .../TrustedProviderDefinitionModelHandler.cs | 16 ++- 7 files changed, 209 insertions(+), 18 deletions(-) create mode 100644 SPMeta2/SPMeta2.Containers/Utils/X509Utils.cs create mode 100644 SPMeta2/SPMeta2.Containers/packages.config diff --git a/SPMeta2/SPMeta2.Containers/DefinitionGenerators/TrustedAccessProviderDefinitionGenerator.cs b/SPMeta2/SPMeta2.Containers/DefinitionGenerators/TrustedAccessProviderDefinitionGenerator.cs index 5acbfeb43..b06741cec 100644 --- a/SPMeta2/SPMeta2.Containers/DefinitionGenerators/TrustedAccessProviderDefinitionGenerator.cs +++ b/SPMeta2/SPMeta2.Containers/DefinitionGenerators/TrustedAccessProviderDefinitionGenerator.cs @@ -1,5 +1,6 @@ using System; using SPMeta2.Containers.Services.Base; +using SPMeta2.Containers.Utils; using SPMeta2.Definitions; using SPMeta2.Definitions.Base; @@ -11,8 +12,10 @@ public override DefinitionBase GenerateRandomDefinition(Action a { return WithEmptyDefinition(def => { - // TODO def.Name = Rnd.String(); + //def.MetadataEndPoint = string.Format("https://localhost/{0}.aspx", Rnd.String()); + + def.Certificate = X509Utils.GenerateRandomSelfSignedCertificate_AsCertBytes(Rnd.String(), Rnd.String()); }); } } diff --git a/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj b/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj index 22bb9c1b4..b82bf146c 100644 --- a/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj +++ b/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj @@ -66,6 +66,9 @@ MinimumRecommendedRules.ruleset + + ..\..\packages\BouncyCastle.1.8.1\lib\BouncyCastle.Crypto.dll + @@ -253,6 +256,7 @@ + True True @@ -325,6 +329,7 @@ Always + diff --git a/SPMeta2/SPMeta2.Containers/Utils/X509Utils.cs b/SPMeta2/SPMeta2.Containers/Utils/X509Utils.cs new file mode 100644 index 000000000..0db6fbba8 --- /dev/null +++ b/SPMeta2/SPMeta2.Containers/Utils/X509Utils.cs @@ -0,0 +1,118 @@ +using System; +using System.IO; +using System.Security.Cryptography.X509Certificates; + +using Org.BouncyCastle.Asn1; +using Org.BouncyCastle.Asn1.X509; +using Org.BouncyCastle.Crypto; +using Org.BouncyCastle.Crypto.Generators; +using Org.BouncyCastle.Crypto.Prng; +using Org.BouncyCastle.Math; +using Org.BouncyCastle.Pkcs; +using Org.BouncyCastle.Security; +using Org.BouncyCastle.Utilities; +using Org.BouncyCastle.X509; + +namespace SPMeta2.Containers.Utils +{ + public static class X509Utils + { + public static byte[] GenerateRandomSelfSignedCertificate_AsCertBytes(string rndString, string password) + { + var cert = GenerateRandomSelfSignedCertificate(rndString, password); + return cert.Export(X509ContentType.Cert, password); + } + + public static X509Certificate2 GenerateRandomSelfSignedCertificate(string rndString, string password) + { + string pwd = password; + var suppliers = new[] + { + string.Format("CN={0}, OU={0}, OU={0}, O={0}, C=GB", "CN={0}, OU=Supp{0}lierId, OU={0}, O={0}, C=GB", + rndString) + }; + var cb = new X509CertBuilder(suppliers, + string.Format("CN={0}, OU={0}, O={0}, C=GB", rndString), CertStrength.bits_512); + + X509Certificate2 cert = cb.MakeCertificate(pwd, + string.Format("CN={0}, OU={0}, OU={0}, O={0}, C=GB", rndString), 2); + + return cert; + } + + public enum CertStrength + { + bits_512 = 512, bits_1024 = 1024, bits_2048 = 2048, bits_4096 = 4096 + } + + public class X509CertBuilder + { + const string SignatureAlgorithm = "SHA256WithRSA"; + private readonly int _strength; + private readonly CryptoApiRandomGenerator _randomGenerator = new CryptoApiRandomGenerator(); + private readonly X509V3CertificateGenerator _certificateGenerator = new X509V3CertificateGenerator(); + private readonly SecureRandom _random; + private readonly X509Name _issuer; + private readonly GeneralName[] _generalNames; + + public X509CertBuilder(string[] validWithDomainNames, string issuer, CertStrength certStrength) + { + _random = new SecureRandom(_randomGenerator); + _issuer = new X509Name(issuer); + _strength = (int)certStrength; + + _generalNames = new GeneralName[validWithDomainNames.Length]; + for (int t = 0; t < validWithDomainNames.Length; t++) + { + _generalNames[t] = new GeneralName(new X509Name(validWithDomainNames[t])); + } + } + + public X509Certificate2 MakeCertificate(string password, string issuedToDomainName, int validYears) + { + _certificateGenerator.Reset(); + _certificateGenerator.SetSignatureAlgorithm(SignatureAlgorithm); + var serialNumber = BigIntegers.CreateRandomInRange(BigInteger.One, BigInteger.ValueOf(Int64.MaxValue), _random); + _certificateGenerator.SetSerialNumber(serialNumber); + + _certificateGenerator.SetSubjectDN(new X509Name(issuedToDomainName)); + _certificateGenerator.SetIssuerDN(_issuer); + + var subjectAlternativeNames = new Asn1Encodable[_generalNames.Length + 1]; + // first subject alternative name is the same as the subject + subjectAlternativeNames[0] = new GeneralName(new X509Name(issuedToDomainName)); + for (int t = 1; t <= _generalNames.Length; t++) + { + subjectAlternativeNames[t] = _generalNames[t - 1]; + } + var subjectAlternativeNamesExtension = new DerSequence(subjectAlternativeNames); + _certificateGenerator.AddExtension(X509Extensions.SubjectAlternativeName.Id, false, subjectAlternativeNamesExtension); + + _certificateGenerator.SetNotBefore(DateTime.UtcNow.Date); + _certificateGenerator.SetNotAfter(DateTime.UtcNow.Date.AddYears(validYears)); + var keyGenerationParameters = new KeyGenerationParameters(_random, _strength); + + var keyPairGenerator = new RsaKeyPairGenerator(); + keyPairGenerator.Init(keyGenerationParameters); + var subjectKeyPair = keyPairGenerator.GenerateKeyPair(); + + _certificateGenerator.SetPublicKey(subjectKeyPair.Public); + var issuerKeyPair = subjectKeyPair; + var certificate = _certificateGenerator.Generate(issuerKeyPair.Private, _random); + + var store = new Pkcs12Store(); + string friendlyName = certificate.SubjectDN.ToString(); + var certificateEntry = new X509CertificateEntry(certificate); + store.SetCertificateEntry(friendlyName, certificateEntry); + store.SetKeyEntry(friendlyName, new AsymmetricKeyEntry(subjectKeyPair.Private), new[] { certificateEntry }); + + using (var stream = new MemoryStream()) + { + store.Save(stream, password.ToCharArray(), _random); + return new X509Certificate2(stream.ToArray(), password, X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.Exportable); + } + } + } + + } +} diff --git a/SPMeta2/SPMeta2.Containers/packages.config b/SPMeta2/SPMeta2.Containers/packages.config new file mode 100644 index 000000000..840b73c98 --- /dev/null +++ b/SPMeta2/SPMeta2.Containers/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/SPMeta2/SPMeta2.Regression.Impl.Tests/app.config b/SPMeta2/SPMeta2.Regression.Impl.Tests/app.config index b57e60015..36627b276 100644 --- a/SPMeta2/SPMeta2.Regression.Impl.Tests/app.config +++ b/SPMeta2/SPMeta2.Regression.Impl.Tests/app.config @@ -1,15 +1,15 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Validation/TrustedProviderDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM/Validation/TrustedProviderDefinitionValidator.cs index 5440f77c4..7306c7f8b 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/Validation/TrustedProviderDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM/Validation/TrustedProviderDefinitionValidator.cs @@ -1,4 +1,5 @@ -using Microsoft.SharePoint.Administration.Claims; +using System.Security.Cryptography.X509Certificates; +using Microsoft.SharePoint.Administration.Claims; using SPMeta2.Containers.Assertion; using SPMeta2.Definitions; using SPMeta2.Definitions.Base; @@ -21,6 +22,54 @@ public override void DeployModel(object modelHost, DefinitionBase model) .NewAssert(definition, spObject) .ShouldNotBeNull(spObject); + + assert.ShouldBeEqual(m => m.Name, o => o.Name); + + if (!string.IsNullOrEmpty(definition.Description)) + { + assert.ShouldBeEqual(m => m.Description, o => o.Description); + } + else + { + assert.SkipProperty(m => m.Description); + } + + if (!string.IsNullOrEmpty(definition.MetadataEndPoint)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.MetadataEndPoint); + + var isValid = s.MetadataEndPoint.ToUpper() == d.MetadataEndPoint.ToString().ToUpper(); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid + }; + }); + } + else + { + assert.SkipProperty(m => m.MetadataEndPoint); + } + + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(def => def.Certificate); + + var isValid = new X509Certificate2(s.Certificate).Thumbprint == d.SigningCertificate.Thumbprint; + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = isValid + }; + }); } #endregion diff --git a/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs b/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs index d7a7740eb..4e21a0f43 100644 --- a/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs +++ b/SPMeta2/SPMeta2.SSOM/ModelHandlers/TrustedProviderDefinitionModelHandler.cs @@ -79,14 +79,26 @@ private void DeployAftifact(FarmModelHost modelHost, SPFarm spFarm, TrustedAcces #if !NET35 if (!string.IsNullOrEmpty(definition.MetadataEndPoint)) { - currentObject.MetadataEndPoint = new Uri(definition.MetadataEndPoint); + if (currentObject.MetadataEndPoint != null) + { + if (currentObject.MetadataEndPoint.AbsoluteUri.ToUpper() != + new Uri(definition.MetadataEndPoint).AbsoluteUri.ToUpper()) + { + currentObject.MetadataEndPoint = new Uri(definition.MetadataEndPoint); + } + } + else + { + currentObject.MetadataEndPoint = new Uri(definition.MetadataEndPoint); + } } #endif if (definition != null && definition.Certificate.Count() > 0) { var certificate = new X509Certificate2(definition.Certificate); - if (currentObject.SigningCertificate != certificate) + + if (currentObject.SigningCertificate.Thumbprint != certificate.Thumbprint) { currentObject.SigningCertificate = certificate; } From 25cb736b788692e77b9ec8637ce1d4339adf18d3 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Wed, 12 Oct 2016 03:01:18 -0700 Subject: [PATCH 14/27] + Add BreakRoleInheritanceDefinition documentation #901 + Add ResetRoleInheritanceDefinition documentation #910 --- .../Properties/AssemblyInfo.cs | 2 +- .../SPMeta2.CSOM/Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../SPMeta2.O365/Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../SPMeta2.SSOM/Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- SPMeta2/SPMeta2/Properties/AssemblyInfo.cs | 2 +- .../Code/Base/ProvisionTestBase.cs | 17 +- .../Properties/AssemblyInfo.cs | 2 +- .../SubPointSolutions.Docs.csproj | 4 + .../BreakRoleInheritanceDefinition.md | 28 ++-- .../BreakRoleInheritanceDefinitionTests.cs | 148 +++++++++++++++++- .../ResetRoleInheritanceDefinition.md | 27 +--- .../ResetRoleInheritanceDefinitionTests.cs | 59 ++++++- 27 files changed, 251 insertions(+), 74 deletions(-) diff --git a/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs index 29a876c61..17985f0cd 100644 --- a/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs @@ -32,4 +32,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs index 55bec4395..111e8bfd3 100644 --- a/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs index 6a6ecf526..8970e9699 100644 --- a/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs index fe9a860e8..3508f7ee9 100644 --- a/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs index 3560a5428..cca9bcf9a 100644 --- a/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs index c5d478f94..14f73882b 100644 --- a/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs index 6af4a4a47..64bab158d 100644 --- a/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs index 6cdf8a76f..f636edf03 100644 --- a/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs index 5c9dc28c2..cb5dbc98f 100644 --- a/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs index bf9a81ee4..59f37f41f 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs index 42a4e7de5..ad16a7f8e 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs index 93226482f..2f6c35a82 100644 --- a/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs index f51536a43..3a7816efa 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs index bc003bb0a..9fc4c420d 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs index 705c60bd5..5c78b6872 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs index 7b8017a7b..d6bfce72e 100644 --- a/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.16278.0757")] +[assembly: AssemblyFileVersion("1.0.16286.0924")] diff --git a/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs index 83206b526..b81fc50fb 100644 --- a/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs index 7b8841874..1a1496a65 100644 --- a/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs index 6ed4b5641..9eb96d74f 100644 --- a/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs index 21f45b935..d1fa6dfef 100644 --- a/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs @@ -32,4 +32,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16278.0757")] +[assembly: AssemblyFileVersion("1.2.16286.0924")] diff --git a/SPMeta2/SubPointSolutions.Docs/Code/Base/ProvisionTestBase.cs b/SPMeta2/SubPointSolutions.Docs/Code/Base/ProvisionTestBase.cs index 3acced767..5e64ca31c 100644 --- a/SPMeta2/SubPointSolutions.Docs/Code/Base/ProvisionTestBase.cs +++ b/SPMeta2/SubPointSolutions.Docs/Code/Base/ProvisionTestBase.cs @@ -13,6 +13,9 @@ using SPMeta2.SSOM.ModelHosts; using SPMeta2.SSOM.Standard.Services; using SPMeta2.SSOM.Services; +using SPMeta2.Containers.Utils; +using SPMeta2.Containers.Consts; +using SPMeta2.Exceptions; namespace SPMeta2.Docs.ProvisionSamples.Base { @@ -22,11 +25,19 @@ public class ProvisionTestBase public ProvisionTestBase() { - CSOMSiteUrl = "http://tesla-dev:31421"; - SSOMSiteUrl = "http://tesla-dev:31416"; + SSOMSiteUrl = RunnerEnvironmentUtils.GetEnvironmentVariables(EnvironmentConsts.SSOM_SiteUrls).First(); + CSOMSiteUrl = RunnerEnvironmentUtils.GetEnvironmentVariables(EnvironmentConsts.CSOM_SiteUrls).First(); - EnableCSOM = false; + EnableCSOM = true; EnableSSOM = true; + + if (EnableSSOM) + { + if (!Environment.Is64BitProcess) + { + throw new SPMeta2Exception("Environment.Is64BitProcess is false. If you run unit tests from Visual Studio, ensure 'Test -> Test Setting -> Default Processor Architecture -> x64'"); + } + } } #endregion diff --git a/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs b/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs index c9188047a..7259d9834 100644 --- a/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs +++ b/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.16278.0757")] +[assembly: AssemblyFileVersion("1.0.16286.0924")] diff --git a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj index d6dd04437..a30cade23 100644 --- a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj +++ b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj @@ -1265,6 +1265,10 @@ + + {091c48fb-27e3-4f84-897c-5de7bb55a2d3} + SPMeta2.Containers + {5e592eaa-e21f-4bf4-8edf-6f6452dc916a} SPMeta2.CSOM.Standard diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/BreakRoleInheritanceDefinition.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/BreakRoleInheritanceDefinition.md index f23b2cb71..9377bf7a1 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/BreakRoleInheritanceDefinition.md +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/BreakRoleInheritanceDefinition.md @@ -1,23 +1,13 @@ ----- -Hidden: true ----- +Break role inheritance operations over securable SharePoint objects are implemented with BreakRoleInheritanceDefinition. -### Provision scenario -SCENARIO +BreakRoleInheritanceDefinition maps out SPSecurableObject.BreakRoleInheritance() method call. +Properties CopyRoleAssignments and ClearSubscopes get passed to CSOM/SSOM .BreakRoleInheritance() method. -### Scope -SCOPE +Additional property ForceClearSubscopes is introduced by SPMeta2. The property forces SPMeta2 to clear .RoleAssignments collection every provision. -### Implementation -IMPLEMENTATION +Note that .AddBreakRoleInheritance() syntax passes the object on which the method was called. +For instance, for list, you would get the list wihtin AddBreakRoleInheritance() as following: +list.AddBreakRoleInheritance(list => {} ) -###Samples -A SAMPLE 1 -[TEST.TestFunctionName1] - -A SAMPLE 2 -[TEST.TestFunctionName2] - -### Links -- [link 1](http://example.com) -- [link 2](http://example.com) \ No newline at end of file +For web, you would get the web wihtin AddResetRoleInheritance() as following: +web.AddBreakRoleInheritance(web => {} ) \ No newline at end of file diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/BreakRoleInheritanceDefinitionTests.cs b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/BreakRoleInheritanceDefinitionTests.cs index 3f282a206..e92ded213 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/BreakRoleInheritanceDefinitionTests.cs +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/BreakRoleInheritanceDefinitionTests.cs @@ -1,6 +1,8 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; +using SPMeta2.Definitions; using SPMeta2.Docs.ProvisionSamples.Base; using SPMeta2.Docs.ProvisionSamples.Definitions; +using SPMeta2.Enumerations; using SPMeta2.Syntax.Default; using SubPointSolutions.Docs.Code.Enumerations; using SubPointSolutions.Docs.Code.Metadata; @@ -24,18 +26,152 @@ public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase [TestMethod] [TestCategory("Docs.BreakRoleInheritanceDefinition")] - [SampleMetadata(Title = "Break role inheritance", + [SampleMetadata(Title = "Break role inheritance on web", Description = "" )] - [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)] - public void CanDeploySimpleBreakRoleInheritanceDefinition() + public void CanDeploySimpleBreakRoleInheritance_OnWeb() { - var model = SPMeta2Model.NewSiteModel(site => + var privateProjectWebDef = new WebDefinition { - + Title = "Private project", + Url = "private-project", + WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite + }; + + var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition + { + CopyRoleAssignments = false + }; + + var privateSecurityGroupMembers = new SecurityGroupDefinition + { + Name = "Private Project Group Members" + }; + + var privateSecurityGroupViewers = new SecurityGroupDefinition + { + Name = "Private Project Group Viewers" + }; + + // site model with the groups + var siteModel = SPMeta2Model.NewSiteModel(site => + { + site.AddSecurityGroup(privateSecurityGroupMembers); + site.AddSecurityGroup(privateSecurityGroupViewers); + }); + + // web model + var webModel = SPMeta2Model.NewWebModel(web => + { + web.AddWeb(privateProjectWebDef, publicProjectWeb => + { + publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb => + { + // privateProjectResetWeb is your web but after breaking role inheritance + + // link group with roles by SecurityRoleType / SecurityRoleName + // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames + + // add group with contributor permission + privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group => + { + group.AddSecurityRoleLink(new SecurityRoleLinkDefinition + { + SecurityRoleType = BuiltInSecurityRoleTypes.Contributor + }); + }); + + // add group with reader permission + privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group => + { + group.AddSecurityRoleLink(new SecurityRoleLinkDefinition + { + SecurityRoleType = BuiltInSecurityRoleTypes.Reader + }); + }); + }); + }); + }); + + // deploy site model with groups, and then web model with the rest + DeployModel(siteModel); + DeployModel(webModel); + } + + + [TestMethod] + [TestCategory("Docs.BreakRoleInheritanceDefinition")] + + [SampleMetadata(Title = "Break role inheritance on list", + Description = "" + )] + public void CanDeploySimpleBreakRoleInheritance_OnList() + { + var privateListDef = new ListDefinition + { + Title = "Private records", + TemplateType = BuiltInListTemplateTypeId.GenericList, + CustomUrl = "lists/private-records", + }; + + var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition + { + CopyRoleAssignments = false + }; + + var privateSecurityGroupMembers = new SecurityGroupDefinition + { + Name = "Private Project Group Members" + }; + + var privateSecurityGroupViewers = new SecurityGroupDefinition + { + Name = "Private Project Group Viewers" + }; + + // site model with the groups + var siteModel = SPMeta2Model.NewSiteModel(site => + { + site.AddSecurityGroup(privateSecurityGroupMembers); + site.AddSecurityGroup(privateSecurityGroupViewers); + }); + + // web model + var webModel = SPMeta2Model.NewWebModel(web => + { + web.AddList(privateListDef, publicProjectWeb => + { + publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList => + { + // privateResetList is your list but after breaking role inheritance + + // link group with roles by SecurityRoleType / SecurityRoleName + // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames + + // add group with contributor permission + privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group => + { + group.AddSecurityRoleLink(new SecurityRoleLinkDefinition + { + SecurityRoleType = BuiltInSecurityRoleTypes.Contributor + }); + }); + + // add group with reader permission + privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group => + { + group.AddSecurityRoleLink(new SecurityRoleLinkDefinition + { + SecurityRoleType = BuiltInSecurityRoleTypes.Reader + }); + }); + }); + }); }); - DeployModel(model); + // deploy site model with groups, and then web model with the rest + DeployModel(siteModel); + DeployModel(webModel); } #endregion diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/ResetRoleInheritanceDefinition.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/ResetRoleInheritanceDefinition.md index 5ace83bf4..35a0a4cd2 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/ResetRoleInheritanceDefinition.md +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/ResetRoleInheritanceDefinition.md @@ -1,23 +1,10 @@ ----- -Hidden: true ----- +Resetting role inheritance operations over securable SharePoint objects are implemented with ResetRoleInheritanceDefinition. -### Provision scenario -SCENARIO +ResetRoleInheritanceDefinition maps out SPSecurableObject.ResetRoleInheritance() method call. -### Scope -SCOPE +Note that .AddResetRoleInheritance() syntax passes the object on which the method was called. +For instance, for list, you would get the list wihtin AddResetRoleInheritance() as following: +list.AddResetRoleInheritance(list => {} ) -### Implementation -IMPLEMENTATION - -### Samples -A SAMPLE 1 -[TEST.TestFunctionName1] - -A SAMPLE 2 -[TEST.TestFunctionName2] - -### Links -- [link 1](http://example.com) -- [link 2](http://example.com) \ No newline at end of file +For web, you would get the web wihtin AddResetRoleInheritance() as following: +web.AddResetRoleInheritance(web => {} ) \ No newline at end of file diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/ResetRoleInheritanceDefinitionTests.cs b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/ResetRoleInheritanceDefinitionTests.cs index aacdd6d81..f559d7367 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/ResetRoleInheritanceDefinitionTests.cs +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/ResetRoleInheritanceDefinitionTests.cs @@ -1,6 +1,8 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; +using SPMeta2.Definitions; using SPMeta2.Docs.ProvisionSamples.Base; using SPMeta2.Docs.ProvisionSamples.Definitions; +using SPMeta2.Enumerations; using SPMeta2.Syntax.Default; using SubPointSolutions.Docs.Code.Enumerations; using SubPointSolutions.Docs.Code.Metadata; @@ -23,16 +25,63 @@ public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase [TestCategory("Docs.ResetRoleInheritanceDefinition")] - [SampleMetadata(Title = "Reset role inheritance", + [SampleMetadata(Title = "Reset role inheritance on list", Description = "" )] - //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)] + public void CanDeployResetRoleInheritanceDefinition_OnList() + { + var listDef = new ListDefinition + { + Title = "Public records", + TemplateType = BuiltInListTemplateTypeId.GenericList, + CustomUrl = "lists/public-records", + }; + + var model = SPMeta2Model.NewWebModel(web => + { + web.AddList(listDef, list => + { + list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList => + { + // resetList is your list but after resetting role inheritance + // build your model as usual + + // resetList.AddListView(...) + }); + }); + }); + + DeployModel(model); + } - public void CanDeploySimpleResetRoleInheritanceDefinition() + [TestMethod] + [TestCategory("Docs.ResetRoleInheritanceDefinition")] + + + [SampleMetadata(Title = "Reset role inheritance on web", + Description = "" + )] + public void CanDeployResetRoleInheritanceDefinition_OnWeb() { - var model = SPMeta2Model.NewSiteModel(site => + var publicProjectWebDef = new WebDefinition + { + Title = "Public project", + Url = "public-project", + WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite + }; + + var model = SPMeta2Model.NewWebModel(web => { - + web.AddWeb(publicProjectWebDef, publicProjectWeb => + { + publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb => + { + // publicProjectResetWeb is your web but after resetting role inheritance + // build your model as usual + + // publicProjectResetWeb.AddList(...) + }); + }); }); DeployModel(model); From 8abc4d8e9320b6de5dc5fc6cb1af7e5ea5042679 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Wed, 12 Oct 2016 03:17:28 -0700 Subject: [PATCH 15/27] + Add DeleteWebPartsDefinition documentation #909 --- .../SubPointSolutions.Docs.csproj | 2 + .../DeleteWebPartsDefinition.md | 10 +++ .../DeleteWebPartsDefinitionTests.cs | 71 +++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/DeleteWebPartsDefinition.md create mode 100644 SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/DeleteWebPartsDefinitionTests.cs diff --git a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj index a30cade23..816c45ce0 100644 --- a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj +++ b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj @@ -321,6 +321,7 @@ + @@ -853,6 +854,7 @@ + diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/DeleteWebPartsDefinition.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/DeleteWebPartsDefinition.md new file mode 100644 index 000000000..c70945a92 --- /dev/null +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/DeleteWebPartsDefinition.md @@ -0,0 +1,10 @@ +Web parts deletion is suppoerted by DeleteWebPartsDefinition. + +DeleteWebPartsDefinition can be added to any page: wiki, publishing or web part page. +Use .AddDeleteWebParts() with new DeleteWebPartsDefinition. + +DeleteWebPartsDefinition has .WebParts property that stores 'web part matches' to find web part for deletion operation. +WebPartMatch has three properties - Title, Id and WebpartType to lookup the targer web part. + +Note that only WebPartMatch.Title is currently used to find the web part on the pages. +Id and WebpartType are reserverd for the future API enhancements. \ No newline at end of file diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/DeleteWebPartsDefinitionTests.cs b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/DeleteWebPartsDefinitionTests.cs new file mode 100644 index 000000000..2f1419c09 --- /dev/null +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/reference/sp-foundation-definitions/DeleteWebPartsDefinitionTests.cs @@ -0,0 +1,71 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using SPMeta2.BuiltInDefinitions; +using SPMeta2.Definitions; +using SPMeta2.Docs.ProvisionSamples.Base; +using SPMeta2.Docs.ProvisionSamples.Definitions; +using SPMeta2.Enumerations; +using SPMeta2.Syntax.Default; +using SubPointSolutions.Docs.Code.Enumerations; +using SubPointSolutions.Docs.Code.Metadata; +using System.Collections.Generic; + +namespace SPMeta2.Docs.ProvisionSamples.Provision.Definitions +{ + [TestClass] + [SampleMetadataTag(Name = BuiltInTagNames.SPRuntime, Value = BuiltInSPRuntimeTagValues.Foundation)] + + [SampleMetadataTag(Name = BuiltInTagNames.SampleCategory, Value = BuiltInSampleCategoryTagValues.WebPartPages)] + [SampleMetadataTag(Name = BuiltInTagNames.SampleM2Model, Value = BuiltInM2ModelTagValues.WebModel)] + + //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)] + public class DeleteWebPartsDefinitionTests : ProvisionTestBase + { + #region methods + + [TestMethod] + [TestCategory("Docs.DeleteWebPartsDefinition")] + + [SampleMetadata(Title = "Delete web part by Title", + Description = "" + )] + public void CanDeployDeleteWebPartsDefinition_ByTitle() + { + var webPartPage = new WebPartPageDefinition + { + Title = "M2 webparts", + FileName = "web-parts.aspx", + PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1 + }; + + // aiming to delete two web part with the following titles: + // 'My Tasks' + // 'My Projects' + var myWebPartDeletionDef = new DeleteWebPartsDefinition + { + WebParts = new List(new WebPartMatch[] { + new WebPartMatch { + Title = "My Tasks" + }, + new WebPartMatch { + Title = "My Projects" + } + }) + }; + + var model = SPMeta2Model.NewWebModel(web => + { + web.AddHostList(BuiltInListDefinitions.SitePages, list => + { + list.AddWebPartPage(webPartPage, page => + { + page.AddDeleteWebParts(myWebPartDeletionDef); + }); + }); + }); + + DeployModel(model); + } + + #endregion + } +} \ No newline at end of file From ef98de60ce30767d7f943386d924d8747b9258fb Mon Sep 17 00:00:00 2001 From: Support Date: Wed, 12 Oct 2016 21:40:51 +1100 Subject: [PATCH 16/27] + Add ResetRoleInheritanceDefinition documentation #910 + Add DeleteWebPartsDefinition documentation #909 + Add BreakRoleInheritanceDefinition documentation #901 --- .../SPMeta2.Containers.csproj | 5 +- .../1.8.1/BouncyCastle.Crypto.dll | Bin 0 -> 2236416 bytes .../SPMeta2.Dependencies.csproj | 1 + .../Code/Samples/m2Samples.cs | 1248 +++++++++-------- 4 files changed, 637 insertions(+), 617 deletions(-) create mode 100644 SPMeta2/SPMeta2.Dependencies/BouncyCastle/1.8.1/BouncyCastle.Crypto.dll diff --git a/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj b/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj index b82bf146c..0ace4553f 100644 --- a/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj +++ b/SPMeta2/SPMeta2.Containers/SPMeta2.Containers.csproj @@ -66,8 +66,9 @@ MinimumRecommendedRules.ruleset - - ..\..\packages\BouncyCastle.1.8.1\lib\BouncyCastle.Crypto.dll + + False + ..\SPMeta2.Dependencies\BouncyCastle\1.8.1\BouncyCastle.Crypto.dll diff --git a/SPMeta2/SPMeta2.Dependencies/BouncyCastle/1.8.1/BouncyCastle.Crypto.dll b/SPMeta2/SPMeta2.Dependencies/BouncyCastle/1.8.1/BouncyCastle.Crypto.dll new file mode 100644 index 0000000000000000000000000000000000000000..615297ca586aed0f59166ab9c209c935c6b95498 GIT binary patch literal 2236416 zcmeFad7NEEnKyoN?&*8GZ+C}u(sXwgk`9D$=p`#l2wOn*eGvpy7Fh&DF5a6)C)d-) zZA2stZlfYH7(oSxL_1cT;=e%_I+;c9yw6<~hMduIKCoUbn=+fasjz4+$rM2_UU(wrJ zU1m_9aA*`AGpiJxbL6W}wY5DI&0g9)s~km-EsdgKg&t7aS)Ydyk~+fYDBXAx`WZ%N zBOUP9KD;yAg=Qgwe|c!41mX9yc<1P3J^=68WJ37cuyfQC!e$a5j-pO4Unk;6c<~h* z&ws^6#1HwAX(QVzbmo~*7lGdIgyAUK?8T>g-1xH_?|k^fXWsPYGw=TBx&J-u3%@(;jjw(39e4lk`s;5# z;`J~4_q#Tncl1BJ>@A-vE&l4PC!YMzgC4)@>QkQH|Gr)CeYEdYC!AkB|2sJa1JT%|m%4_Qh!huxfd%QcjVtJkrnfQnVA&fvazl2;VUU!3*>J`ybi z{VM=6-RX{i#!W1qB;!4CT*DGXIb%#=)oqnZ3KFXilIgRsei373WT#ynT7#W! zX|1aWgCvE2<>)0Sg*y7`Aoa2oOe$CF|7ah(>+@$BXitA{{W=?&mrQ5HW- z6{1|-*0H?5x{W!sFCmC#&yG4!htViPv@h9p%eV$=%eCu?n7YTl3w7!%#cSiikY6pOXEi|pwf$q_v zaz()vW%A*`xV18PT6d*<^+jtRHne(rEjY-FBzg<*!bo6TLgR8-u0kYRjG9VP)zF&D z%){D!tZ-in5~}4|9l`kAxLljSL)uqDxg}(Qh3rnqut5Bhc}}MrM40B;Lmq-k(GP|p z4|kgZ4-@iFesQV4KOJEa))7Yt6fQg{jd$1M1eyg#S2x8aVMClqtKtrAN~mw-RH$3R zg<>CS4x4LpdoaAR_}JpIOCLlI!WvJ4O)>fs>75(d@WFI1h$KVThiNQpuicXnRLL>Ow;ixB!as(g-tRR7{*@whX89@q z67cVpjxQzH*pgT@r6$p5Lq|t+AWEWU*c}o(9`}#vlUg8**SQ5^24jJ!M@0)n{?LYD z)CVr2R}6^f7zj2P_HV(!K3Bn9Mf=Tw^c&k*SasM92rG00*Ojz>(}zs&puFD%+_0&k zEqop=*sj3l#U;J40U0@8R$ZX^Jn8y0wW0N!Z5J!Y(U%j%lp{XPDiLQTU`tm zQJ9ek2VfD|ns|1iO)T~=W(@5j`4+;2A=2j#2Mx4~L%Cff5-3yLWJzlv%U%YSmJDPv z#QH0kMr-sa*TbY`wr$Q|5iVog&*dtThM}~h-fCDsctccdeb2ayQ7 zS<=bF>s>4zhyi@)kiOe$ALp+f@a<#z+YT^q3@8dv5!Sduy-uP3g3<6c^+ z_T#RoJb%TU`bW_(>rb$A%Gis}xl#&I?_OZbOwdl#ZZOPwl0F0^jT6ZeGcFIrGCZj> z@aGCrPuLE}NH=7vv^80G|5LLDo-*qUzD`-Xe3&+n{KZIWa1e&E7X6)1I=aS!S*A78 z|KjKkvowEwZU@>f)8^I4UfWP3lj%=-!O( zT(%XhWArc=g%6a}FLu%Oj9%lS`!f1T7loBh>JPdohPk93S1e}qwxo^~BGV$6=cIm| zi*8_aql+HI=yfi7Fr)Xl=yMo-)J0(_l6rrq#e68E`?)AAWKuuRMPY=K`c*D^1f!pD z(IXjs&_$0zG_WaV-KecjA1&EMr*j*JS-j{c!(2ag?sxijG?0FQ`WEQ%@GV$@`W7c( z1a|Wyf{kyn7glD9-bv`sE0NU8=R(cUYeJtuh67lWWUxBA!gz4qm5EJk$LzS0%1Cl7 z(nos``wW_p9fw#MULe*RIeT04#lUW13NAcg81mqSGvGlmzd4&l*sgZ-o4H+31UtWB zGcdm)wHSj)rj+yhDYFDJZZdxe)589^;Tb(5al?f-d=rt3CoFAkXg+6YV;7H?sskOu zI*Ra*VaUJpXTZObtkKe{So^E4uvTVu3=2`vF~U^GupE@@7{NxzE<=se>zKvcrhO;0 zYaf<_q&V$Hlj$sVL_Sa_6eqCSl>5$6fep8$F74$y&Sz0wu;^p!C1*s4FfTdm6$$FqK zULRlq+Xvz%vyKh=ZUiAk#{kr@KYa`#tYcd{bTSGJR@c2AS?pwzYbo6onZx&V9$G?5 zjQ?yLeB@|!pSa>p_+jIc(ZeiA=Aow$w6*{`m7wAJ3YZQ>>`nepqdgG^#ItY*)}DU) zX_%6rpUyXOWEjfv@)^j{=RaE>@}I3C%%8imIXZXclWO){)bBnjE0CC*yH;fX zs0;LUjLk2pzF`e>FzL`4a9Ng%R2Ci4xu}1@>5^HcIK3+V_UXDxk=}%=GYq{+xqEca zk~T+t!=6rEGuk2U984dhul_vb8trBD3o)XnAzB$c9ZOm(zd$+oYZ(iS>=}l#pG1w% zWQ~{AhO%efgz21*eb4vTV=|V-($`wXvVg?=PRM45oseq}7%*jxc>6p~B3O6%Svz8E zo=juT0Df!gbh?98IY7)*Q+x;b?tqx}0GSfO2avY;{KT5J*hGdQKVLTkes)j~lun(& zLSatF6nP~Mvie}DXkZy&*9jbOPV=x%g2{=XRiFU9`}{C_3>L*t_>@&C>E|4#h>C;Wdu{(l7j zKY{=MivR2W4S!1MSI~<`O6lI@M;QA&Iy`^_SO7z?K!dggUarLt)GTY;;XmEjS znP!1x8GD-szt`Xb4PK(bnHoSXnX^yJbu*CBDfR}Yv)#airWJLQ!U}ax1xEV;KTm!z zz9QTvlXNmFHf^0rk0*9AI>it=bvu{+%8j>^xM_B*3baVSQd-Ie@8tCr(Vd0R3Ceen zIx*0|vJ-Y61fMmI30L|-M2#~qHc!-0Ls794CBT@C*9ECP4`^@rZ_ZnCA& z_S$s>6=mb`qhiaZ(AY3vZL5Q^kMI`@thNhUk9uP1D*_+uj3>Y!F_#QS>U&iS+ldY6 zQ*{$*<2Wfi5Fe>p8t*KdqGcHuN6H(yxLaFF4t-om5S_pvF26W^FM!-fx*S#LJS!Pk zlO#K>o>SipQ2o<{gVohdrK>L*pPh_#*Y71rNQg`6x7NUVpxbg@mKi-Q(FQ91(m?tF ztrqnr(dB^7r_4;f{qew-eIZ-LFrXMp>CU6vu-oah#n11qNO}*4>4DzS*_~ab`>!i4 zK6lQnuEEoKyDDpb-B|%-U|up>?n?$wo0pUZ`;sL~&U(>VW50py<4K#RbK&2X3 zS580Z=!+vLt1o`s($nE)5xkxr0o8)?!PY74=G2y9nm?+413x)P+g#?uf8Z<4hp&ldPWDZk;d9O z-@Lf<4B|Sw+BtYyPiJM#Bev?@u*1qM*iT&qlR$cyaq#rsa@S(8QHot~R+U4h$m9}) zi=-V&`*B*{Vi`RB&D8>)?sDai4iJFcc~?@aAefh_v)4Aga4OusSU- zUb(Dt^+f}#7grE~w>^VpBc9H#v&K3r<;E5=2%+satD@D>nrLmb2X>|Qg4V5z_K6OP z4vwA!YkMem3`hr>B)=tdw(O7YwCjBrEr70$f{4v*p71-jZRyQad4KGHz56g=r5Xm= zvgxtJ3*L#0>i45jaqU*5LQwT55KG5^T~0R$FZ_NbTZXcfge0Nw03|PqCt&WxurUn% zz}rby{m-mwin9~6`^Ny+FnMnFh1Y>!-J=UCwG|);yIFsN!Gl5DqsLmQN)0YZb$r{l zzRJYG;0~0x+*w-%*n?Pvei!+pXTN%*YN6E(n(vKAE`?J-5-Ceg`E zOL*QMUgA2P{4{?_w_8cL(JN0@pCwZYGWrO67C<%4?Aw0s3aZf zJuD~s0`s70cAg@_N>oA}8O0LFoEccwUsIqwLzol|^4-uT9|aPYrAR^;6!=n6~<2rOxG#+)Mho0;C8EdYj|RaazpL1PN8R_XawUio34?Cag%M<$fCH(#%g4zxXD&( zWU)3+BX+46H0N{lWNdz%uY;7#NdSKxB$l}p6{hiZbe(h|c8wc1^U&tCsAq69dRj8H z`8xbnd)rR;zSTze`e6cL0WliTd%J}}NA@A2;ke7L&mVGpm`RGe0LN%y;hv2wjdki2 zeRNiT?Y~^T9zKjC+bj3IcIEzg`{lmhuG~krU+xF(%3&#UdvyM=UAf!xas__D1Go4J z7Uu%+l@{ndDEPj7*V?$1y~wXU~o zAnv?&YnLp%iJt?HWzEACQC7H#9A_Q}9*kw?%%SuzYK`W%a-YL4w+vVcXkNq-Ld zWo3}cVq)lGQ~?u1AERJR44sVPGBNZr3cX-3uT(jnDJwjk2RKXUoMojs7ab`w$m{_OUfx`Kmj{fvfB1QcL zIL_@@xIb>O66W<`}KS~F!VkChkTx9wMPAIjH`uu zRC-z&Wwa+!cM*OPrd*_!xLpQ<4Htij8o``t&gfda`TH!!=Slx0TA_N`()KU5Yy0k| z?F`X&tYyjBYK9HLww<=evIfb<$4ypHdjWi}z?agB*;kGeE@6+M@gykSj6RwS>f_yb z9MVU)ZOMFn{0}@X(8tf?aiKnb0gsFH@m@Tde%NbpW08bzY08aw?K{4#0TDlwVJPcZ z77C}E579Qi0rf0vwKp;c_!7v$w&9mG_zD8uLm67Vt20B8URiV4WqtTH<&2qeww4C~ z23PNH4n$*mh2caG3+B0SSkNJ1fAxF;%cLiSDIshd=^zh1`${BYUs=*J)8EHpX>iFu4k_}SZQEq$N%u+Bq8oX8$4q+} zhV7j*gZ6er>rv0HVh>q?+QV5`hNC^)iSH~BY_=BpnnyYhXmg|ZeRgcxRdAeVDEneX zL90a+^MJxwQwlUM_){4(eST{Lsmm>G|9ZQ&kDInL4BNirjM~nz03!|NVXQz2?=ytU z`x*or>W_tG$fM>=>pS3-vkBT4n4WM*=bPLVpH>GjKHH4L>Z4ASYT4TObq*F zPS-Hn(&hT4yf?%GvNy?Gb|;c;znBfjFKGLp+0t(zuWS3~xsU#BftYorBe?+d9f6oV zVS#)X5Vc_ocvg9Vo{W78$2znBLQ;zjTV;61Fy!4XGvJ-i7g8MZg*1mSQXRrbcL-C0 z$)^**BicIM@0EEGD-&DC8f0EXv|B5fqmS=>qp#siv(I^@DMrv07_uZRtM+V z_H89{6Lanib7!I1_cK--eliUCIXVM=`g=P4=?azreeCBu26QTMiJ>CYQBofA)6$!W zUrK&@=a5*S9n)B-$TXoRk@tq$%)jKY(1R$1bC7$sIeerOEm=Us8iGI3+J>liSZK}X zNWah9HHNngL*A~L0dLiYrDB6gq1rI;H}}U0Ha3iYWUCF<^)z_Ru;Zj(=SX}~Y!~?0 z2sYT*fs5Ge+FYODV&fGTpA^>#7y;c(fnbBH^|UJWcs=A2$ds+IGL@AA5|pk(!(^p^ zC?#fJjR3#%^|G1F!RMn++Pb)jb)Cemu9ddxvYJ`TO5}dMJYVg%@}}BDC?b#8puU#7 z2=ENJ|JNQ>li6Jju%i0D8+9b%UZ)^^6at9b zzM3z#qQ$3q7&%&O{~oA<=O-D4{po-i^rtrS555SSX=Qf)i)x`CgsE23GCHj$*l6`w z+y3T{FBWebTlgb#Ajy8L%@mz*ye#_uyV0&QyEW@Wc950jAhS(k5Yg`TibO!PnO`18 z&H%=={cIY~66|T%$uMLmHjvaRKZ-KKA+Z2I^e>ftCfM%LsKnqr0eLS<>f}4eg+|dRlc<+(DyZ-`dvKqG4YB^P-gpx6`p% zw3qTzUP%v;eYYaKfzDeMKHq`d7^B+oIj6jLbd&PcQhuVxbexge8N7x3tB&K~=|HD; zZE%*Z1#&=|)$wm_TiKT=<8cEG7++S#TduQYrBG4@w!VqY^lkk{X2qf-vlcwO0*;UwS?vDHxgE|$0Y2`ev1$^c0^dM^4{TsX8Nz=Zvssj z>+yh)vm6ax99P6m7)WtdP+7?EbHOOm>?k2#f}ZInwH~k)=VLrP&$jrvfO9LFFOBly zEfgKen%QJO7fQ&BtYEMmZou6&Sp`KKj4;IjFl<|v~x?G{Zij6dmOyNV$mVsz(%nl{|!K>PZm~+ zUW)SYD*EEV?0;CY`8)g_@54(2L?mc3f;3^`UUKZTm@7mrywvTfRhay;Mk%5hyY0M1o zO3_iE56;5O=-XKlI(kHMOZtqQ$WPa9^re~Lb*QAxV%(`?C7e;6QTeeMk|a1c04IND zeR@F0;NMd#OW7Y7B-s-TIbX?bv@-P5XZplnM5qC1eb0M}xEfg4gOR=kRJ$JF(88BqbMT01~W@KBZ#p_T_ZCj@;Pun^ZlAu4c=sU@8vYJH6=2?)#WH+C18YP+R z;ZuoEy?lc2nM|(cQwN>`o$~J1xGvJ)WX!x}mMZb7!l#5!oqX!xQx~7ge8O1;Tsz7q zyfT+eF6UDZpHe>c@@aQI&F0expLW1g{Ulf(y=Mi}sbrFW>Kg&8oysG#cnQzIUg2PK z0mE3}t?4@2Th5@Ev1T5MV65q9kYw0tN9$=Pr@C`ehY&4g?wpi&Wd(sfcq8+v99Qd{ z=Ur3T;{%O7W*FMzcZfZH<@W6{sS9M-Bz+-FDdgC`JKEfZvD3SYl1OAtlO^SSS7yiJ z<^%8ml}GxXAd0&6LC-nG3!BzjskRH726L!%RPlYXAwY|AYqEGqFAIk-DcU-&9c1{( zFy!Nn!pC5(+0GqXWkq3Ho!El5b~_)#tnjbt(ubkd!}VJs9gTUfgywe@*i)psVvTbV zZkNDbaw+3EUaV|@%VV8-+2z=r`nQ3%?%~nPFEhLj3y$cxz9R*JpWW-vh#oqf=kfYQ zlZhcOH7DPRdk*jf<0%W|<0-R_?Ue6WVK^nI@fVP7M!d2&mQla>bL+q|i8&eWX|@o> z?5M_RN45w6ZIe$gvytBX9VuLn3YhL`@(H`=oSZ<9!h0Ffzi~{1yjaYjBU^$%e8yvx zEXOlF8=}&YB6dq&l$WKgsIkVO2PKRHwh&cYyn&AeX39DS!%!DLBDxswuw5UE)P(XP zJt0h*20m4yW6?Is(DQ1DM7$c7%!SD^1WRg-0L1+Yk4>A@0_(ldcsiZGjD$n4vN*&Et18>LwXY@p&P z^{1b4{k|mU8JM7bi|^T91}x@2qhzc!G&;+SCpgo>@nji;B->S}C+;M=N>O__q(AS3 zMTt#DtE?rNKXXf>_daQ@W;~Ml2ML%;S7p{Aq!q@>Cb5M4C!P?dt(ro|h(vUZC378P znSzeNbtY^o9ZNWulb^L`IKiHN2{O?+;&PM)pLb(`iy#?vWVm@aN-@ zeVdsf(#2N6Mj3X<{yucg%`scobxD^uO|$D$!MZNV_H)@OrL@CKNJW-xmdbL9wN=yJ z*0Jkur^9hHESvx@CJw_NF03*f!SWhzSk*TQ?qc?$POv?p{7HQXBjq8CbcZlyCUxgZ z&=ZU?tSnaA^ zzIHV|F3hi(f%7y$GsTn-wxG@4{z{Yt@f=4MIT_*!uVeGdmT_D*Hjv&9rO6~G^BrLG zO<+}0`Xob)TVI4H#20;dt5)NFcFX$a;h9? z0K!fl^__-b;z$sHPk_X@p;L{*cbpBG@+>W1WXv$_f|}|Wq*CBG2bZ-B zIdNnF9;LEKy{);d|C#2Q>UYv9Sw@FK^sse2c*w~z@KKL4>c=p2o3@GiJz7*hJ74nU z!Ip>eAoD_)a+3N<{SU?fBC%tDf8{a}iFIdbSoh!^gHnF)it5+`^%M3)Zukj%F-Wq# z8FXYgp{V}B@u;6a>mL~Ze-j{?mNY&U8K+3>9A9Pxg3sKUB{#GvYSHCz4fbbK@&0JT zdxjzJ9}(U!nzP;c0jUl7%tnVWQXImB9b&hz2QPibyZ4HSrOyzXtOF2*+Pj;w>kYb@;4r1A!7oUnCpSXfX>y(K>A|zi^gw-H76BW z<5|VFHhLeBZ2HD*OOLfl>us8^(^{ZtcQhmQcV~;E$$T)_63TYN2yHEMs;$*=VU^9V zbD;_JOUz#8ielhPmwZ>fPUqP_HivwVkbD zTSGl&8$%dd6T;Y*5GHI!J1TM&25pk(S+X+N9v;hO9maLEp8{YNzK6++qzNl{m>xD( zFP4mTy2TRtVg|=buD$SQ=9;2RDze$}kSfdu6vQ>ZX3EJJ)aM`uNp>)Uj_f%I*v6^u z1=JB*iy9kuGWA5T6l|OzEZ8`UJCN&fMy?D)xnlT(3-kE)1`U7do zcW792(B8qka+&Rff8yw0yodf%%+4yzh0S^9yU5yNW?bh|7D8<1V)9AoNS40XoBLtJ zlg`J`dzZYE^5MJWiCha4jLB?*89e9F%zQPsxL&|scP zRG~bHHG~Pv#on~o?;|8T(hBb{AC8x4(mpm16wr|L^Lb zKF#{VTtzyp&pK?e-i|wy zILYK=*qE#N%+x{#hekhP^&3HkcU4n6d#jD(IJnT#)g;W4A`zj7yKSW3?mxwvPpVy} z5vf}zMY!~fXv`|=ArO`=U$OP13xz4fiG4u%`8ap=FqpGBMWoAFoVx9w)nuhQP7`mS z6Q%4(B%{9{g+TQtiS9tn`#GOqJ^b#9`1jW#sRRGd#{YF!;g9)1nY7A$u?kr^1>pZV z_&>S`FU+K}634pmp%xR9D(jCzBD(mW?<1&KtZ^|Ma~RwVfs8KTS~k}z8F040#Nm#V?$4jw@b}6tQ~(H{}J}@s%%v zsO|*gq;yK~m0`|Toow$ae0|;a`ASMc+o+9TTZh5dVD8HTGX61_9qpL+Adxs_4LftP zkvYShHucTMgtlPc%yYPbhvUa`i_iGg{+`OQsM{)PcAPXpY(-1|lZ=VY66g;T!?r83 zDca5g(st&`+uo+%ACC;^_a{gV)3qm+yW}Oi(Fa?ooi6O*=>peVu(oB_Tb>I}7uH+W zxV(O!VNGG1mC7mF%mUJ8=9;$6Cn5vd43B|bU>X@}nMJdtTx)&{U&P)+pHB%(PkEqHZxb==9cvx<2av;TyUIEVUT2}BGC4?tR)olKUech zu?{Upy}zQp-pg77YqHBew9jMv+g@PII1d$Og1F#&OC1H@Td1^!_1L#&GP{v?0K28B z)z&}9lS#qWpK8RyFzojSu~7Za?b{@_GL#qF6v9Yw2vhEJOgImG4E#?bw*DtBszXRxteDe2dkIm&!WA`PP*7{x@`>pNA5b*}A@S8X%;-mA6Mb-Uc=m8wxUxG7Ncp zr0^E+QTgL&Xj9wRDIqM$lp6L~-&Qa&?byHq(r=h6?>BAy*wY0y>YLh+Hd%y6 zEk3#{AB&vXWn|nr&G3jJcvSFjPauzC{kk3eTWWaYM1?J8F~Ar$P7+>jDDu+!vT=To zW0OS4jJp4+lFD+__T4;f3{E67nhwgPkr9Q+DwXm#pVu&J?oYO~`;4jiX6F_rOIzL! znfb?bdFIa`&w`dbZDj0djpbehC!^Dij2MP``~sDS*fz+6VMAc`z+cGa@j4(Df4a#E zb%o=CSRzv1`OR2FPpBvOzXSd+!vEdze{=<0=0Bj9*8a#vBV1l|4v47zoDrlP%*Y`m zORe`v{TgV7eFvOXrn8tOW)}8m;^t3DDC)<{01s(BZ9BA9QD!dwbG|n^Y-qJ)S_&Di zB?axNv;HI27UWkd$-$uXr)(r3#W@WdmFpn+#GhNkcs`Ob&b@#^NA^MlXm{`pr}Ie* z@wSYaW>2II64XIF*CK4Q1|n|!Bh4`Bvbu^lseXP zrrZ;`P@9Z41b+G%;2q~b3`2dtKxFnvdt2k%VzxZA#nK>=UGD1$vBJkTdm=<)$3K5h zgotEhW9eYoMcOkAneZ1+Jl`~iq33s9%690w54yGd%(|nx?bLH)8b zQKuDwzCm^tAS2j1)f7eGr2sqi3iA@Jr@xe5=JCE|4j^cfOt4B>pRY^|`KmeTLtvSt z&AgIje8++7xr7xQ2k-bc@rC|^zi0ab!&8Q#g1kZ$WcoYb%JR-InPK{9oYdYA)^^NJ zW_P5Q14DKmNPvraK7%B?fI&z0Vg^`#yimf9>>`a%`~dv`Lt6F{$>yRLBZ@xFcdDL3 zUC=MQD?5OzLkD`3v09?9R8>X~?bEBb`Hqu{eQlqPetcuszV$TNGrGvc_?8u}@;5QO zW`%dIx`1RQI@|bdcq2-$>7Liw*NGz#=BDoQSb6eX64Wuap~F@^V5`P!rdo9}*q!70 z;S{(k78l+LpL`LKc8(8Dmhn)k!RnUBs^C)ka_|x9=P-TpZ2qfOLOqs*yGHQtqu@sXTfj?bR2K&T7))RzE$H?1QTs0i1NNsU_fc3?M1=t$W! zOB026>Uz7}`qePcBu&e21?R8dEpN}V0ut&X!Tm+9+yE$dsA zjY2V%S}9(CwtUsA=;N}XVgF|%Ll_$v!bo8VBV8ekBoJ1KeuNftPU5Y7lK`>3tX0;& zS(UZYag&vd9Tqpqo3UZn$E zPD|Wm6P<~ZS1)DU7)N{g8M__! zsUjw~9wy>BBc_-&?^5(~TTheKV1wWauth(tgQ_nBOi{^ED%YGA687{el-D>1*UprN zn07{fvCx1;!6xekE%)ZMNPDIvLe6uEPu(&PdKplOe>wI1(PR6D=hfz9)jVl#KbLZxdZz8NdvSU#Z#dR#s4@hBge&E(Tn=Xy>M@EYCN7J~X z-%g?OERajP7=|v!TZP`~TnzBAB;VAf4z7_XkFodUTgY7Ocu{sI+XeR})j9@`L%Z&#t2 z(x?C~3;ArNf$PX;2fZ=(0;ue)kkWSL$(GT1=)TgFiY~+v7-W{&4|%8Xu^~HJe-T<} z225!%P??4o$2m4Ev~84B2qPUKjExLoq$Pxr?ht0>T#2rO41%$bM9J7kN@VO~Rr%OQ zVthxNV;W%vN84MWBLRYs)S2NZZjyuo7K~+t6|m?P-i7|8JE{M~-obvmHv-_oqCn1ONc_lfFhong+NtZ{D_&ZcazLaER?_j5gJIt!zj(jOjf>+b^_*4Hb zqYLqbV}`gAlkolUr@JzYkE%s$IxEAoI&teuZ(MF1%}sv69G8b`*a)aLZg!wTzv6z( z*{1(9ME@tXv{wup?_mpLJw^x^XTb^!*IZiH6X7_@51*Pt8x<{HIA=s~*FMG_dIKQh z+VKQn4pEZt_F#-R*|qFEzwAelwR>Bk^hp95tkxd{qsp}d$RM&ymt!jK`)+I3MuRw& zKFg3NL9strnY3BA+9cwFypnvMxUdJME-$m`TEq}OIb}EVc;{i(BnIltupuCxIL8Qp zp*L^7k-QK0E0lmDy@FC`g8vY%YqNmuHNIEILg92?^l+7>OWURHS@ud~hq`7Al5CPe zNA@ZPFyNaJqD>vq2T-=n`i$I6O$>v0V_t4^ow$o_E*>Y5(#paRmx0pw)qY!E`rQhJnf{={%`f_-Ykpn|d4!5+E1L+Ly87T>2tT}|)x|0a5 zL?|z^$;r!`3$Q}5U#vy!AyHcidMgUV9=O}m&ex$XoYlrS*NQjyJTTGMGOcEWgrj#f@Z9ItK3^smg+6PGvgA$uLtMgN_BXye0w zOwCTghZmTf`|#IjNK?pPk`ThATHynIa{l7x>ydAKAslUTLY#Jen@kjhiJC=x$u_p& z4N?to>fN1(INOa+^sp<#PUG^<%w&UIOCo@I$Avr7t+z=svt+}C5;E;}mx{@4b=`53 zIONP_MLB&F__KAIOU2kmo$n7vE01q?r&#OW(!Y}DC|B$g=Ycjly$roR@tM3&|o-eh>c&^LO-;`*MwZq^k)+7CQ1Xw`!!k8=H3!8GEP`OQjIj5&hn^{2G%v^b!+w`le z1T}chF+h&k8Gkpp=VdoT+d(a9I*Z>Mh23FQJ%GSz;bu!Ct+Bv z^g~|{m^IV`mLp8>nLb>2%EI~{HJ_Bb?7QyvP=XD2|GkB~v=?yb!m*N-yRp*q^+|w? zl|*WXNcG}r-=_bj#x*G8`q@L2(whM>-W>0vH<#Bx$)vX+NqFM>5f>T$GxYfX9n1eD z-v@Nx`+IdbMkK;BmUK+@{0f#1c}ZXW z;8_vxyK?%Sy%iaC9P3_JMWQbG`}?guorhK-%?|t@#Q)v#AM+Wxm5LtGOY#4e`2QyS zzZU=3-H1Otym%V>!rOp;-EBVP?S$N5Adm5s%RdrwwLk{b1$=Yt9e|9!ib&)GJBx_v zorJw4E}JaxV)O;favVQ3a4n<9GWvcV!h1KP2e{~UjILz#FUsH~v9bb#%^2J8S7Iyyc`!M+z>Iyj+!pOrAMjnPRGBSjbn<0!W4PoSK2qSYt7?q5$!Z^-vXJ*$Ug$u9b z7sg%r!KVF_0f+D#rhvb93i#G3;P0CPe&ZDIo2G!je+u{qa(GAd&uG<=P>sTw)-sns z*!uJj&;qD6qHMK^4k60Mn&^D2bg+#kx&Wzcnu#t%DqCcti;&8OnCMQ3l716ij3~)A z(IxmuV3XuZ+*}V&LrQs7Vp%xu&2UoAO2O9r` zspGhNk2MvC_%@PbN9s&t_(UV2)RPt;o`|soDj87w)OnI;n8&xJtVHz`>mb_3CTr|} zYSzG0v()zb=YW_dpP@GA#C%*zDaY$J>pHBc-7w8U;V><2g}qRECTd1L4AD2f$oaW@ z@9}e39cgq^RPn@R%!p+_hK(M9rF{tW8Q9wP$B%;oV}D!rRz8uZ<@_Pg=g%x}zl>?{ zWt&nEAMv#1{r4gz58jJpsCyi=gv=@yMQBN)4}o5ctHw{kwd|Sky2UfeKVwa=gkvzr z-C_LaIt6{t(Iex^Kq~IVzX0{C87rE3=Gm1}f4(P|LKZ7Wpce`Xo z?ys+7_t{=(oZdut<91|IJt7VK8F9d`r#QTRHOKZVZ(mewmfS(TfmQ_P!SPj+Qbxkz z*ppzmk|dPNccd_$-I0+rUUzBh_H~gZgTCJ+nh-{uA&mG#80!jQwq7_Lp(!kmtcL^LmErji0zKquxQ@;v)+kOEzA2;)~((dSw>f2-E#tm1=1?e zW_N-*3?!z5y4VOd6f~{AqKj9q@dfexC`o-i^t1to-JBt4v2}uI3LELAg?>i5yQ>$n zm?bty_|s$|HQuEoI`0D0v} z1L#+lF*|DOnG&(GtuU}2c57`2~8+omVqIUfrKuE98 zkBx>O3`2g5&wwATYj!JG3R0)MoPJHN#!aK8#_upePSVwqqpc4lL?@Y28rlsehIS)w z(=h6!Z?EeLaO>kH3kctsE9YCOGMnFU#aZ^{TJX&*&;NAyPEg8_3sjPFE@9pzu0K%;4Vnz7;f6=+x` zv|rv;j}^6shmbK}L6!cUV|wo3s|wXmF^Y%sHE9Xk=j-z2Mwc0ey1XyBwjCSZs>}O% zyoR-vpPe@-u}LP>b!0+Pk>6}h$ZzHjVcHsweOO^`^*x%z#)9s z2WB-EY!)QhM|mde7$;ZrW-s>N#5F&-?0cw?=2vDWO_?P9Co06saXF<)$nHbT*`wp> zjeH#t^1_!Ps1YZEVJO4r%t(eopD1M{1CFQG*0$f2lsG?+Z|8|1lo?wS!fbmg(M4_L zNIZqZjgTW@z8psfeJ_!>WJMNimzIT(7->8o1dayXhV0wO9yj?Hb}c~``Xh81 zsM7pDn#Pkj$dP20R?~R0gQuY$y6f%T7MX9V`b@YtnIUfY_ zXZqcMHpinEX>G=mLCsgvRsbi;R=AQ%c%Fi1{E7e1 zv#KPM;YfY2>J;Y;*CGE9?G272Jy~)SL>UFDrSZ=4gd!@-M&n3XKG9HH%Hy@qXJaYr zTqphs6V|wNaeB!phT!w?CwqVlL>N#r9XKRKgXQfK8GWfdm3M?G{sS;lFIKRa9vvHTw!73<;m}nNAcj=^5lbjs+R{LEU!Zg zmvnj|d>k}o2O2K|y3H&;sE<-!@|=PF0{-gDflSv9w;^BsU>E%Xqi4J5LyS(k=noma z!9^ct^s_GdBSs%|(H}GVgp2-!(f%P@?<0)v<)S}j^fVX!8KawA^yiFT=c2!0^s_Gd zOGY1Z(MK7L=i7>Y#pp5@{WYV9x#({gz0gG;WAsWF{Vk&(cG1U+ssCL}{T-qrbFVME z_0M*&a`Zb``QxBRX*WK>xA}j7K%ai^p8mi(zD5dmfZ|l^FI`|ByUX>Sh32{bA^TLB z{Qizm{CiV=(XUgMd8J_e<2Fa_`Aeg6rSX#axKDJF^-Pi@UGi1Gzi~z6rm5(JMXp7^ zvX5xdl{?uM?Y7uFP1&M*Y>w6zQK+V(bC$S@p0baq=-tD%qIFB#S9FMl*N?DItrbxr z{-0Dtz0`^(sU`KFfF==~$W37jcLt12_h2Uy#=;)#4TMn^9_((y*cydV>jb@2+W7Une5@T^w@F4e$%E# z!wot}>wY8@KN)8y%{a?2bO&C>LiMM?2>)f1Wn3uYcyyAYvA$HPaR%~dPm&;WS?Qnn z+@bI%_>8SF$@E8wbm#?bf0jsDQ~rX8*rt{{z-9Sk(TX|sy>}^I?{8)qdXz}2x93#F zJrW}9SqFg#DdwUGEhY4na2OdQszQXQ(n1d+loiKrBC5TRTq?qet{t4jS-5@=f@=(m zwqS(iAv=5@2N`6Ifkex_Ypg=`vaRKXagzk)>kzH;&6iIl^H&*}GYn<^ zis@wTt-;BfnejTOk%=5yeF}uS$(mdR^E4pRuZE#RwZd~e!`i-BU zqY>sJW?aJC>dA0~=}G<7&=wt8e!Z)Gded_A)OZb=yE%55pGa+%^GEGdJXXkDa+zPc z!e)73m3?~o>O$rOnI}ohB;AHdR-|@DVDud(iO+-4MVMqUg|S8TAFqYYBLWXLum@m7 z;K7a{j0gl)v|Fsu*ojwD?BILBZn2`;26XKl7GU=7rBI>#7-_Ds2ukQ8dO2$`24X+=r2+=j0EVsr=M<~7rZ<9I@4Df zhJE$z(pMJ%wdV&Gwio2SgwvpL$3u_vzUhCng>T_^j}Dm~W%YRU9e{_he7oH296!`% z=NLVCDchm%0W6G`9q8O+RdW2LKf2V!^7=P{WP4;lPdy1DlmCcm@|W(zs}ym15IRXZ z503o!och~!WRqij+J#T!d|Jk*6@1#2Pb>MfoKLWP$>!bgq+_v% ze=42$d!rK!L!Ee!=)_ag=>%;XrWNwbW#a3^0nmv-`yHQW@I^4u8@0hH8e|Vy4O%Bt z)9EW@yK94~9~k$P7JRShpL9r(@oc$;t51tjiXC>uqT^d=EjfaUi$ zlMQROvT-jDifjxO+HcXxln%bb`39qN3`3o}Np$W`G;T^eRIqhT5)jHJZ+{!vus|*w zW-ZEwkhZcZwBZWV28Ll9J|t}z+k2We@a~kq)|UPh=(l4_$HA}E#qS#V`)RqzxZRt*B9Hk>zZK)0H4>+m%Lc3`4nnO5}F` zbaJCD#1JRHscqqq9jBhj_vYkVKP%8&J2Iso;F+kEfV9jhblr)*I|gXdRJAmfFbDb! z+o64JZwq(h)yO`%j5Db&Y20Ef(ifj(*-eobZ6vd+jl?)5KYaBFuo~Y?hwtd$`NHxT zNtz60#*0(XN-NGQ$vEe|heO2DFJ&S_l(}UUM1_eAA%SJ3T`Ba>HyJrI4CVaqBIg6Z zh$+VgzPI|1pmS;;Rs4|^GyX8C=Vq)1`Eiqf<-OPTj_#L1<8;Ouyi~hm?TSp4uqOxkNb+FFj zysya&p)bVTAxw%wcPjGzM%aYn*=4~qwo87lga3bpF z*m&R9{~F1My3rQzf{?#lhrfnq+3{U!fEFmCqMc{up{#Abw%;*f0bze`wwZryQ7-$q zNr=f*dlb{*{5*6V!B>;t`Gkwilga(~w4P7<^9eVhCzA*8 zX+J(4$fy1Jw1H0t@aZ5v9muDH`Luyg&*9TSd^&_r2lENXlakHP!Bc%3nIx-Vhaf6E z_WZ%A=D+`7bc$i9Q{NJu>fd)eI(12;zg%9v&7tWWdWPdodLiEnJrvEbK85gKZnVh` zW9!&ALOm%rU}WUY2`QO0j-h)X*`Ze+FPcmb{Q>5y@mdGv!$Ei4p1*Y8 zo59G!`28S|)g?#k_$_Gd_-vs;PH`{H;Z&#$<_|3#A#&1?Y`^+$u z{SQUf~|50en6!O8lo#pIk zq>F7Y%I6o;$|v66lMicvd=ybpK1>SbWAn9@4+{kHVg90g2x%{$SiZ}~(L>H@yw%8u zA>?xh{8PTr$guGk8yKhmgP`$SZ7g+kDGTG5k3EaMwl;3U;FBFAty0~E$&g?B{F;?I z-kNWfhc`QxC|Um!i?2x#=Zy?&ex zPz3yChS1K~y4v!V1%$WEH6?Gc@FDh{VaVH3LjAuOWKOI9e=FXe1iFj7J=yRemXAOe z<$0&$CVBgii-EU-$naKC1iWR2khiw3w!CEl;VpAb$=i1r-ZBh%+aoZfGNgKNk2tc1AZ09&Tf(q0T8~5g1|5DTNfN?^*k=A@5*Xqvq__ZHN@HL;cRVp zj&rJg1If|q-)hxsllv})^(=VBb&y&A8fn#1iMMm>+U@T*5LKJ~27-OR*xzq(MXX=k zA$NbCDt$N1bDg5iz7=cFr|B$F+_xemSY6d|VX=x- zeT;V+J!WX%xt^=S;ydCmnH5FPV|&~<6x!AqERE}{<@3tx{(_qO%tiXGt8MctefqUX zzB$Rwu#e*Zy3gQGMb3crbjmz!Ugzk1d@KQPBUI&v!QL)$rcz!|x*Q2BkubguUqmpA zY+Zd_SY+#}L6xfy#+})z;LGUcijpgE7U@DCseI8v?uA?mf5oAFa4NKYN%lPA;uAC3XepOGP)GShL%39sX_0a!;Q<>G_jEgJdRa%)TXoe*}j z;SFftEAYp3Gyi~uqDSYvmvtWmg6*-2D_H8sc`3hh`czO~wU72mpCU%>NhHMeB!c~( zL`|@BS63wOqX(l^P%rFNu`b0&5*B$@Yn32NgLD&I~`3bI0`c5$<6>+hqj^BSXR|r?X;L20eL>sbqovk z)E232W53wYLi?!)*|Cj&#-xkE&k#Bisn@$zP^uxWRzGQ`xYl;u_nxqST#K6P*bBG4 zs>2(+v}HyAoWzAb4mm_vhkUR4bkTQ~)iH@rs`;#(nm@$db%Is%(>=i`tMo3noK)g? zbOLxs{r2|$NCXPtqhG{L+nJ9}L{OXr3rfx8FCvqd$6LAZY{<1nM;Ss#MP)GuX4qIp zS;iB$!xoH{8@q_crr_EX8q0a4eV*(&H8G5X2Y;L(5i z4C;7(&Lu+(7>aDE53^yoEu_*{5bbq)vddH3J_XVK` z@>5;t80+sam3DiTmhhdKlIUalDchU`Fx63ou}vL-b$Eu9Z880$;5S}pbeEy^8*u`W z6NjP>kZ+-FVnrcLE8^Hm>9mfW#8Vg*p%{euLtWe?=0Yy$2VuorA|UURLW9_OB+Soc zwTSHr)=gntPt@fZN`hxuYRU`L^@o)2(2g#m)W_1kk_7# z5}N^wCYe4}A&LI4b{zEMP>X+a##pe{N z+IgTGaG5n?BF&i=(sBDdheT@D3b z53i$(&N2kg3v0>PM+MI>o1W(_V`nM5KpDdR(Tg_lhp7eEm{UQCc(Kh|pgk<;V>cLj z8HPG?gwT8c^z`a|^&r8{d&DSuCyy7_Z=KDHvA7qOzqzhj=9EL;WqUE&Y1dKQnbuUc zA1+iDpq*{*=$6%X7G@tRG@Ox@WZIjK9I zKCn>kc`<8IjRi!?*-=y-(5eRY)2mYlpjF|nOpxum^g!#0DL1r zyQ(T+Z#;PksL3wEpV5W>y*)Zo$x=BJTazdlVNG^1(p5U;)r;&sgj$}fTq>uRAd}MW z%?J8%DEwq?6nR-ioA`@)_O2bgzm(+gIGk6H7g|$+eHF?RArSLwA)%=I%%Ju)mpPl0 zeoOCi@MW$oAn#uZ8e8oJaS1o&%Z}rPgLX`_BKI_fRf!S`w@e0nLJ#1g$`E49tBK)w zGDoeRcB)vmwT zyK9Qm0!ho26$ zP)y_}Rvi5iQ10twX`%G09UXsHmJBMmdd^DRBjo_&`JeIDu zHijs38^f$cg(0Md5N4?MJ1;bD;UL<<4X?uEcj-^-ULC-`loWNx*yatM`z;hcf zNtYo>W!=Wc^W;nPH!fCfXUc%e~gV3#9XQT}vhf zI&bHbVzq0@GH)l?VD*=gU2efT#dyK0b6K)TQI>>kUzRv%DSez_D9Z~)mOuM{Cd-$B z;wfZVN7D4NWZ_(vXNoKdQ?B3O%aUNj^}{_`y4-DLNeWb!d}HFm~J8rEX4rzdPD^+Kb^Km}gh;$iy<`wFO zM=E`k#nlgMNtbV_G83WLMP)HWEF~(-W7wt)8#~ z)e}Co(G!B(=!wfcou07jTu)e}s3(N9(UUkjW0o?f{t0M+p01og-uiSGedVMsIV`CZi9z=qnkm9$_(OjIMLhNk%Vr(N{5gor`W}^lL8q zYDO{fGEI05qkFjMYZ<-JMPJA0buRjPM(=aczh^W#%A$G$qw8Gs3Pvw+(Kj-BgNt6t z=$BmdO^BND+>OKToN63xGd_NxXGtVxl%ip^8^2t zTqaz7(VFjz9dT!wTIj`lz>{c~V5Cj)?pbY;hWus-9c%nK9jlPi!c*t>>!-&`{PY;d z>0QCs;5-cx%i0PtG=2)w?E(w(l7?Y~{KXSD8(A>)WbtY%izL5S+4Gx*wsYS__EuEv zR#IeU{5C*@S8n~=&TZvuCQ=~DB$v|2g;oCICevE^<9%1+9|_|h5B3hi_{W32)4}rZPrS>)^6yVv>tOl!C*JK~ z`FAg_bFk|`pMDGDJ%sU(SMT+RihekLwC!^rGID0<$@z^|&K=Q@!HaXeK6e8UPv7VG zP7D^(xJ|v>e2Z7#Qe)8oF7xyE=5XEGm*E=U{bK=~u zh)b^mz&vlE`es{^IMBmh%csstr(Vyr8Tqz$4xZN2sRh^kK=g1gkv__qKAX3<04Zgp z8p|%k8KcWfy<&SyvZg{bg%YaQ=6j-owTPobTj8OS`Hp?hyfn0?qqJns>P7V%AowM7 z#E#W*T;#I!5Vy7|_51HeISv+ep-JLtcRZUc+zDZ1EMbZ47rjV)6t-9n>QwdnoIRbG zBC;ZI6Cc%)has@G@k_kg0Vxv4*kDDM4J0!m_16K}PB!nehwt%m6t z&)E2IqP6h0_J;+<{xD~5e}XkkERqQ+3`0NqU8HAw-yu%;?phl@&1mUTI_LXAU%_PS zn%M^cMw?@~l$;e9Ibi%Po-;iO@^Cw#g3Np*Gr>re37S9;nMw69xAn}Y100L#nAmoV zV`1SdOUTlcWiDu>j-4XhAYZXJe5>Iv!<@e|pf}!2{sz|t-!K!N=ldkQRiV!IFQYeN zZcx9TIFuI54Wo0}r_312Jw)7(90Sbl0fwW?!F>62it_yyGN%Z-nV`1cXwZ6f+-%uz z{UD1mEx$*YD^FZB+szs zt)VEsRGn7qp9LSvdQA{q6L3Q@;K+c`A2+3C_B+*`(d>a}ZW&vbtk?c1zYQj0%Fl)E zA%dK4&_+~ab7745P)H$dGUF3le}Kg`@lm4)3?XzFA|8}a-;E9K#s@^`n|H7iR{5;< z_V>E~8C4lMx6BuD({(x13`HB9!<=8&BrK=-AWJj#_hW`^hPnRgePjTH~ zlZRM%t)>IGm3$W%Un8@*-Q83j;r`{ofPVi~M4tVNR4H}xT+fBhCMC5)(Y=ONch`?V zXVWnacYnVc4qdf0)>W3(x$e;gdXfwd=H$QOLjrI{>4S3RtvenVtoW6%T>+m5hDv@8 z@;T5g9HJH7Vi@`bcg#e$TE06h2670tmZmQJzLN17@X<2M7vEP`ApNg=oFGh4ieI)n zczBV>&B1ZJYb|;iBVTP{zcu<(+6CAbUn)H#>j`%8r4>k@-p zzsVwjzgw`6pEP`DnDbrzg)h&9@2&R*f04zY2kbBV!4>9c6t=;4)#yV!<#7>w}&<+AWI`*$XdRn%?cSHtPIWp@%fAR}}o9GuPgeX>_! zPp3uQ*@C*$qV8-#-8lv7y*<>uU0S|3?#j!L2xVPiapk4o*V*vU4`ACu7`dSRauMXg zpUx|Aj({lOb1(-sjHNKoPqrVwnYlQQ5Ml<5xJe{q-uX#|3^o!u<1Ul>xXCJtI0y*` z9oi7P?l<`;GK7oJ{{|Qs(qfB0W%QU~sK?)!i5{1t?}I-t33Sz+?U|9%uESf;&_MD1 z_*pFTy{X(OxztYIWKe%V>)DnpS02;LsfhIxi}H3x)k330exWg&<9qFV`;1aYC+7ZKf8cp z{+#~!`8za!zsv9IDl>+9$y!1fs|;bb{>})ik!}1+;vQR;`-FoS%Lr3T?E8)QN*(hC z=Q9Z_<{}mT*N_JB;Y`B(T%$e~q?1ZN-JbGn(NQ|%^hFtlI{M(ubo5r((@O#!UHHG7 zn;oT-BfJU4#Rg1Z=zC}+oMFYCgQ-l&zKbTenQqzn(0{q)(17zr3L0>oH$8xSG~oYD zC=EErVeJmzV-gIw94cf1*&BF}(3u->Oh2bV{S7;q@FAN4YTtkZwUo!9_l>T+8t|5( z#n>x%p2p7m$VDt;%2qI0=Dh?$&hSgLWCOoMOX{@mRwB5YZTbR{74#c(EW!$!>AC!@ z&{=R+S2WIqxMWgMH1LFIFLRklVi5-+fq^fsZD^~CFw#srp!1BEQrDZLRp%M|LR4;^ zL9m%;aCo=#442!RXB-2bT`IWPu<^>kmXm>rpD=Q$32>+hHmG@)*P?d0iMmKPIYPSQ z=t1;R{w6tAh2z(M0Hz7SChF&1La>SY1(y(PqTcHgg4>$E=n}5P^vJu2`%5n2nqtD2 zUBW*W6TadSt}7;d)g^2#CVb5$+)_;VPnU38G2uR!aCn`DQ#f1A^!k3B(-*5@{ z7Zbke5*{cfe9I*~Tuk`3OZY`G;X6nO)(Y`Ph!}Q;Fzki3!bilgKjXE+@3R*5bK0*J zYKEc?=CFLuK$u-Cj3a!{N`Cdn(J0-^+{T9TPpGOtU;_Vy2@kmvfvWzH3H%e5c-SQb zTK^-L5TN?8O9-_7CoUn-`bS(sp!Gj>34zxC%q0X`|8tiRX#Fo-LZJ1(bP0jh(}z`- z1X}+qmk?em6Ld(i*mVDERZ-#gex9qbPdcDsW;;b8YT*dHD2YYz4# zU`0FZ(Fr$Pe(}V=nf}Qzbi5vy{`mk#A4C7yP${ES9~6X}{S zKcg|r!SXX2v4g!Ib!cBGIoK@@mN?k04%XpdpK!1;VD;M(RdOrL!awzgU6xJ<`-Ovb zIoRV4hL5|OvVV54ZU-x$V9D)qusIIa3s`*!(ap1&%0Kn}5Y_z+;p7g49mgzln1z4p zmld=05%x;Jv@vrT{jiJ9V=?~mMA1(e|J1*Re9F!p9qii8$R#v+7TDLkwfwaKdW=RarAkZ9Uu* zl=U&pI~h*%4OEU9LsHKKCW89aQ!QGS<*$))e%QYeV{OOyC$nu`rF183cnzdn_c3W$ zpOhaqM=V&{g!k+ep1zk&#;*8XcoJH4hJtR76JDQ<5Lvq2(HI zT2i)&ow7E*{z)(()^rgrO3-f4sO%%{%KG26zQ@>nhM~=$Lu%>+C)qvj)|VzZ_R${m zXUEBGH?YU;gvkfBQ-KWX5i73HX1fC-eDnH9lLe{oK8!^}m=-SNb7OuQU%2Q)j6Uh2k23ma7kz@!r(85S8PPwu=p06$ zcF{$QV(2zaNE!X3jT#AM^Kcuzbwl)4|R_J9IGH%fZfc zu)Q7ZJO^9nV7b4r4`ITCO}J>mo9VA-0{?_Fv3*@aFcaI)B?L3E{ar#Z6Fa~q1T(P% zT|zJu+u#y{nb<)t;bOGcYsbMZpl1m6s;gjzMRiGu$MS}KW+?gT2`U4Ai=M{lEiQ^#7%t>?(K8SY#tJts_~WHqs*&>gC73|5X9pR&kEhD%OTl6; zC)&6aR0=}7vpN);uR+RrD|1VW)Wo)WwzWyj0l(V9SYMd09gNKi^X0JI$0DqT?VND^ zREaFoXkisOYYZG_ue-Z~#cehK>$12NM;>sPo2c_QkXSfe5GSm#AZ`!46n!eyk(E>F z$QO-{Fbs8M^74PLP^LIU+HVuaRpJ4xR(9EFBv^z2tATLUflV@u(5t7dgRN9%m{g}t)Y#vYc=RM z!nG!oq$lv~U@5v54LHKJRnK#FkJijr7R|kiY(GwKve8^dp^rC=|D)qEE;O3OR-X^7 zqx&!lV_nWJV0460p8LsO%;-Wnm#p7H3HKMx#~a^hKi=5eHC8s4EJC>U&Z6cOZV3#v z>#t}xNJhvD(h|Z*5Mfi@4@5kn2_eikA#szK3%OvE2rK4dU4>jQScLhx?9Q?3JB~uh zuRiw_J3wB90`+w+dNHDt0t<%em$-yrn7+g%1jF=8T|(f@UFs47XAYl&H(>^sULvcnAfrZRvw ze3=N+b{J$4&_NMgScO4UL?muTE8+I(6#Qsj5>ON;;S_RjAtn~Qf9)KQ3auLp z#cU@#8J^p|+w{dBrEoK{YTn*q^s_pnHT~>+89~tm{VY?3a%b}^itU*Fnzt~^1W7N( zs41~Q3nr|E*tF`yUN;eMziW6)H{|Uh|6AUk=ks<1RD!qb;IRC;%=gdsNkUehkWlv(K4uo0wtAxQrM_ zx_~>dm$gR?2043KBsP{9GMg0!Si2Y_6(nl)KHfA#+I-s@!>bSJ9W*()ig$$l&6R6m z<$FKmCjJhEN3DEUuI(9K5ml~gFO0nf$*x?xY)knlTvsmQb*v@oiDXq|WHmUpxMO1p zH^%Xb8}XwIGn|dAzheX0y`HF4&qSG$t;cNjC~};-XSRdY*8o;u4rXYm@;R}&>G<#z zt*Y^Q>tQ1obi=lF8WT-Dhky}MeyWG4w;uD`Rue@*+ZvM+O`^9rgl#hNM9u0YTo7&0 z1bU09!ggizYuT=tAZb^O8n!FKCTLfup|oYn1KZUjhJSRyzeh11!fKFgvl&@S{+Y4T z5*;hy+zCe}*pZBZMjzi&K7*0qnGdi@QRNeg8bG;E?}sFRf8+D_0v3My@jN+~r{3gk zC6U1atwx-aB1+xOgbgk9B*t_(%Ra+Cw{pN|=S z(hd1}{`B}cnBpf!E*FCs@az&g`R1i`FkgI!xcTN~a3OyMH&Bko-VRVUm!Fxdp6BSy zXRsp9J0Q#)$6cjn&uwj=+8a337xgqRViwp3CTeqpGX00zzHJPb-ZxJ)H<-5DuOtzURf^>Ui?2y+;qPHh6vcCzh~Ih(}>oe?$$!TG?v_C3s$x zdvmE1y?fh!s;T`g|Dc@13Q zA5LxSc+%{(HnJ<@VL@Ss2|J_S6q{w6bVo$29PL}NBCx58ElYCD_KoY1gaT6+E0+7l zcr#4J?djGYMjT=tldjCrK7O3`p^0SpM@EL}hBAEPbY$3<2XZBp2XZ-tkuxDo3WECb z@kwz+KHi49pnQ1U9WxX8U=GsV5p5zUL>LMRVZNY54Q7#wg`KbA46wbH>f>a-lM z{n+r8Zphc$r^DAMvrSrV$KD6Bn(xOyi0}vKNo9JZAi)hGt%Cn~cG9NF@jGg*-n@Mq;E^#Tt1~$&4S1X-UGd7|9Cdg;|6!W)Q+G zZ;F{u8W~EDyNFwgC*v(l9UJ6GN+i%NGnOwBQG@xXVnJ{S^J68ailPQ-b7L_Ql}e1k z8eyr#lZ?e!9neuN?zX`aW}$gKg0aU`zHeYu$VToJ&xek7sH~zBh#+KJNc21Ns~^u- z@zQWcweXhnA|{l15o7xEB4@W=$Bs^R2HuD$@s-Yd6TKgE-Vf1xpYz^K@6Vj~7JC2Y zyc_AAb+pBNE4@pc_rvtQ+IerI_Y~*-2)$#@`%!wYbKZ}^tNOsxW6o}!m3wVQIaeC} z85Bc%G?*<6Ml?pSfxs|TERK9pw8KBKA8&%2`u{g|DVNFL4&v_eXHUOM6TCxF87n`b%2u+zMg!~j=IzDt^%7sr#M1_MLBD>mx>t${PJ zJ1_y51qH@v`WQ(;4vT>R=0AWm{6(Wb$3Gq{q$~GR>G|ykD2==)(W67gL(22C4GbOA zCy@_2rn~6mn|H$z{vD;+r1&>)l6(EWhiny>)jcw76|{Ek`8HUzHHT0>NkqseCJkXi z9{Awd-Wr72v1-fn@kB1NOpLPL%p_K*QBJmj-E4VBe_{AaHyj8&JXKQ{TwFuu&))m? zDP(75y!mN*a?Q`s$u~a>Cp$O`cb?#beHr1HE_{&+N+u6d@43vof$uGBcji7iAE%CU z*PV|Xn*z60AhR~f&{lzL&SV~TwAyD!t9h*NN)Hdirpr2;e)>b+#_LL_#K;=_p~fmdvK8pOeK zC3H31o-1KHB@ewhERlfX4Q5h5(+%~=Z>FI~a>Cc7 zuT?2)(TAD$286}Q!5~O;Io@-%RU=L`Wnlj$P_J!mC3wI-$jG+4RwN6JsYeK*F)Nk) z$iFBz1?ga$nq0~|+wqw|uVon7NQavZ;p`erINOHkwFc8mH$88-FA|?IX^3WmV&cLM zwd@WO z!ON4Tap8}Q@dUSNODo%q!miDjV{%LPXIhAX@HkIh0Cry>n4dw2|X~>{|aDB2dO8W+G$$*y^{29=aht8J;zWCz(cx9K6!DEJL8LQl2cMj%M%mHHuctwk&bY zR9s@QEw_+Sji-oE=V=*XVAyvnvI*KJ6G;1Htb})|JqxC-O(Y*apPw>(rW^9PZCZRj zF4f-L;U0O@=Ifx*vNKuGZr%s58CH4*X^u*zS89F(;Y%X9!&$${*TEp4rXcq&c@?x# zUiZP+biO`h0_8RLCh~`SUjPg5iS^S6Dbl8nLHuA0K!h>|AQm|TY+Em`g#jqJg?ea# z-<}yJ!=_f_f<1*Y&^G!z{2R(fLl_$HGpwFjQ&!LasvXF_-~R-Kw&L_I?r#Dj?V#V% zXKd$s_E{2`v(FM$<%(m7M6-ElyXPGScs{e#yv_z%#1XG53LaCoXPcVV-jj&Spw99@hyLFNWKR2>vQZE#W}6vl zyP1EMYulR2SutROMyWam+ik>J$$XUy7|s_I?SnvDgtu6gLECrWB|lr(S>>F%&}HPA z6lq*H{=lh0JFX;#4m`$h-g!0&8pBtv7FJIj)bJ=ZM*{`4F%fiQ^pv=2FKJ$ZURBGfMHu=srmX zJz}DOUcc`k&almDOpgD?%_--JED0}}GT|lDq!+jeam>=Gx$vsBZvH-E+j}X#hi}r9 zd&O%8(k}?A)c8mcvK=L3$v+yULN`<@OTp2}l?wTsv;(5I^6s|}5@Op&OS?29i2fsn zME^yZg+;bLoE5#5q9E%JzeJSyA?N)Sz0W)Euj$=;vP5^S(guEzbLQdcWno z|DgA2=Y5gh?&B@yf6}|7^Ro5FCpz!H=)J^wU#9mC=gr_8bNs0D&Y<^2=Z)xHe1gp= zOYgzXo1^!w&YP$AR_86y`;hY%>3!aLOZ0AjqQ%@s?}5(SPVcDmmg)VF^LEhtfb(|J z`>gZMq<7&-7V~EGzQ%cH(R+^bcF}vI^UkLC0q5Js&eHFbAI`0nj&Uk}OyCc1?a^9Wj zeUtOQPcHUj--RzAP)o%3e>%61J=>3%Q?n&=&op&#K7oKiW?M?6D z&btr2mpkvi@Q#u2^{?g^Xi*eZ!F{1xyRc9w`Y%@(RtPYT>i|Q?9XN(K-bywFU%5c>gYocH4sit4=sq6Pj-xBh)h82a&Fsi~;NZt5W7_Wlj@hFoBzQ zIUvMsrtd_#)f1jJOfNs^tbwEia2Xbn7_%(VW0xhkXU43N36bfsAu)wx!vvPtCx}_b zIn@tvtd27B?G&)VoEh2$jBDT2v32|dR^Vc8B19~nh2*cTEz?oZ^QQ{H|1=$ze=XM1 zjGdfks7aZurIDOuV9LbdS{h*!tfgf$%M2B|DFX8qU5VbCwLjTRll42!HZ1eB@)?N8UA{akiS0{V=T_a==yUp ze~$u@YrV?D+fpwRz0)B0QgbOn?D*eX*CSF3wp)yZH_6!i8Pg=`hGX*srm6-hr#s`O z?Q`rTWZFC)|Dv&z`FVnTp2E))@lS02u;$Cpu8V4X6E|<;Wi!_z)*RP{qp5IX56Nl% zPBU|%cI!jPxH|jKG_R0U+>UL%B)8V*yd=3+j^ERb*0hzhChkYknc?u&ght5LIXMMjjI)}`hMl2yq}gc*vnEf*_aBF<>X)zq z$qAyVHoa$!u+p{t$Ki}lJZbwr){#y{7MP2lMkn8VJsntH-XLzi`9^UI&C|s#HrI+< zYMudC`lH_<@2PDFSSsy2%gRQ|a3w8Wi7@7aWSv!svKuH|H>5<`ZNdpyXwJ^p-NOl3 zijZ9pf~7>+g&|l9m|YZtO?kb(y+Ou>@=7j-FtRj+k<<`IIzt$V3}K`&gb8_&gCBD9>dUWEOA5~W;z6DWrP2yV^ zRgX!0i=yhWiBES`u`M{;JkKHi)kr7ZP?es9)RXpTI$j#K@@{l#9UN(%iGR`9+59|9 zKF{Ijo8&X*=bQ15d~0!+jHET`@|p&1KoXGtFCaf(zfM0tsM>Q|tJ)lJ`u9DskFV|G z6e=mg>ql1IvP7zVSJQCHQmOV8FA1Gc`>qdVg{VUq@rN*G62dGGic{u>_Z}!8 zf1&#1hs$QG_s?HZNyu0vk7xY%FrGC6nr2%c8ti z%H!_&AoocsZ4EAR5DW`l3d%~c}aO~n;6r}iQbebDnTro5;SySSa&Q$2x9?4 z7>N&Iq$h-ts1PQsMcouLSEE3b5AVDR34nY=4dyEIBxaS&lbA_3Pa@23vQdNCreXmh zVSX%s6`3SCF-!L6C1d^PQ9oSVqZ@Wm=TF%|Q4V(rxs=ZmhloqJO4d>Y`SSV90R0ty-A&i9# zVWcI5k?s(t#87T;7%#UZO5~Q5h}<%(L~cn;N+O{F2}?<&wht=!*p5pqF1J&VAxq|QGX z?@$inHJ;lTsJ$H)jk5LE!#X6h7qfEI6jW&c`3(1$t#`P%1v|l&#he}~m(7aT0Dt^W zW&#@9&(AJgz3A9n^?BSt(jGaEnGB0PCaq*rUwk~iBt6_)m1NU;s59`@;^3^MZNYZ#SpcnpM z_@o8F^NfZ~c%M8J6BuP zl}nyk#riaEZ^nCIdiHK!>RN^DFs_E?mD`=0wm>2buiJ<2+cdW;r*E+4yYhp@u6%tt z;6IzQq-}}42W_u|-F8V(puhCk$jX^FUUGI`l-;C>P&m%Vdab{{dUNjE967#N(Dc6`jEB71`#n{DQaq8~nO93!Zb2fvQMdhcr zFEg=zF{XYoeSACG+SqUKHTDh$T!X5K?i z?41tQ`6j@gB!mf0%{R#UQVefXZ;|cp4VefIUa|nB$u&W&G z62kt6u=hIHwS>J)*wqepCt)uTc8!C5ov^`M-I zIbnY$>|O`Ek+8oI_B99l6k)$4>>CdDO~QUh*!>RnW5Rw<*h3EXG-3ZB?E4NjqYl`M zggxqDa|!z=VLx)PZ3%mcu*WS-^+h+NcZTS}4?-sO4sE$DTkg=#%Dey~-X)@M?!wNZ zvy+&0Xjk3JE^Wx3Rq)!-#CL16Sxk1fHp3^pTN^D|^j(4Xzhp4S?}~Rt39DDL4Dq@4 zvmAfQes;va=O^2JXT0m#CT_QGg6z&0ilwexSAOJvXpQPsz|vjlD#Yh9o~Vk4vAMas z*j4B%GFscnH{pj)nZa}V@*BAxiPp1m2V@i=O7CgQ*M84X=oq&+1yO7yihB-V@_wh>Mf2u*{j=~kKYMU|E!T&=y)ldg7x~em~|#sgRx^Wqel>9RD);9=IE%kDP*r(p~VI zO;@4%URHats~C5mmtt25%|_anX*fWTs^5>2U+l;x;+NOXzeLp9&O6>}KFje5_Om0t zo1a?0(fKCA6tcLQ@g}a_6s;d8t?Xc@L2FXC@ynJJ49FXXs*d>YF8zI2_RfJF{Jk@EX7e~}95 ziPI_LITtwm@#~WBf$vW(hnFF`SFuyc;oamH2SpR{%ag-{*IRzYpR%9jxcfo_?TAPD zsdf7;3v~?i8&1;SZ2R^Uxs&!cpCPRrtW89#SGRvAUaxNFCv|(uMJC9R7XJt!Tek;X z?7saP`$__qy8T@&)5d9U@?dQoa4rC|dmshtx zzSQz7KJXppvmD=RKRe=Omzlgf;|uvo-Z}=huG?pAl4__Za9Db$dJGO|$>_ zDrx1UXd1NMeU-_-Jsx?l`7FoVUu`}+;=l7#X+7{71D%4_neQ`6rXh#-kycLDra|lb z-f!}6k8l2f`7FnGe9(M$#Gk*`WZW5-t~1anXzjk&8Wz@ZNe8}arxrN}FE<+}=q zP}12!Fvhu`^l?Hv4f;My#GqEe|b(v{9$I3uGE2B z5p~{zg#pw4F*!l0@#2dXX`-cq$?eWX@vm76Jo8#F>`8h2TU$Tj&BYQt2 zjWoneOe4?su;>;ODf+`?yUs0eR{9$xlchjY1RASIn$6^u=pF zW@u=SziL0r@#5PZk>~O=AoA---M?9&ULLn;rbXl9q>)CdY0&tIk2@M?-(fz>@p=5z zw()HX_1Z>D8kc{ofv3o{0|KUv-Z?oz zskZTJ(nEvY#PpnI>3N*=#Akid&{2+`^u}YKF?5vUH-6US(-Ggp&!9<8K;3IUHyL#S zzy3t}XuzF_KHb;cf?p$_w-hCHcrEzVe{@iRdwt;*(DMxGq49WPdIEWW>WhYsa{QHh zOimr~%r9B$5_xY)-7gt&dUg36X`>N)BHAXDt;@b*sY!UXGi=tq^ZVNa*}CK2Y18up z>7fCAVtNAEdgiN!j&eNr>n5L$_>KGwWNQNIuDEY9>H^t%k@V4+Px_)v4MutX;)nke ztGaS-a1#Q@_%A*`3&cHGg3|z53z2}2r2~H9QUovW$clxe2wvWiWf}9js!fC4v^&+3HV7m zK-OR+AU-^mhb%lv!1?I_S$&d#x2FSS8A$?yHymXxNdn%RP9Y0Q5^!BQKvtC`;0aW> zSGBTqC;?BW1DHUuP)%Fbbzc73ab1!Q+ddepagWL17uxL0_LUzUT}FVOb5uy zpQKov4v=Lo2^dNT$Xb^KtV##Sf|msBnhuavuh$hbx%K}d8AtGoE0bZn#?DiDuXTo7 zn3fZH>+$MuZfrXwSdUl2kV@O3Ii`!ffi_(>!!as<@(##C?mNTwCc5GFrfd1Y@c)ZVYg;b- zr?D(HSUO6Ar8C=Bp95^Nb#$W@jH@OwIoymCmczu~)Jb1jm179c;>ut}B{zQ&MNFYaaLpf>(+opWaB$qkZ z;`7cE^)8+MRZ}xTnmtUQ*SBsa#IoP9_aC^kGZH!1)EGfqX)sXR9rh^7FKRGm{ZPog ztfwY*WAkWvex8Wr{5)eN=jU_Do~tpo+iZP4SR|W*MxI0#)iOE8{UWXJLezUxjS;>voS9vGBB&UP0H?l;oRxV}^V62dD^8$8^Iw z?vgs*K%`rttzjRcjL8!|F^fQ#HEce)%&v&f{h;1CEG9^H(J^XzgD@d(=cc(5P{tU0 znX+mdnT2TDM!NVVZDcmSJUQ=XfXMkAeuVM!OyOg&m{JI?Fh|+Q0cCsvX_UVNvDB7c8`hwigG-diAX^1TZNi`X4 zIs@KoInVGa8e^|fL7}*Z%@aZ?*SL5+(~Q^KIv(W5=4*5b`N!WFo=8vcYnl&$-PhE| z@6^7gS7EZjpYCB|V*O%F{bKs~UdZLx4)_{dz<|vmtnuT7?MT={2YZRIod{dxU<>~X zu$>9(cd%Uv+l80tK~wg+KbIoRWb?Mc{T z2YZRIy$IXd!4`fCu)PV}#=&+aY#+j^4t6|Y`x3UTg=wFX?5$Z0zUbbXt=OEyy)|U& zbobUI^*Hg~n)wO7Rp=(Q4SDa@Gd#7oCMWl!T!Hr0w*eJD1FbM_qF7Y1@7fOlT%MU7 zD#lj>R?Ej9kf3?;PW{G06%pF2ETYJq*T1^4kq=Au!*H(oPUIP14}4}-sy%)>@s#6d z6HmPF{VrDgf#kbT)LlCRAfTgEil0JIGUr6-edG4(EJ4)u6xcv-dV6(VA#Lw@AffG7 z$#+QGcHf?owjt8ShBFP?ehPH0`L^qWE+qbt_dVk~4j$5WDuSlq8}`i>*0TZs+h|+z zkfSGlSMnXw_D2LwLEA8Cqav9GZJ+zD%QcXM<89{$lbS(zf#trlf5b z(nbaUZ=-Fm|4wN8X7U}p5-mutYcXOfWkeLr@w;vIhCzC+r6 zil8avZ7X_9boXc&9RZe<5g!Iz5oIaUe1c+75cse$$`rgnbDTjPYN*K5ZhcxqvIu0fR2!nsmUB3%CI2JzL#U2Jl}Tm|>T>fWQok z^F1a-V1`}603rACbRH`iz<;3)c-RF5nQ!M%U7bd?iUIr=qS~GT{1*niiUIr=2FQd# z0)otC)*t~v$z|#w0YS-S{vZK?0a_*z5)c@mWhNm3fdN{k6A};@pk+=W0f7NpCKeJ9 z7@%c#ApsvhC{^b&#gKqcrvqf3Apu`X2gqbY0`5x(aK=HIjxy)TObxa$u|ebpYkIGX zTq4x7a<=Ciz>R;I73KIA3c8pR@`JU!+znx4dp;ZcPcAm@u{Z$P;*8~ibn?yDk_fpk z3Dbsmaegi|RN8mo4nA`vUoSw#s}knfEjdd`JUe{Li}Wi@UU&R_0+18C$(<>j*yi!~ z8vN~WG5$rxioWA2q%`>7F9?qDr9oPn)$y)>v1NA{Sc<5@{{espLIoCJ?(NWBEroZT>0#tTOze8}jEg;m;kd`IFE526=CA?NQ~jy;6>{MZB9= zmTOn^=Inz(ND6v95H}A2wAiu3b-N$gQtMF;0Z#;cE3ABt$Tbv6duwHHG!s6UJ` z4zn?Sm&Q@;Kvst{#&R2jCzc1dFg`gW-PtBDqz`pQZ54et`3R&a^{nnF6?Q+7EsZw0 z9Y866#tyBAGMidBDGhWMsfErWNjw+MjH8+PCea19XQm75l`IKi#2CVeK7=u=5GL75 z`}_jvrj6DaGouCxkh99nH8IvQzjT`=#I;#woen0%1(S-wt)d3q`Ve@Zj!UqMOX^Y$ z8_l1vRt=kdP)csMXC=a(O*fR=H;dfPc($dU%ZP7|~ zg&@>ni}eU5LfuOQ@HwqZ85q`!#$@|#VLNAnq&gTi%|k*A51rbRJMqp!-dD0cvLAqP zRro_Uv#=VsQp8Hdn;}h<*aQcvozDU zU#olevYGwRXHRhthw6xZ+_0?2< z$00#+RCE<#qNPYzQ3o=FNpVg9Oxd#2>#QDH4bu5b>mf1_V<++pvPkwo50M+xLsEL^ zA!ZxR#1(Mj7MnyL%`7!poM>iSljR8X6!C`gOY9+x8HX@tAHqmN2qSqRj3kCIk{iNE zdI*zZh~9eve4^f)FIQ;EQ}Qg3=si*_cRsK<8;iI_i1cnO;z=bEl(a#ToNj}JI6X#6 zsq^Tz(0K&AxGX^$6(KH|h4ED)Z`>iwSBX)B#q(oTFd`z%k7ZOtN*5Vh`FzarD(xA* zlZU1BuR$(%e1zf@&;KhX5;%w7-ky)@`@`KjH~LeG?aX|<7-0&lZIM%926XoX+L4df zIA4D3RM2B^$Yujw-=AIEuWNR4>>rPUmWrcaVisHE3mQEipV<;kZDt``l*QA0_3dav zz_Sb_4&C+mK^y?h*2@68ySi~1K(}57kdvEvcKmF*a2-kEer*beo6KzCP>gpwUrr_n zop~J|bkCVRr+NVLG=%maU*DEYYO9Z6oHvA&x44u(1KR5A5I(qhzGO@Ig_iM_l(0>K z_Z(;em*hr&&bs+JY=$1yjVh+G+M zzB)gD0~fHm=XTAlL>s&2_QbyinfU0v_<6F&ErTyLuZS*;Xxm8$PRtLkpcF9@?6GTC*Nu3Rhqnq+pULi@Vf z;GJ)H5)|Okaap$eS+;AIF((2sDA=t+}-Kt z+^IRw%r6QH+psxz`Z-^33)@k@6UZzV=EsH$3%X{4q=l`y@O6+h*h0>35u}te#;9)u zVv(~iDBKD~AZIU##A#bg?}<0k$7FY>Y8oY%fiK?RkfdF{X>{sR^*n{hMu{ zj4@qoFHC@~=CCowbg}(;0&IIaY>Y8oZ2z19+ldYvV@wy@KPJF-fy2fa^}8@Eo`$?V zJps0>95%+NA3Qy5-yycXeEb=t#(hca=&xP`#p9ITgC@rJVd7>C`qMGK$M$qUZXMn3 z&Bm+8FAHUr-mcB+7}=qWQ!3iuBaa>NSPPT}Kf7n;qxh%5BJH`lw^Q@p5UIPXYgT<1 zPH?x%cXh>oLTm$&4ntGE)}=()UM}+7=Or=$^^?c zrK<}C>xp**Dt`}WXCTfX}*6}{UUhe3dnN7 zbUwMRTqV1)E7yZQG}jv+DTU0<%hxYNR8z)WUwom$ZSRxwy3e8xIPx&2F-asgE{5yP!L;VSSs z8f9?@w^DvfCtrz#1zw>|IpPfk11mdA{bS2Zg_6z}im;9rv$@s7zi`QsKDp;- z?4fy?+lDG_lF3{{-d3)w9ztdoM#>PYa;;pdUIOk^4+XGT?*?pf$I$PK z)mhksjf$oHY9`Y17gY~KB-jj2ldL2Rb7lEO4Fck~&zWD_30Sm{D zEid0}9cT2gQ(kRpvr}PG65ML75y-cIHke09b2cfblm&YaahQ!r$%8PzV_bf@%x0lgTD(Q^C3Gt$LYhxZBqJBGDYbC2?-k5f_v_1&?($r=XW5=Q zljqLYo)<7|EA;f}SfT{d1mOGnSDW#?^XB*Ad_l0hm zx1tiS1-f~HM|XojR(T=p$a*$YNv&->(RBohmYMUftjbWA#ob`oIyVu7dJr92NryXI zgfLQch_9Q8Lk0@t+xzaOZs>;X{j*cDTx6T)B>A&^;Gv3nO9xs$b*@+Bf?wo_S^W6~ z6~hQfbc#XD@9P9&6oWuU0gsHPn+igs%1{bAf|6&0^w_m^)-fJO+!<&EIuDKVH#%hX}P|}1c`=Y z)U<{pB+zg{p58cYFT;cQ8)$H<_s&E5G5!nn-dkNjp!d#4fRU+G9qnc6h;CR%|2dsH z%4e{imwA7pi{we-o@M3u36d*HA$>Q#yF>hN=G~8FD5=f{C^Q#;x0xulXb#NxyB4Ke z?ubf)dcz4w)_facS2}BuLVmTC+O+q)lZMo`p4FYW&X?_T<07YES|4Wm73 zFLD8>T@u&+o;f=kb`{i1uhJ^#;vwfH=2`U@8*Tb)GADATg|sC8KT48yd^tw6Jl4T zxS)*nHLe{As+^bJ*PB|nbbDZeCD==l%aGq6q^vfWyS8o4Ot`;CL43iWvo@zqj4QZc zgL{5TQU@E`)Ryv_O>^4RlmZh8Oer}vrO0_Zy`#H7Gq5|K<4OP6R<;AEP4Xw5sL2Lh zl?QLH6A6}nk5ndSG=siwUn4Jc6FsW3@w4g3MmF;z=(%>B9-ZubYg(_G*Al9au!=7N zu{+!XjH*hjZvrdbE=0T>!aax){y4zm1}`#WKm65>wA%?~FwndhcxuNHb^wQUm(Y7q zgolQ1U@n)^yBkBt5Gn)M<~s;m;-Xwe@BH|$m;@GEZd)*0502p01CcS3!k^RCEDJUo zFmG;jVg^v%q>TFvm;vWNq$NF0Z!jTo`ZCF6A&i(qn4k;NGUqTJvnQ;Sc@{K7x1`>j zOYZ;2t@nuO^g78H+%gHqQeK0wkz+7T@E6&m2B`~|;t5N~BE5dB9(0X_rDL%KgIjso zVn+gDJtG&Q0@HC>vJ^&aS|H4iWjmh~kG-+WN2DfkpT{%MO*(eD94N;4FWfJFg$oES z`go@c2&QK5VgQqc!=MceU}zX{B?E{r40tzSW_+}pp*b3TjcL?$!$$o-Q#NYq^xZA4 zluj?lb##bRySQGcl;2eK}`fD61A%%d_ZAAbO6md_4yP ziu~exKy=h#JXwE`siUl1FrP^5wu~4*#lp$mE$>0xc=nOjdlkHlo6W2jjA-Md*u5o& z7`ou`+v!C|`-L`$<1^%OGnjg|)Ozg0p7#`M>#q0Gk zqx+-qL)mBuHYZx)EY6sn`>TL4+uUOT{? z5W!P3&h`d@HTzuIAu;8D*lQMZ32unp3N$qjKA>mBeE-+tGh9$ZM$;q%18V)-0?biK#PDn%x17;DZgm+b*4_}hB|n2riex_XOymJ9o_0b zp?0c*YBJ@_d$q1W4v?}l8Vx5@KK6z0 zMo06=!r8JUGq)>KkT5$h>kFoVbTjRlOhZvgD4V&uHiJGclo2;pVhFs=cn~yjDtgLvWH5~qqIpZ*# zF%HTRk=s%D8ipeVCWEMt17??6mP8Fk8JZQ}gYu^qy7WyyJypUa%7?VgFgsX|#{Pq6 zWQaxEQZ}(|evFd1y0Qd4G;FH$RD@)P~i-+cTWN z?;?CM>u*WB^_w?!m0EP`reEJZbK0$~`t=re1rmbJl=*7gC}h|U$G3Av99)>Rb95mD znRmx!Wi4tDjUNd;2tj@%zi;sSIU)GIYv?I>y=963YK8dNGyZNB!0K*S~bQR47*G zaEGYvqut&XzYLgup9)k$6uy6ex15Dz(s$%D7+q!R$hW^u#_jEk%7tRC|AI44eB_4O zyxhW5XGMi#&zi+$feoxj>@!Y!vfw{P_ej*Z<+Yq6xvh4BF;%?Y& z)-1*$I6Sa<6=FVeLssV#F3+n#)ve@RgFGI20t+vgF#Q%zxmewW%&H#KVFALz{@Keh zAS<0wte%A6)zvlNP;Eb4cQCRUGB4@dKGi;aSC3)PP?&l%#Fey~6sz-^RH7H^Pa^N3 z2Ps>8OL<4QA0~Z^%T)zYea=bIr--h&+_DHx|u3=gy(%I3!ytKTn)W75MTu*y#RteJDCg`F2 zkcmiCcG)8!khF6@9M-kE6wADo<*3KV_)=0-5l?%efBDLMp?~EH!g{4)O8K&x4iw^} zNU!#S${Bbxr-xR79i9Z@s4I6>cfPp!dMtayFAWu{`!!)G(Tr$f9_P*L9R&FfG+7Io10R zc`#S%+_X>wqmk7BqXlm4%6D$Udz~tq_Ra1EnU$||Dh)a6k7LDI=6isz+iqYdu%1~% zPed*OR1z1q1QxEPoX!B?NcAhDM*@#ox8Y|vj$6w_laJ$C_TQf)WtvxFztnwh(yKN# zg6-dLCtn+cY43gvhY6K(4N6+UMKyI_1ae@Q#o+-j_V7hS~#@2wp# zJ`*HF)jBej4XRou4eWv!f9=x<-% zHug2}wQwD7l)VT!mgB4Ozo^GthEb&O0|Th|8{+oHKNoji{C9Et z;{KNyK0jV1?t=J4aTmrHh`T6$x48Xn@g4fn9zQG}>q&_%XDFXi zqDh^t0xtgS+?<0eLr>PHXGYX3^kBT^VNf}?{jRkOYQ~{V^dl3FeCdviQ3#^ZHAYV8 zP9+oGIJm)Lu0z)y?!64_P_JkVt+qMyKMUxY7;9^fGtyp6Xd;(2C_x zr+@cEp8SbSA8TZqE@YZ3C~SRnN8Zasld51TL!g7R&F_N+kgxB-u{t06PkvD)TfNfJ z;>#Qph4Q5s*nT+Yltnp|@4W=BL38S$#0!c*Q{wTO5f_m7FRUm~zVS_P6ewc4Q zGYb6UW#(E}1GfG&`4CP&7UBn`&WT9Rm%a~W!_px_9&ZscnKY=5{C_SFX79uYTpa}W zjvZ&@fo`bdt`&Lce0c&LSCbk_>PVN99tLmF?Qqo8e1zX-3FlFKlkd6YjG)&)zml^p zvPvM?*o`d$k<9GI7J+D%BD2s{@{1ZwSeF4D+hYP}@>XynvGA6*Rw9(XofyQ{$|NaU z>-awBLtcFxW@#He-c$zNurh9DidO5Wf-2s*RV{Ijoz0vE`~%V#mAOygF;HilRr3e% zsNJ<(+eTMa+Y2)1g}vw;;4~Wt8%$Lw)Q6$2%>P>xb#>s!ej&g(8jS?_Lz-#-YEt~d18J>i~ANFlTJQ$Um*huC?AGC&`mICb*yY8wq+$Tuz5B)<-Is{1RF@hTau zd>p6Ge~zH2ulWm!q4-+I$xRj~*AzTiFHV+sbaBjV#zh#+GLvl2(o(i}X)e0}XF1I9 zm1&n`7YTr~U_rJd+b4i6uzAG*77kaVT=mn40VB<<_%9IIcwuISwLlhhaapj%+W_vJ z42fUw;z>K%8dC8o(ndQu5B_lMN7wX|JAMNED{eq(ROA)Z3@PK0)B+GgwcP2|c}5Sa7hiH{|hAZV2DOy+l)?w4BKmFUU0 z8Iv#vl}~>hpi-6|k4klk9AAwbZbqG`{R+b~Mz2GowQr4^4?w97k`!Ks@oe7$Qt+?= z|G2xKE9i9TudM_IBCn#x^az2buhne8d@#4ZivMKvRhw-Bq`Oy`H59Nf>x0aE8uVqW z3t<`>Drc+xaChYJINQIh{(2CKIry^q{j+rM2W&cDAfuxa#_*rVS8+-IfCRx#TEVV7 zB#;>0Iaud#dn@B)F~+a&iV$9R*1wZrt*q#Xy7DG!t)1VWLsU)HKTFcJEy-3FkgQU+ z+DFUPIhLkwTn18EHn&f5?k+~SZLCuLEYf!saSaHFn9*GVJ-97|1a;wBNCsxR93gF8 zZLsaJc$F2MQCC}6sZXNR%Et2b3@svks=cY-hFzohQfrQLwnYMQWm@uQGROw%OW2vWq*^Q<88-NXl##&FY z?Yj0{9*1^j;mtng@yHEg+F^h3YwEc|W)<*!4tN%AfYo_Mdsd>ct65k84gIr@h2al- zrLO70w-9sEP1@xQ|J=xJPR^=gtPQ(vZBee!drW?Hws6g&Q(^Xpr)RZzAGty2WH2iI zOy#|h!L_cL&$A5iy%1Vin;0x(_`+J9HKVr3z~@4R4|ZiMdhoetjZXS!WP7CK-MBuk z(!bMwm4EAJVNf_!Vc9!HsQ{|>w+?BIcw`{IL zyK)0;AJx-=@TS_K*bnCAx76m>oj0-bxTJ$DUUW)VzDGa7D#72C?@hwy*)VhL=49Al zi`ee8bg0x;f?I4`vj%_FwZPTZUBF!*kjk4VWRy=6Vfc5{HEe71Q9Ay#vG@IJhJI*^ zcH{bBolW-hLyyx9hgA1MMyD~~adRs(mgZ)Etyf(W{Q~OM45)hKz^GXh{Uy6F(98Z9 z%Ng>s120{z#BgJNQ=(bhDP_yWk+o4dfyy|#Hp(xzHcE}^uZ`L^He?#3v-zo+QmIynax%Y7OeRzKgx%sg$i+hjE%!@SS;Wd*lLCQAN&P4b{**SBn_o*OLJ_8va`MQ&FZ%@xqGzU%S zBr`IiYj+Sx^mHH2+SBnRmdfN8HAoeR5?A*}jq%NM2qkI2vYv@Yav6`VzmKYzc^hIt zcKx>*nNhM+Te4X0Wl=w=2A%3}x`RD{v3yICW|fMC?HA16kLB!5*-SELJK3;W5KO*SusJ=bEuzumaiD8H0Yb5#)mlWJq_-R&3t=w5LT2uRFv;?hI8%ZOaVE?c)TqH+Qn4V;gr#FK z-&8CZSqbxF8KE~QXYy`lhiC~m!@A7bw{Q;5vCfxR29NOO(?A=|ZT^vt*nKMPc4Mg6 zASukUEND*IiGBMIh)ubu^{bTj4p(e6-6L!x7~#}oF6Hm;uebr%%8Z1L)SurX}X-W!MT8=v- z*WMZ|u4hgtT62P05O#VSMnbKP2wN$TEoYI2N=tG%T*McSsR z2{%__Fm(xgCWu?Jp1MKrEtT=!ZE@R}QIv+9l;EWR5^N z*d{!2f?7`%eWOocGfW)%hkWi%C^C_&%;L zt^UmEm|SMW=H=NwdzWryl<@Qp_Hq2#{1eLR)+@!@`DZ{3o?-0Z@i)Z&1woXF7Wzx@ z8P0|eP)V~bnWQ4AQ+oepK$yP z>h3gCcXY$L`|Wh*B8(1 z;Jifmddy44rfg}c?UDWIzQWC?q`G%p_{<#k#JIPqEAwWi)b-4C^1kuO3n~2b$3?Ja z%ok85*{{HHHWZPYmoyoI=c+KDwa-=gJ9V+DX>BkZrYy!EcX=IzzmxG-8*wX~puyy@s%lxRp?Hyf&PU$2zLvjvpT%>kIn(Xs4UKamF6IK@ErU z%_d_Ff5+^odIl!kRgJ=;X_Ru7QRok%kXp@USfbFcE24^mrB)P&OE~=j z3NlNhTrN@QPeqw*rHp#(wUC_u7we{&fy>X|YXuvT{Kl>;prG7r8s7q{Ws}XwU*KK; z50D>!6fpI^NbiHr`%ilRbw!X-*Vn8 zy}x(f9K5Q-Be8h05Ygxxj8dcvrFc2LsdISGQZq)?+t{?8<2U*3@#S^|0G6z$V&Bpy z0L#kN@zswq7;>A-9E<#5?8aV22DfAU&@;SwJTE`v>_X+LftL|_VtMwA_=Pfd3J+2O zVbEz`q7iybghi*gxF@xUjC=x}|3*_hx}na0fu)(ezvlWFT0@I7hP$^sW0;zNiDiNI z_vTEn9{Vzkalg44yk?c`9=l4``V8TLt6Q&=C3Bu!^&cz-Xk^*9fyx(h`-Kmt2q`#OSj(5G=${-&TNA*A=` zE-YrKw`@Me%!$aS1NrzJVboxn)Eom-2EzOGkjh>N*u+J>6qbn=Yu=N&4Y5g7CtoT;C2guD~9ks&9nP9~EEtdezs^9Ic2kZrT zGb+OJ&#`ZAwa%C9KgR9v)t6CK)ft!oqe5AqZjV%Uq=}$hHA=#q-NcSXW`Q9v@H|F| z>%zC-$jSH^?65K+Q|M_Nw{bJ63n)H<+nT(1TZQI8T`)l8_(h|qo5n^rb@n<-s?)MU zgerfqar16T%xOuq?g>2~=-l*!V6!KbBUzP1FSgqgniX2mHvGMH%t+SXiN-FwkJA%t z4e4}4Jy9n0lj{lcAsmO6w5p^YUnLx}b%5P)M{y6{Tu_wl9i~-I)-WsZWANBR2gA0H zK}|M$;Zgm`wNc;ZL-TLn@-{Q3UpB34D2}k%VtOr{?&Fl%oR#D%cat=53a` z$n=89ZMd`%)tRmDQ0ZA|_}V+E;mfrVVck6Bpj`DI)04*1hak3m% zB>eO|d%&N}M|sAI^HI9i+S+AxgkLY3NxBUxR`$(og8{#pAmKNoruj`s3x2jJ-+aV0 z<@3f3eWY?eY+BbN@2|4`tKDY<;zT3A$D|)3x(BqbQQLz~#jOg%P?GKg-ed%lZmJI$V11|MkH|tDpafGt4}ji4motIra>nv? z`O&s)qi;6((+w5*)+C|T7;kzAg7j`SQjbLLL%3VH1tHm?kxv!kCLNe>4>}h$R&Z zV=lt{Sa!@6$on+s1pe6JY*TM^z4PG9Su=Vk)_%5*Mb>kJi*xn6(5@B?FUZyJ#)oVX zuiuQ0N#6gEBUppwxWT3+`&D4B83g@kLPKyMi{9G7oNRT7Ss@R$6}KL{AUl}N;xq-H z4IB9ca;Yw5G^Two;wE+vqxh%SZ(zaX(AEnksR_g)+A74-O}hEMhIx*Y^uuZ~yI_mv zSuKV?BD&U>5vC4hL|A~b`s-?h1*{ZY*~|$j>(?mz4dNOqR^<2y%(wK`{{wvCd`^Je zF|o8zx=s*vw&``Xvx=p*q<%Km+TfQhGaF?K1=6nkPEqnI%Dpk;=LyUxC5@0-!cx-c zh6_EARhA|dYI=Rv-4!U$*HNDM)nH*%9Y&qTN8nRWxmMA&z=SMWZswKo%C$o?3-RfQ zXLkSW9aXnOQk;D|Rt~ZiaSC{UB;Fc}0=?cTVC+>?xZ9)ntAc$_(QX%#x(LURJ2;sP z_T`>qnhV`f&F#cQ@!3+c;OcQU}d|z|EtSpXJmd}be0jALw zpm^u!T)@mC0wje5pouL7+tI|9!J*9MGHcTLnfb@GhN~Rz%jR0eY6q$bSaV^U_2r!; zgz}!y12GHwmFmvmm`niKxm0&ad}f*p{DEB|HvFd>@_%>X|D^XX^K9!;pyNK*pG4In zci%1t>Gq<70e8^>$B?+Ii-ASCWUIa%rOaGd@T1lj7U-CzH#4|TD;q+}hO;LrrY`7C z)fH?9+%zggk)Qd@UI_n&=mFBA1_NH(<>qQaqFN0Iw{tZYd*x58=>Yir{nd;yvN;|> z5<0wgz)gx(?4mTfIZF12kB*p1po>aaM=uU5&>h*2Da@nKfN?!*roEpWHm8!GdQTe-8plF5H)4K^gFfFxjvwd10Td z{7hL9SMN{wPmw7iZr8nf}9BFYHekO!yz z?|87276qeS?{01ZH1ZpT|2-{4cX?-pv-Pd`4tgxQ&qAprAN2u?SfdfnRDBtioQERKdw~8 zCheWsm&t1Ut_th*O>Da8PEM#aGGX#qxEUm%y=6*zB<6{DjJE0DrhyA3M;w z=Gxo`xN7sA7c0EET1V7Yl?!BF4POcPOO@p}Njvez84WT=_VCF$_ny_^xQ*cs(9@u5ML_xZ;?M^g*4fC+W!kpjRO#GXmQkFK0?~O;T~K*PH(S@qSP~^MG`sa z2N{w1jBlH~v(4%|>Zb?T-bNb`z4mA@TNsQuhWi>@8u~E0BNs5m6n$7ea|qfl^rNvU zs+7;O{9HJxO;;NFfuPuK8sl07*0-|-oE~WRn(%882SRQdIen=(GE6uqgi51+T?mzS zdoZ9_HKkd9*&a6Yf1u1m3#{*H`es_+82JM8y+@cJI>bY?m5t2iJd}#Qb@-EjNTBJR~ruFYMAW-hDlQsvtiTt95z|TUaQfJBD zX@M^VTyI4tBSa^AIQ70Tijt&FuU+w?uyu1`3|j~s=VwPnK)bV}BAVrRj6v4gcBBx@ zvC2uH3Uf!(9ygm2e+lubSYd6i?u38wkLcxkKh8$rrgOq~!M}2G0MGtpR+fqbGfKGZ z0tVEP18G+k%u%6N4#sDrr7EF2aurJ$3FU;b1PYr} zy-3|Hvw1W~iK2xt(j&O*p8`pc8vzipJQ&WmhO)9(Wp9z)ByG2!_D-ZNZ%U;;Oh7&D zG4{isU8qA<>h_3{#rQhEC~M3lX?Qr(^J=V#81lqP%PaE?+Ew)$5dzBVxHX5P5FOT> zqa_u`mg(_37p1Eov@(>-TxBvg^JMMEh8MfeDTk;{!D($dvbrqjjRkdhM>C|7i-lGB zcaKMaIfoerB^X*hf2h(3x>&veOW)`PlmrL{-PAh8bu3MqXCye_SwlHOejEy%)ck@ir6~c(fqeAv9zRih2^b&$gcf<8sIYtnGwICb(l%IxK^)W|*@M-nK~e_? zq6VozZ`>gE!C6s*=+Mv`L;=|hgUi1ix z80(&#v}`QknIUF?`;RmSGv^+WX@Zn3n{jhdd21-@(Lw)7NS4~+{(1nyIyqTkg-jK= zIMz3?c-I6D$+gT-BxAUcL%SF^J z`7HIu$ntyxvB~odL@&=bFh9GLootQO{4}?b7sy=mh@o3W(475k;ZcJ{OgCIYT)Spz z)4_yT%z~SsWbbSoR#b8RO^ywblG?C2GKbrJ0ha?qB+cCJtAU~ENuQyY9%=Xn<*{!+ zVD6!gXI>#pSO6VZ%#48tNwCm%!^E@KhqFH}VhW|E2py+oKF%Pzfw7SHBl zw9lIm+4c^BzJ4=;LOoPh*m#|PHUm&j%90!RXNR(LYK5$fm73>Bj35t57QiGTVVeUV ze^FxuX@|;Y<%1ptWp#DK=DV3jhivC0%Y60QBH)|{l#{Uhoa%!DpTE42xeM?IA)m6S z(k}nY`N7@uBj;ei(oq<@5}9c(#Y(9TN!E)XM*ap23g0xlGrkcDr_Fm%8e8jkE{wg$ zON+~vS|*;;or@nrYTWqPgAtmJK?<^70>zfi6^bJf%sbWZkYf1f=vQV2R?*n9w%#Q( zyCCDZ!!p~vH8V%QO<@Cvb+ZFtlttH}WuX(D&dU$ZPSjrB%AyKT^?s5N)K!ck0#?Xy zSMGO2XH#sblPN0H$*f}Ngy2EVKY%$Z41vJ^9CVJvWp$Q4;MxI@$+TR0{lD>x=#5jiFx=^PV~+#yst zu~7a<0_5*PCx0sXFfwXdNP{NcSdy_^yN($ooOLGQ%zR@B*qQsr66BNFZ!Gl{kcwN- zu;|K+2j>-4k|a4H8%rXiwMr5&b~|2@Fz^Jblp1i>o-{}X#{&MEHDUELZ5g3| zwTu$C{-z1w^$Fl-PXIq>0(d+Dd_>_s?JQzAj?qH0-V?eBv+q*0yvvLQmWdQG%0!Au z>_Q|;PyWEtC1-JPLm{@6!lF}s1k3um-090%wt6XzBuL}YYGjXg66h7~!!mc23@*>< zZPxu;!k&=pss0J&Y=8XYh_rQlA*x*Oeb-YsZ=zL1?=~5nW78cs+?F#pszlkbZ?de| zLSGo_%#J-^J%dHPUusEq?8`okMkl~-x3HmYvSW8SPhWQI9_InNZ&(k}t!GlbXLX6R z9laN+J2P|hOi$Rar+M)Vs}lUl%KQ)|#rgp4h_u1oV7C&c!QRev@b_qs7u_H z&W#u5u5?LLs7p%L!r*3_RQrp6&A`q4lz}af_PfkOV{VRlun1ClQ)hepAXrcsc{A&p zd&iWoC|7r;6Z2y9Fv*Yff>!xqSBvaN;F^W%GQBsNfnqbf!l*O4;qt@FOk|eTaZHMH z88w#*wn+_#^D$n{f~xNc&*ZMX+gN3~byv6ld;|d9{?nb81C%)bOk?dj7+m<28BC-F zG2G(D5iS(;uEaY4{IF|8>Kixr(Rr38=RV#JlWMrvEFEePA6*h*s?Df$7BvoU8A1jc zfj1xH4ygtSFX1vI9WcX^-Hykn2-CqcsD_2KeJ38E+%&fryC26ZUE2zxVUpf6@!k%t$;{eCMRW{0}*Lf9V2Shp>aAS}?BO-%GDkz#5u*S0b{ zcX=os`&_0$EC*pCb;z zjYk_UM+|hAqA)1cR(cYd?$BYZo{zxM2pQydmUNIlugwdUbKi&|!(2b0B&yhk*b{L) zaM7lgGLr^`hz>YYbwI9#4sa$6BdhZ=H+*iqF5sOZ4V3Irwj<$<%muT_r@VEc-aSx* zrX4Nw+L3MF!U;{OExjHi!BDPJ-n7s(rw3Xzr=BI~V6?5*GCRMaReSQsQLK~dW^7XI zcbu)fQk^*t)}t`?b*H0@kD-iev+z_xXKk4|`!YeLYW-#Ttc~hlb0qNrceDi?IB*eZ zPA?)YC~aDv*_oXWYIUY1EB7t^fIQc!x2nlPr9J|VQ5myrkCwO2kn>+7i^saK=%jwrJ;u`N^i%w>bkCgW%pp^B8nRDK*bAPbv;<| z|NZ`cRrTuibVAVe|2{MQUj6F&)vtc_tEyl9s;YURbH0?$E1dHhI$z|R*V1{jb5f<# ze7keLjLuIw=gaB5$2oV>`H*w|E1iFG&gAc7} zZ=!RXbKXqnOPuo-I&XE(SJ8QgbMB(^GtPM{oew$ZtLdEIXOX;(&V!xvHFVB6=WFR~ zJLm0mzScQkN9TK;^WWe!^$X>dJV7kul{do2sO#P&f!H>&+LHM?_$1fBXgwpyv==`m7zL(DYd|QO~(K+m#@29iw zoFAZbgL87`)I8HUKSbw6&dFI=^F_}25jx-OoFAq0i_ZBmI)CMyAE$G0fyL?*bgpsE zPttjubN&aM+aJKs4$j`Tf0tjM=2sz$ug~zS$glt8*L;3`mS6PP@j3i7&vi+0Hrafs zbAAEN>b0j}uvm(AkSAuZ1pn^%FZcCD_w^Jh6yX&n}!KLd@BtT4*G5yMhY|^NyCH!e@??lhGwpuDu*y=Um7Ni zw>S+G?yIL^!h%PoVZw)Jr(vw7<}=bTR$}vIX_zqW9ch^G=2z1&VbE`;VZuv4Ps4=W ziVIWa6$V|Nh6$IRmWBymUy+6h>pw3Ilh$!_8Ya!_jx!Wf=F*9?z&daiSO?AmdwUvZfpy?4 zunwFB_728Pc$W>fSsa*mxhjdItqQD!KJ=jXZ*kC=_F@zCu4|XPDlwcn0Qo>jP9<0$N+$>?N6fazhFg9Wj_EN&w zh&|YCgs~BOusaB2BlcjQC5(;OgFQ?b8?gr~F9M8>*n>?ICaSrlKGqY)M(l+#zySH?k0?l*n{0q7#pz%`vYO3XiV@c4+6$U?1fuN7#pz% zJB2XOG%~Ik<8Dto>?lY*rT-@Ft_H~)xRiu9gN#Niky zme|xm%1*VrfR6e6O7i(t`NS%w-nZ~{%n!c7ImEujfx7=|NWf^oqIEp#3Wto((SV%{ zH58Ts*L@2p5>{si;9bfV(XsOB(7l=;uH$R9xaJo7)b2xuJXpt5e3LgaLiu!))mhhN;aj7`I zlge<0)-XYfBr8-Nork|`I7(2s?i6jDg#sNlj43q8Ak*oeKPoD^Q=Bg~dOY*kgG9**KN}>AIGJbMbO=R~*>{ zJd#r;v1#i4fozjuJRjWOdH?-dSn(_2+R=sfbN%YPTCdy*u=4NqAa#UK!W5lDzdVKffYa1Gu zAcNk*;B-&(qptdB2XZ*zeR;GzDGK!5#caG1k1Z9fNK&e<)WZ5fLj&HxS>EXfg(@DZMmcfS=)6(tDs+Uw!)OuMW(w3@oT$s`1MU zgu|ap33lRSSQ(gKo{tR^1M>&U<=!$BcPxMj)cAW4y4**olt7~@w4YFxBo%f6Qd&@k z`3X~zsr%Z04$8f4rAl9$$pq#8HX|y}`1&}8((7+h`nW}L9pu6MJS%q~p))bMH|!cX zHJn%!YIb@EnyeL0tg@1ctyxc>DK!7&T0x#q4Eb&H zbBq1mVUL2wzFOD&#*Ms{zIAV4dz8W#)!>Egh6^!F*?@r3Jlw%BahTFip{71oSUoNH z6}B)xMz3-^*n?&^eqP3wK(7BVC+YA`iE{S#GEHMC?|C$D<5%c905ZqvXgcL=uiU8N z)zQ(XpyS$e&M@Yev&u*UC4}foZbwbRGDDGC#Qpbi-I z_H@6_WC^8L1DT`jNH<(4qAS0=4p}H@JcWYUa1KZ=(2iHJEg_2DKeG0fRWKTPhl7;e zz;_>!j6@Y+T69HfQ!&(UQAke|E4@))bs$?W;s$SA-7z?jEnr3PmE@BFSVl=>%6Y5+ z@gq&iz@#LF%0RLHqs^KmbzHmP}vnx#wNAX&M z^YU_F&{k<0WR6Ds`z5|~6;~lvDe{J0V^O?@Ddu&kR>>y=H0@k8hO8lD^q6^oX=&R` ztPy&450#o>6~mKcLj|@5A+OYW@}fnVp}FhyddB~Ek*?l_p*L_(Y%q6jvrq>jC7uK_ zitC}-9ropGqtm%!ZFH&-71g)cBjY@cy!Kx2ERd|M_k0iOXLH(BvQ}VH<=tU&Qu<=~DdqQ^+q_}(gq2YFd>Z<(E#-92WFtxoJVQUjpr`yl{rjE6r zPnkN@e%7ZZ?B|B5<@WQ4sfztPa*AhiNn(dj4~BBtiwun$Eh5KKO1mjczf|ROK2t=y z`9A4)5<-*~aXkMbRFz6Ewd+&qHF0nry|0ul$U{<)`HkHl8Cf~s07#^G8mv)Yr?-6W zdkoarKUiF0V8&cTW*@Z`d>u~UcDpvbCDp#D0qbAfZFE8r3nEwG)4TtP&36A{ZNk)W zgn@rY2<)ca$a#jQvi7S*a|5W()5;(MpFqcTR075ap+riz(6i~TO~f38h#U%%vp)sJ z_BSY1bxT6nzK4#%_SgB!w(rGD?Mj?}za?HRhHIRF^2l_AVX~S1QBOZ$`{@ib&HFwC zh>ejI)L+nIrZB+cOSrD_JfyW^-G^BmNj%b)P^|4Yy}U44%45>gv+gGGW+c-rzzQz} ztS}koCpHyf@iU=mdMU#!LAY(hG)4uCT6>BTyuP$pt53sVj-{;Cr~1?0>T>ziYsK1A zrg?~e1xM90$`mGT9x5_4SKNg#M;`=k2qGn=78LX^H7IaY_8kFw@$vNX_aR+R#s4ij z6Gi;D=}Z*y-=Q;E0N71uvH);Do$DdAbhUsQ>*i_BNwszJ#3y6sE^Be$qw_-N`+YjE za?T&n`3mQJkj|lsjr&75xAUiYH8cUbm?Me)$a%aOaXpV8(}O?FH>G1d*l!9e{6-<>u*M=?_K4j}KH_A*!B zah@h;_hiH7>Zha?mV#hg2G_&RMVrN6I~SA~KSvqR&VIpHuKh4yn34Qa-nsU#@Rl~K zbM6P(w!{diW1sTkHKSd3w0XvjswpW2QG7HCrF*|6a~~jR_y8iL?w3qvUUM+u4NBW96*Rv{?Hlmb}i+>U=jg-x+zZNlK+wfsTsuM=MI$^}76Q%^D zY`P41z@DN!oNNeUX0joOImm_}CTq9<;FC65ZP-xS~CatO%8Xqqf4C&CHXZ(A?X zJ?8$JuC@D>6F4M`G*2?~PF_F|H1i+`hwe}IdHak0c=dpHVlUW`0NJpilUXCY?15ZcZt zz6DXu=VIh-K35_c^9j0|&kp)~w&;UMpN}z^4BNj2(ZMVKBekZydnEiZfOqnA9VWUk zo22G+MPL-k95YJX4mghpvx%kof*Ez-)zVz|z!!`le8Er&Uv$}D_d5hY8Gg@KuKfqR zWDX1kN#;k7Q4a2TnLQswZZnbkF{XIm1K8Y02Ybl8Sf|SIXOc;MBrk`N4oy?CZv%PM zk2xznCf`3telz{f@)P4un4k~-jby(+<+2)-iIim`i43dlx$QVPY`H zq*I=vI!Mbr$17omvV+g|KO$Zr%F0meIk*2W0HNA;ZhwT|S%FKL!^}_3*iFn`b}+Jj zF{FMme)IVdS=-ORc8~3UqQ@nugyxNeok`fE4)%7!&LZs34)!U+&L#{u9hA3EMze z!NFca*pY-49qcy3jv}n&VDBaDSi-Pb*_7>0!j2=X*TKF^*ztt*IoR(AJAtr%2kRRF z>}0~`JJ|k&okG|G2U}0rsf3js>`cN=BW$6AT|(Fs2ph04^01yqkqt~|W?WMr4*+L0x3uYJ8A@{a_2bU-IG`|DT?0f*4=PY)f&G#nX z*o^qOnDr#<)YnlIs0rtcCZ0-$boKneHrQO6JBeU zx_};D*8`fu>kkev7q15KVk6uKyiQx@vfDeo-kt>X@S0!iz-yZW%*CroyeJ6v0k6*@ zoep{(GivMcYxpvr%`=v}Zx64}0h*%MiThc=T)egsFAAf5!0RTYvrl*}+}{QC@VW-j z6keqREMP8P&mmqEi2H!oQ;^O+;q~<-poiC4V-^j=_g`{=xp=jR7lraZ;5E8p4qmSV zNZaGFE1hTaGs(Ay*U51QUSD>Axp-|SUhEk5gjZ3{aTYnT{6Lp=Y5Q)8n3as^J=z| zZx64#0rk0S(X2ryjn4~-4?D(vz^6XpGVP?(^AoS;y~($S&*bDj;qzkR!%lh6_&mkZ z=fz0U(r5HCY|q{rKO3UGXY^fCd$oG=J4uM<;ZrWOht|!2b|F)$&i;isaZs=)obs6q zEl$5nabPtlU zv>LH=GMF8@#`!gGPQE?N9s#rql{$F)<-~`BqJ6;UqO~s1(vl8*K9%@2$EIC451$tU z`q=nfPkcBa+Y>&;jN_%BC;5~{PsSRg#py2PrE{9cFV9#CHqSZ8$I6O=PXgKns}wK2 zk~ncdxF?+Qau&AK*{XwGE+toI50je?Xudh|YwmxD3+K`3RzSO8(@|$P6CVyn_W_^9 zhq`={Iy3mZBJpd^U+2Pk_`C$r$Hr$D@!>#t&-gsq@^pT^%coQ;*$OiVJwNemK9YQU z2yHv8J3^`Yx{dg75WXjTJRbTr60~h>H1g!p0t~0C!?ktIs}FY}n#CjBH;}SCbOWGW zsFcF#cH+cIz&_x#{|1*!X>`itYjjHJ;c7k24<#X*Ge^469!|dp^s#VyJ#peBWKTHh zT?WF}Hy-73Db=1}>kYTkWopMa&p6t7Hgm_gZ?E1y0%#X>(*4?-hz}<~d&0-7x2ukI z*_1{v_v-C(rO~;~spDLT=FgLFk4A4hzAI9xdV4Ez;sk6@IOQ|vTi$-w2`FVa-DH!n`z|Ul# z@>FKvn9LCLUMO4g*tsYnR?j8+_x2(~L;qYzXoVx_Ow|iz+`Hd=lTFZK1i96E(W4>j zB}i<()bB$mz47zro8s3|j}DgXalsi>@rOt%ntfK(?K_G)m3GZ18 zMOFphVf-G94M6nm2g22^;%7XJ-)&&y4%WQLQI+`=GQR>PA7VY~S_(AFces40XWm%E z(w51!@m(M&X$LLlAbF`R#8bn@_uwh&c{$v)6yXE`Zh_WI1ik^!o(Lxiq(Qv_){pOl zU*opr8JPdL&)Lrcbt&b#wZPEi$8t!1>z4v(vb+yu$6+*@GM5LE!&L{eMU$i0ZscGE zQW?ls1`6fe_6eKT#7I%k<4us4Qw^A5lwT#=O91 zj-%xK64d8u~Em7w^p3Z_2Y!C&(H&O>EU-rzTt|vU zi<=Rs@jCqU;NFg5+}WNVx*=b^VfH&N9^i{%>5v~GoW8?1%Xw_&RkhB$+r13Q*l-94eSU;We-`0cQ{#ay&^Y>K>ky`YbHJt;;2?-uT2*mMW z#DnSNGT;$uukPSS;aR=1hn9(qEo;3U*~mGNOh(RuB>pCjJ%Nnqr<))lCXm=idTYLZ zA6JR*B7uMx%Q;43;&FZUk5J9+Q6vQ`>c(%_{9lhAq`eFf8>gmGT%2}|!Bt54p_zWa z4U5#|5EQDZkPzu*b;&`CsjD}8Q=1R=2FMe%h|lD5v`5J)3EsGhOqrl80a5osW(8uR zj$r%a(uT@=5Qk=0*38FM%tKRo{0`&1mMTtc>EtafZP#(hawP=o)}5;sRu%i%MG!@^ z4?+INl&o5gLIz_nEeG0pf4176lcH+iBAST}oaQ0Th&Zs0ekNrhEdBwKhRo-;blFk- zLqK}+LV8O(m!}@mqC=AX5G4qON7`7xWrcQ}MOdlCY=`9CJntdS{5+8t+hqvDG+Zwc z%6W2jaV$5v8V3#bG+*!9Y~+shlfIru`>7|Hw|WneCXpE;sgVSZFf*|W z)tn|%7{YC{GrU??&q_0$kG0QrWz1&kS_O`0wPT6pYDguEcJ(@D)rh41sExPn-KOv2 zJ9Spr{Ulhr?wDeyys>F^U5{r3S$Ab9f8Djm=HGZNSbgcnWfw5rz^!HAMk5cN%bbSr zpJtskE&(sXpS1k^&JsiVzxlIX@*S}9`oB`ID0KHMAP`K_=KxXhS7cLce8d9ok zZmlxNd<_!`KFzyX;bLNimGSI${xsLY9;49PBs;dxuL;mRBW@ z_c)j=uL`WV#pZFMi<>*m^228kh-VC*d-)lMoh7L64an@dQ_MEUeiMc;D_t1>FOgKHJ8g(=(76-_Y$`8$Gv< z^49E0eLC>8cG597#Ax3i$k}sHtd>I_I6H_dJTY2eV6$scH)vjW>DmXS|JVJo5`N+U ziGnj~Z^2-xuY0WTfj0j5m??+4JA(z6G{fZVpfLW0_K)7VQi6?`sLNO_8NV|v3-|Xy z37kaksF&vxB>f?>mIoVe_S10wm^T~$qlDym$JaHP^97%QYz1$B46nd+_$MM2%$uHR z!~10-umSeadrOis3H(WWfMfZvYxw1RfR9?ZvnOsb{jh5bJj&1_@F#_{YfO@7dgnf$Vz4o+~vwvP+Mw@Y4F!eM#4#lfna zsmso?J=NtE%6ZYh`Z06GOQJB9! zPk1+(lZ0^zlbg5~KSCSN&Mk}|0pDVFd?{!c)D~Pzt!aBJ9D=`_yM&cl%!f)L223Uy z&^Rk|?O(AC)k|#Gi0$h8-+R>XP`Xk)!Q-gE%xx^qG-GQ0|I6u1??g(~B z1V=@eFEnrQJctBpeiTAD zD`zY=@5QI?Yi4`7I*WZ+EL>b=Eb>V zgS3s}MTmtxIL1tf6r6Kn#0u-PwzRNUmEv1Ttqtbtr4 z^_9oLbN>Q&d<}laBU4}VtAq!L7Dps=9?DJB*KipXb~rZ4dNl^cccy+2Lf^?$zQ|PI zcz}-Y8OQ(7@q6Pq5$Va4WW0G}f^C#9#{CE}kl#IjAZp$NpK>(&Tkz}EWhmM?;ncoO+);5)*T5bAF9ONjp#U|tDZJJ!#ES_#D6A`kx6fNE2f>dyH zrh@NNDQzAy;TI8BI4R5ajZod`W zC_1nq6a8U6kj98P(JeRtpf8LfnKzB~-d@1ng^gth$Yl`lYbfUvG#I}pU!Cg7FPU1N zua&0e*H?zwxWXD-OHQzk3t>C#98bffXgrjxN{Bu*a{_ex(%1sLkH-Hr{$UK<_5b2M zz}EwQ68_J?|5p4{X@KS;26VF@_|4vi9Xm)?18_k}suczp1 ztG)taAI)BXdG`4BSED7t(Nr($hTwXhx^C9jYxVV3eSJ`0pU~Im_!2o3bd^Ktx#n#| z4)mUvfxWgo&1d~4bGg*vJSpOk)FI7*aky|H+D2Pw+CcKW*Ks{@Hhwd|5t}mT7?X~y znQ36XV;Q~2=NUJ3Hm;=7JfxKIHwx&2m`RTfnokfDSDtVD%(Ii#n)b6uEuK+9e)}Kd zD&c~#c^7sXHBcdugxQT7vi=MvjT$dRJJPeD4`7QT-rAm{%)oHBbC1s=sgUHM&oTk2Tl+hNqMXRqYO8vnQZ+>Z zwzZo1&Wa#hRSdGG0EXG2fPFu@<-@FO}oR8^4g7K_-yUc&O{keW9!`2aQ|UPQz^+ z|4%Fo<;-X4wTw^m;4`f_Ca+Ko@$u60Lkm834C{q4iD^6b#`|N$i0S_IcwXe;>9v*k zMc_WAg`Y2h>w%rO^qVfPRTb^ywJb!18=J{W^<`@R%7n*AoLCz|CQ(BqLo%mm&GVyw>r z5*3e?nQ;L#nf9|OQo$qsJccltgrh#ZdTVeOjn8-C+H35dH3H zQxq@kqdW#*(iZ!ILgK(0KK6o-fJ@~V3E7o2Q84&@o<|=@n`OIRz&w*3mB?6&r+Q>> z?k%)RE=-zRpK(?94TKqFERR)owEqs(g%wGbqkWmM1M<&io{UhBklw8Z1GMO+TfHU1 zn1IK6svFz%*UP#}h9!HIB^!q!O|a>w$h?5@-FTwFl;>Rix0t5d;jo?mFY{$PmzZeh ze4{yknhBwu^R4ZiM}T#0=k$w&b9J0Nt6z-v& zYss{o=Oek|&r&R}6tnI88J?D`M+w|p5N^Xs1N(ucroiYTxBBb>E^-{VJ);{TRw2aX zJvfTL+cDhv%Irg==3WZUu~UH7u<8bPoS5(ufA%b6E|u?Mpldar%R zjd>l<&YmxMq-7HWLpHG({~u-3pHYrb8jF=p#3K^aRW=bJ$R>jqWYf6-IN9VJ|7Wr( zo8dl!43?#}{zMNsv}zu73$7ZJ<~|^cDK6ElxcG^o%wZlJ2=zsU;_dlDF&XLGd%j$9 zYrlZ@vkAqDUko;{pi#ggfWA0kqny2^@y~$TBR9NE*WRam;`CUC-ws0X6*AWL`$nd> z7g>4*ydg_T{dN=I65p4lvkcIpm&#I!FxDbiWGO$C{r+-U$~3hNUB)Uv9fV?~Sjx() zhhtlgT~R!6`?Pt->j&<&S~F?A4-DSolO647f&_e`EsWqsf{Vwp76) zh$vjCxR6W9#)J5o_{OnTNugHc8^1!it5f}zY(Bo1K_6wQs@Z&{!Q~8frb6B25==t< zk&z%E(6_!2I?PaH3$rnb%t2{UmG~J5r}=l&U$YpGE3E ziN&-unyr4>kx(&eUYjJJN4F@-*f@tg%5xbF2y6QsK_2DKtY;U z1!>+WNDJo9@y+uVHoNIZgG>#`^6^;$odRimC7C{K+(nj?c1gWX7WL|lbV~KAS^T4p zTn2qsQQmkukb+|4ezJwMDXRKl<53PK7wAxZvY_4K1O!$nDk<$CBN=c-dS}zKNIZ#e z$HpO+LUdO=wOHfLC$Txm#EkibnMvfsN5-h4=)xFPgYJ2Di12Lp`%6s3t+t;78kp&r zafI!w2+Ovgi<<&nhZoCpcScD;-Sb5P8Gwb45%$qk#E-Z@=V_pig zIyGxIW_4dCZ7e!44;iX(8@AAJv%y8=^Q4n=Y!@o$U_W;XN}-btIC#^S&PL!^OvfmG z#&H{p7I(aP1FASo^yG1b+40q^>w}T#zkq%t*FxxE9jwy)0)mQp5eXqta0g!V`M=8m zipv*??(H}ShNMH>RJmP0=dFzy9cKHLh=-cLk*{3)CcHpL@9yRb6e6;+#WX#574Uyx zX$a4Woqdk7QPRx`;jnH8l>@|bi1RoQ)Xyu#JS(r+VOY2wzP%V76lO$ihGS5Rl_CZU zm!dR5QG=-r-h{G6E+6!{f_PPuo<(jYoCQ{|V=zMzFWKWb%nB@`M60&Dudn$f(6ML^ z+T&0=EB(auf5G+_#(*W0nd)noWk%Lz`k=Q)B_t2|avhwq{!-mpQc*e`49P0U{(D{p zfj%F*Forgc4|VV=E1{EDr7F_(*kWNdoYPmtJ3u>ozhO3WIPm&3+g+`OHIrXbg6zj! zaYzmbhlOv9QxTyDhLc!fo9NAt^;Qb}h88lf$w)ohc2_$Z&5h_yVEJrxGmOy!!6Il8 zzeXKtNjqhG&!b+#ZFfR;nfZW3jO3T?o!Ce6i}o(@Bl%Sww6=HhZh`eHu}TXwF*DPxi1p_i{w6RbWY_g%7PWKDl{{-=`$*&tQ-coa};xx%%jX)iH8lqv^hBD6XNDc6e#X@Hq+kvmUyWaUxS%%#Rn})P#8-2 zd2ww0I~{CAShsx}5D(%ZN0Yt#Cv&54anNGi#!87QbT4T!GU2wn!56Y^3vhfI_#lvA z{aJZcncaoRJ7fhi-ABF3;p6cp155pnx_nZ6Sis&4E-R7sZna^Pyl!V+uK~)PJipY2 z_3~P#Ft5BLx(Jq(*Sqt51cu;^0~rN#gCKJP@GC-Y>G@MuO}r>&O_n}V{s-N3!fF75 zv{dKSml>U$s~hHA5&1CJE^}EQ_59;A9$Tg-1dgt4_(Ebf18speDfWbJH;-XkQkWPv(WEoQ1 z^Qg_E#bhUYgZSM@O7(exz`E%6;&(ASq?r?&i5^!+7$+RB^$W2+`r|N@!Ezyp+FQt* zQHc8Hlc7jd6#IO0y0*rFu1-*dg5eIs3s(ToUgXmuGiSou0m7_mBP5@Jpx09$FxP>~ zA}x;aUj?Mi?UWC8x&0HnsL1u^Mdp8_l+xDSc&2vBT)rXAsYu|1DF2EmLG6I}CPwAh z&dFG?c6`0>t8LinFQnumOX3fhe3>?eU-E?2wS9rwtE+zyzfbelOa*P-5FiDhJp)16h@^ziKCk^vin3O`{CC(rClK{qHv$YXzdn67(poS4mR zEMB3CX`IX4V$xlAEk1A?iALA(Gt#z77(JRqad0jZ<=uQts{X{#WT4?A z9s4V8kz$rcOSHOs#VZ>@|Cftq7KFLVhG)Zc(3F2I(Bq@&P2hmHJtU(vBzrULMSz;M*MUrJ?OZv@ytW{(KG(lSvm|bhcI!~_FY?#DdT|L5 zN1}G6>-)({7goY>LrzX_$jOTpug)_2!rJPh9am_7JD6F1h?^oHcYP=WphuBs_HN{| zLy5kJdifSYjBkI7trt)C5i_#V-qlqY%ZfhJ@?c+Ozz!I%N|5z%_HC?#xqaK}IenWh zO}oBLss?=GM|awa+uY+UL1G#_s|}h`d%tM zI{^`^Iof)D+->tTWbuF0HrG7&;z zUyk;LVq+M@S0cjXnMVIi{V7xp)LTysgrl!PD5FJJ)tjpER3(8sFx0OxjwHgUij`7a zRB$23jeb<@m#%%3;>QI?F*R8@n~KFjI%7v_F~q^r*gQ{Q@qXdFU&Og14}n z7W=UKqD8hM>$_SFZ>{F+@^Z>ZhAnN&Zxd$il68rL{6 z8|n1s_H6$v)Ykt0o=ojGZW@ik>%)1gomau$)NYEv7L?718*{^g$bINO<#D>jcOqBJ z3Est5u6+ky2r4FkOFOg4qd-{uvZY#Jx|lqr#xY1hu8;w+0FuPc!_( z{^3Bxe}LmP39TW57V~Iaf?z$n`>;ZAB-nFy8qV~1cVwiy-n~Sm@C2=QBON;zM71e6 zv!^+v>&L5YM*N%16{(k51w7`1|Fb2`_u1Q;Zg3SZe3<=6grcX34o zV~j^fc4wmOjNR{nz3TgAigVW+{<^tpq8qhyNKY4CZNEq8F#t}&ROa8|;CP#S_Y%C( za8ZBn1$1&cXfdc*khd64>i^0Qv(2boc}3HT8Y8IBHX~KACeL@6&2P-XwD|(mHda*E zl=1~Ez2v69n;#E4(&{Tt7K23+8=kl<%cfO-kKh%^)`#+6hnHey_RCb(26NHqEjTm= z$8m>Jg2t!V7bUuUL%8>$lxT17$4lwww=0D*Ua~ID2x@-;0@Km4E}gVN>hr6po@`~+ zg67|&5jNk&mWU>gb)9VcgPQY)@XErvyV@A0P!L-AIM83)_BQw}6#5Z1iQPMjfZdw4 z>L^`x#6d&Nk0B?y(1N+>s$+hr`E`L}34jS0s4P9|7NTHGJYePC+h&M@L(AZm&Af>C zc{o(Yp)g=r)e|T}P!0&kV1JIq3CyE76<}tS;8ZX;6;e1A=Hir}8S4|AiVi2UA1Iq? z0jEU{CrnIn#b$6WD1CrXS_@?`i+eGHpBXDjTG7N`O)*<*>|b{Pk3okAjBh^xx}c6o z9?`m$41pCF?0pnmdIXoe#pN%jl;XmEB^ev(pkaq#LOzaxBOkFvcnBhZcJX|Vci(Em zIOIw6WzII0dwn!&6fY;w>Xsi-TkB>f%ArX1Ygb5*__Y`grT6EcmWD34b^`{LT=-oY z<-?);`8$_w;j6mQtov=g`&L!AL7DX(94vAT>a+b}5*6wDYvOa$he(uw>3%Yay9{Nj z0=G~~V%I(CAGP=^cg~^UtXHlP3`xC;542?12nqbpmrA7t;z)j|aDG&{e%ZxXjm2km zBOG7ZCDSs5oPHpzEz4WAf#9C1ho6{w;CnCi;O2;6t&frl+dpP#F|TVKX|hoqOC8BD zOZN`R{y3H`l(TwJJiCVqBhRS?&EwH{n%A%esjLbsJKGrR3QfRl@) za8uBq)k#VvyH)}7w|i&nb^DX4FL~y(fZJ~no`1p7P#&(f&Sot`Q zOYWU)e;kpy2`ll3(p&xc(f-67|IZ^n@9b!QvcpSf_ecyi`g@jZ#d)?y^J3ftTgZa| z^5J5Z)QfJjiQYRt3K#~h|3JD}Ro9Q9H9gIHn9i8U)`HkQwLgU*q<7?vd3oNFB!ibM z6CFa@kzQ*+3qEdd$p+?=jgR9i7az_SwscAEIIu|~AH&Fq!}j<==ZXqMI7Za5P@JwzD!kmi7mugNEdvIZk=JpJPC6+CN4Hh{4h34nvFo2 zpMx?(f%3yZwam1C!J&=NoAN%=aNAE4j+PuEEd+*crHOT#e57R&&{)ut>XqMEKrqE1 znvo(q0QbcqC79fYq-6u9UTY#GH$rg|crblHbxf%%m@rai-u`MDr@d>wmhW})r2%bv2O z+*76@()Da%IgaZxHR9Y7WaU?`RD^~ExRh$=PamLu=tCI9dL9nX=BtPYY8!S2iRa=O zv}y*`YbCMoesU^@%R;BmTzoCqdL9N~CdEi@)yCF=<~xzl?FFnjNj#ifi8OC73^!l# zD9rc@us2Y+-n@N#AwI1m&*44gd0;9l$;Tunmv}ed&k{i3*%ActS*R{86KVfqP<|Bj zsnttblRfdv5IWy@IevQ=2HSVyea$&2R{XE{!v6f)WC>QA*QnQ&5(}PCT>R)i1_U`Q|skhVdX+W8#<~J{LJoOy#9k^R+3tPJL!*rmy*N z5GE+b=fJ;tKZ$f45-qKJ8}b$QE3JDiQILwMP3kr5tFd^=in7m8*s6b{!u?C$%e-r`IYazD@y7IPlq#_oC& zYy23b(Hz?d;`|Xajpq_}YH4@40=kRZ0@ws*<5wbtSRs~ra+8=%!&2`ifUI6)erD-J zCM+TzvT+aVc%g9_f@;Oo`pp`DGXGHjxCVO4c*~Aq!y3$=&O^D)h|luP{wPbhjnd4H z$)#mUwIyTn&h#5Flh(6*Qse4h7`e*#9J#9EZBO!4qek)htQudQ%JB>;hus)Aj48?D z3$+?WMkjhbuwlpC2a@+cDHhW*Pe6$4myNJ)v|Aj+o95E)0HGZ*x3pvYsKwuecHUZ3 zrTtlWVXdjFeV^wC`#y2y+Mi>DZ2R+g0spL=c}Tt4oHGP2{u`Vj@HCWp&KUw>hI)}P z;1INkpBRmuCX8 zhSg;vYTuUFo>AvRBLNMn{qEC&-wNW#J*vMnJju7+in_|%a(*Q}dUhXLYMy|G>zzsA zjRQKT>Yf*sBHCY%WCkWPOS-jP;@mlYP_%G=8B6H%yPQL!{O;@xWAZfEMvhw9WhcEO0qymVH+u3!wd>my-o^;-t>Sz?npl5yaT?IU`4sgnuqZN*3UtcNt^x z{WxWTMvdajg*I}$iH@!0AQsZbuYZvRmH0{qRzK8%Jg^b6V2N|6g$q5?`jPC!P#8ZK zX<(9eIZidvqfN|oynUymxziE15?C@OC9IqLK!^YLNZZj{`|Mcg%F261MUahuTYeM7!EUf-fDDKqf@<6d^1|nB$UXz=j)z8>Au(AQyn)tJAX`#89L0{ z+y5m+5A0%*_Z(_K|hB!+8$UOs`Aq$qpyQBfmC0!uR9k5sezf?M@zf zUcv`%9-;k3C4PS5=ktgG?;DT&6Vm9)BVQDPru&!#mhcE+-FRdmh+lxTJ9y+k;SrYB z@(ANcE&lpE@&?q`IAtDqMC{5uHd&Le^n8Z{SKRSRM)^BA@~bvFa{?zCqxfg<+3lZx z_MiUt+kfM@m&2woFs*HvIRVC@nJoVK@C}Y!=yBvx&wz26G9||WPQFRs(EbvN1R=LY zDv5pFprnIArSFfW;)}H!QD6SJh|$IT$g_9%=e+c%+zj2~VNhEgvaX_;T-W=J!3)cpYU95*ZJh7N*~T?0hRduNU*|1nZz)~9F(LcE_!f^h$gzC7 z>BAubzrvEH+pBJLg&0bb4=#g%yF=cJRx(U)Gvx9 z54N9kx;=K+))7=CEWb)SSVWNnsXF?jsUyB0XB}zOD1M{VQL-*DE2qZknDq!?ljw># zHn|ehReKXo`ySvF#BW0ad(j-}ICOEQctAJ3Q8sCpx{d(7(Tg}&U5`S?hv7#jv{c_n zenJB$qs`ibjJDKU=;-F9LHtf&*Sw7>zQgjKCo6*Z4*GNQ?)y{5PqJQhZXCY~xpPI~ zCcKp|a`ewkAxzLB8LV<))!D{fS7pPhW7I8UpIXl}#<&b#sg*=~)cia#GrB4D=v5D2 zY2{^ry`(riL9^5>Ft?$9547HVOGd*p(@>#&*QSl_bfxKIon9+%bEi)0M+gL+7S2wb zqtD9M`fza%ifmO`ehP}FrxnZBdb^}BKb->T%68+%c0zvb6IR0SwH(_?m7$!f**h4@ z7@h`R&oy}fcn?k%6mlUQU*@ss-Nr9fY%@U(J2|Osc9pbQwgB5^89!12LW!<=sm}DR ze!=g*8ISmP^e>N?cFFhSY?m4}ir-Im_4^k&#*y^PB{tphE+DI$4sOL){2|NZk11cj zPQ=swjDVyplxq}?;WlDpX+;01#owgQ$U41mSnCyR0uAwMpkt_>%zxLgy>R~fzlJ`1 zcb)&zeVc zjbNxBVr=V&kt0dM_B-Uu^HG<4gzkSbbmtp%{|KEp8;ft9%*yGY-45dXPm-il<&d0j z;NhwVBuIGX?~R2-KlXWLQQ@=47z2ERL{0OkfDqTquSHn5wm%ZYcOo-KPi_0tLN^k? z(v9&WNhRUy&h%~D5B;+k?n6Xt-V+4z*N|EJn}o%8<8y_|1-mYcv7Ll(@t0=^cwwjm z0G-g6F#6<}riDf4p60J1pUo!lK}}o@JgQjCVBpH5B7bt3jV=vlFqzF&S7Szv!TNj> z+yq|514PAMDa=+k=CFKn0oo}KbdF}RBwf0i`*@h_S9bXY!t$~7yOhz2rxXGMF&1J% zY>*hMl!~O~=a@$0ybmFqm6FL%=Qag|;e*LXAC{aYFAvsZVRoLQXZOy2lO-dMb-?ep z@MO-!{S&BxZvh2#;IyGW8u=YWc{J7=qrXQtO3#TE`kuW9X_V?X*GsmuM2!I?0A=RG zFm7YG-8jDptA?d-o4qK7%<6TnTVqk=N$G^*`;a6`csNT#Su!ta8|oLYQ!i;7uH6{F zBaI*RAY3~?Sa2_SxWnWP+BgKO_hW;KmP43-H#$v47V$V9;|lBY1H0kt&ogPW4w`*C zO|wH%G@~bJ#jQ)QK%^pyi$!Tq!G!ws==IuHr^JGn|emql)ewJp3rf5c- zgl05tC(SS!CG4-EnbBi?2gyhsdpNar1338TJT-eo9cMEa1Gja=N&WPAFUGA+DX8%p zX`X}A*t|`+fnst{>InwhOp(Tqi5EtJ1kT8~4HrvdTOi#yeUSN;kRKoDAhDriLk=?l)AYwe5=`>>cjTdMo-i2IY%E2ip8#+b>=l^kBurcM ztlj#vqS23!Vz>c@6`xo`&LG6Hi}mCOiMmn4yLi)~chRV2+~Kjq0mKy^LpB@EO~BMg$>f(b;D49~$})JT5)b1;@7J|E5Qno|*- zqXozqhIdC_fL7iFGL$r%+uuiuL3YTv z+dmNJuysBt&g(7>S`4RKquW2kCs;{hw&(y2_%dg#pn|U{{`G!-)0(B(wHtbjp=XMh=LZ0fI~!N4J~MqOy(f%dLMR7(Cu0n z%L(q%;#zYW;cwe#2ena-QhrD7BHwZDj`?BPSOo?XQBE=h|BxPK(&KPoMaV!x??k>= zcd#tvbG3yf&6YXK&DuH`y+&0iulXJdYBAr#s9e5B0?OxI(PA8|$oG#-lpe#~=~3JRJ&L49 zUnf0abkvm|Lv!fi%HZhX$}rqnhFk`U(ahnXvnfM`>ep&i2nx&2m%9LVMFpJJS?Ccp z>&WzjFjSG!_C=NC3=SN!lx|mx_fWRQEL%BUHr=1|8}J?OBI&6w!B~e?o;Nj+7euyf zE{TbZ`oZe@n^FgUTVCYlnfKOR79mfVtHxEAEqVQQDEAR4x9RHwwR7G9XsXjQeV@J- zsVXFFPz%C4c!eQkb3~sgNwVV8i<8X~pMh*tv;&r?s1g+0(jBO5q-vC}6h)HaXf*6v zzmQ$7te=p!-aboh={rSAi)_ito-Wc)i8BIAd;MCxb7N^)k5S(UO{2!GNLSltR_dPi z9o^z7Y>7*2>CTNk%c6}|8N}2Id6OFJ{&-Lh|S!Id4EKr=1d z6$X(>iUD6O+0oMfLE*W_?#q(?W!U3MzkeBKI~a8c0TU6auK)BV{#_n%8$meM9& z|A||^v+)5g%f094(X@s`dtE>7x2s;$uExDIb8<%>`;Z}wgH%$WH$&fB4RNDJB_ddA znH>aiaBJi7Bk0>JJC!#(;Z+0A311w^dXw<7Rm1dw(NMm^!;CKlhv(CLQA>!zzSylJ z01nv@uXZKS@xcM859Wa@@37of;+|bC3U7Je6;<+txO_TswPnc3d_Ik9bvoJ($y4Hi z$+qu~svh3)C>QvIAF^^?(NR*?x8TTrIpAmO1tpc#Kt*OpXbdtn!qyZ_tk5=wBmAg5 z?m;?yf+1IhX`UD&PfWYgbKHcnORAr#B^^x7>sh=mW%Fg21@fq-t>?#Y<<$bnBP(|Z zkq;hE-{|m7noSyCX*P$Z@cmo$i>w2YKeF=TM9_RW6aGY0p%p{oKmB9nXTRMnaYUz# za&w5<5)%DzR|w=odeQDi_EU-Mfjrt^fY&lkORLM+t81o^$b0Y24<@C7q*czm%3)c2uT3@Enwh{fqQfg42$91!zHzDb*Kj z=NC>vK4ykELXl8Af6Y&87vV$$@yX|F7tPd0HX16|u3q!w+Uj28St!(2&(scrr;JK! z>(~5PBGu}(BX{Z7s@hSzL4b4EKB(AJ+ z_4Mb4qMY2C#dTNv+3fTBeAl+ymjWV%>FcF{uKVPs1vYx}WF+V2Xgl z!5r8q&VyC^rmp4>^6r~j!>|*@2B=yZh;U~2RrrvWUtRm8phYqO2>nuNMX}QOH@p#n zN5%I|^%tYNHD}&Ku+SxGv(I*x=7>!&T*4VeIPTaL5~^6{Ay+3<)>JVgq_d*8!$Ne- z)0%3&7X%1etTkElXiJS%+pIs)6(;k(phZ8{hYy?I1;*4EE|)n4v^j?LmLOAI9q^J! zha5UJqQimw2n82CFn&r9)vGi(ntH(TXtI{z3Jm&$)Ire_YTXm0J!+_8a zlH`&o#}ydob_w4%HJ>#(5VXj$h*SixlR9l1d)``FPEl3Ba=hkz=Nnw2p0OW9lT9KOZn~j1jmA|?tFsyOthJ9=M(hte1hWD z`*c1*K64q`nU3$-&WBc`*|2%9M;$_Qc{=hCHU%g49sLOC6~t#KY{SvmJCF&m?887^ zep{3u@d@x$5z=A?Sk`)k4G>j@J@8c(B@(i7gUV2hAOZnY4M2twOl!yhHuLC4ilW9V zkT~{wZ#dtjD9wGG)p2%R5Fcb?THw_cWx)@%kT7a_aT3+ZHI;#av{w_jDzk!n;WmmEDu@~sazmbd8mbaCCRIzQ5z%!u<~Ju zel}iEEt42g<9aw8zhGRFA-@DINqZz$Sp#KUI{j3lx?*@1(=|Lcs_BD)nSMdi?>rCV z+q;Y1`0bF)#Fp;oVYqR%2rhF!a>?qKqs-@l_i@16j0wZa4LI_8`vM@4AG)}9)TW)g zvfQ3jRol)SLXYB~lw9{u_=&0-c4Ui$jfQF)po_v!{aIo4hTg=xfKJ;4kr;&`6GH+Y ziNJl~&<&WFy9A3JF^WT5%Go70m0?K*R;NTUy@e2U9cG>hj^JJ&@D z8RVM=b&V*Ww>mVltcL zoB#ADhmGLBzOMO6(4&c zT)V*5;U(u*hrx2^#nvvuWDOruiBQ{tF$YKiF)z&xK<L}6)(q0*9;@Lrq)f|eVDQGbTEEJ$y0=1Y9gc>^y!b1o>X+!;QIYbX+#XP)Ytd zyk~{fR|d@&fg0@*q*fmbns0QDp`dxEbMyqw`>i9`z661T7Ncxm${(R`LPX(fk3$-$ z-qMvEKg63ze`TXL05}lUkHY|K3ZKu#?0nu8{J{>$_>DG3Ur|zv-vq!!6+UmaJ_FeR zx9mxZNMaShlkdT4kddCYoX7AI|9To^pcqQ!SG1Y7*oudzVecnRvn6d?fbqG+(KPe1 z7Tb1pza9k zpnvKipMe1KD0wI6p~HA8@mVA_WQB~LkjnYxod~VtC+5U4!apQW62foCRhf_tgrix|Ll67}B#9Ho=(?Z&>N(QF{9_B&WG(Y4m%0&4InZl2QX! zG0x%g?9JpCEZymafcp8a>1H7>uRIeX={zrX4^&%Ju} znzhph9el{4>(sijumz~`9FAit2JJ<%A52KCjVC!hke+s_X zIGT(3MN%k?rEeYzSp3?9unvVeY-tC(05iUT;fFlIw#5)-++fZ(E}gmn-Bn*Ihl=yF6Nq#+B_FB z1B)}Iv(P*YDda`GUkyolBIUd@hr;B@-01{j%#awMH|}(Gk{DCp3MZ@i^{+!R5%R@# zLr*~%%40E*SXC(J`qup!z5v{h*J?}#U9m73)nGHrwv?ld5@TcEy1O(uV{tO$f{QjU zafw3DIb|^JT$}sW{R^U32eQ?24ogA!+tOFRIvU7 zoGs2i8}-gxv4rIZ3Wb55a?c5ika-RNEAbCm4~zVataF@%_nG)7k8HyKGw|QQ|5f;Z z9{yj9{~PiD0rUSdyl=z*8}VQ6sU0yR#e4-^{{On0>0Ow8DOnKjpPTn&zq(H_@9!J< zGUNV@aUW>h*BbY6#{CWB{;GLD!NAWm@3YMNPsaavhp4F zrOeMil&njZdCihGRp~5mrTR={&ih?CQuxybvLb~xMj0@^67<*oGa^LVAomZ9aT6Eb zTy)bIC3O8l?Fy%lf=qHDq%|fkX^qY)tZLAb-r7 z=IoUqE3Ykm5#GsKqNnc>+ZoDK?>zBs%S?a5H~JGMV)_#f4EgA6h4Q_@%0-(;<%aD8 zQ4!#YoV2~i2nVaDYGrGDwIt3s7fZ@}O*=Pu*_uPKMchUVMk#~abz}>w@+IAFdz^sU zg7yU8mG&fF<3Sb*;GCD=ipS0mS-B{nQ7!{6&YVp7F0-|+<@eFcDJCuAbKRxX4-q4% z0IN^qVR3X|;Kx@~o&HH6fZ8&g!PF*IrK1QiOk)5FUoEI95AX>yx0^DABKEg(2MO!I zT%d#VWod!8bv2BTK7o*1XBNye0gMIS)=lbRZ1B>t)g^ixGx3nLokgAr?acCA(z?W* zPE6;A_W%pZiqReTK+7dzFyg4jEwBMbu5@SDzZ{-X2;+=WjyLuU8zUrW-vybit8u-L z$)n$_or~X}S=JhCBTWRDf7wNLd}<6_`!keyCuM6Wrnhb9+b{IF-LlQk%gvrjJTfAu)K3esY-vKX91@+k7tb)xE`q@?2V$#GP5aKL>EqvILNm z zTjMigp-dXrk-vm<3!yk2MFScmA&oc8WjZe&*EJ=cGsX&yF&2!#8Gk4=##lJ*jP4PW z?&46>U83nOO{JUYC&Hlda+Z!bx_JWbu zp?$Sg8I7ql?ssWqXXRVc$mzGF(QiB?5!Oc}7-RkKo9H+}v&DeX?nT;9 zd^r*PPaGCA1V0(;(rKb8T9K>U9EDi7e^0p!7lo9W&}->OE=X;hf!&yATbJM-$4 zOU$+t#&op(9jsYWcE1f-hQq2T4_ZvhelrOj$$@nl*NhGkmu+<=-cOLaWWZ9iOc$i6 z-?0D9ZH_jYFXNmpahP5yTG}Pf7dzq<5Qh(NWgUo2g-nvi(#+D*hrijQ@qi7VlEKFU z2jaCSd0_qjX7Yd;cs%aQ1Mzb5!0|{5|Kkwd_94f6-zT_o&50*+PU4yFLE@Qy!^Zo+ zEpH;znXi@6ep!h_H#qUJ@T{zQNuM*E^f^pX`Wz-9eGcQeuBLn4N?&jy!tJf@t^ZtF zr28p`Qyl;D{xsD`NP^Tw*gk?Qd3=I+C!i3{Cm~CWJD(0$`(!Bw%IV8T24LCH&@?K> zjtn?=PmUeKp@B=P60F*IA+u*+GK=`4V@i+l&P8HI76vK|+vfoUa~9Z)@GGyr#x5W#2hTa@I*_ zfj-JpbYp$^aCBE=cRky#MYJ~}AtgD8Lx;$AR0`v9+{6c~it6cT7I=L(>x=r2LpM47 zPi>KEUuKXX(&Z~jH}K9Pw{cHM;)Y56wHZ-x@#|PpI|@CKcZQ3PD=LRUDoOnwk1|MK zDRL!^tF0bWI}p|zmtCMepY7~`)=3|92UAvA4k`dTgj+CC+*g^Ul$R&X2RE*(Wn+d(3;K3x6*5mJ3iFj<=(kaXZ z$ihx%p5lF9=zTwx-(#&!cqxIn>1K1A?hf$k?qKY`=@uG0aJqq^=;;PVE9wG9lbQ>? z%)k`e_GTce@^8J8z|vs2t;KIk$+K-KbgnJs#aKiN*q@sWtMz#mlS*g3F=l65W&BPU zlkS8ueZsPtX92G>z}{&+tttrQfMViFWs*o^3`(==b?>+AG6H)fl7f!7Ax7a=luJ(sx(quVn%mN9Z!dFN&D1_QhtFP|^y z?f{c7x`4?SUBKjvE@1LS7clu^E|`2V2MWFrnBj|^M6|`<-U7@`xMEc^|ApEDHGLr9 z>8u^|rn~;Mpn5IVxEA-}LV20iHaMlcz1aR&q&2RflD>MN4l+R_6RMg|1^3dD6;GQ? z^Lkc=D1C)TPDai$=hr$IZVUNCEm5{Dg~`E8oVf`i&;=|CT0|+zMYqWDoftpBuo|J( z{t)%*_oGa#lRrtTP8hT4gh{Cd$4i0ZS#$U}Xfbu=La-#0wd~2{)C0TB7Q&Nh6>bqu z7M+nofbjSAV$QId=3cP9{!-VRNH<;X|jpw7hwmSO26wFw=Ksbn*3(w@Qq*^Amq$Rva>hlSg1dT_K zpfC5ld6q1^QU;eaIOnFh__v5KXZ+KjN{IAlmGiN>3)OMm1f=X-b0)g+HeN#&E23b+#wBAjo6MAyloSl+M(el+Mg5rF2M! z`DjQfW0>t)o-o%57Tj~$4m`u;48?>(LCck}aXPYtJoov-5w!#EDBJ;eiFNb~Bz&hF zAeNmlB`W30-&*&|k_j)eC^8Qw?xK4ou^o4^O~29d=3x7+@Pnz(+xRk?1s%n_i4Zd) zcr(9Sgw!sX!tI{?ns{cQD=zJ~z=bh5U(f;bg-w67MzRiTl%x@dr>AVX%zRw)Sdo6& z5X4Jm>;8Mgxzbj2+r(7EgO%k$;pUdH>W7E129Xxt_wMEC7H_yqJQ#UMIgner{~$`8 z{9y6(=cUYCh9SaxZob=COj{L^k=CA|1{;3n1(V5*`ZaR#l8s#R-rB*R3Ej3CI-rJ# zkaiJp5EFH{nuSe@)NHS*O&M<3N}C3dd21XT41ba;32SGV_qkSS$h=J`p-Gt8ZE!IC z@wTIAInfWPL9?9pyAU2bM8aA2IpVUl|8Dr;u1x&OiuP2WaXgCjVD4+U^WPaNoE_i@ z;ys#{hHHyYi?E5Mxc?FFMirrImrTO~K%7h9tWK@d@Do^KW|XBc5HP&`UZ&RvBMF_e z(+N88rFz~_buf1TVEBjQQ9gD~pasebF4#X6NJ-i(6HeEv$Okxx$Y4QT50hu|K|k(2 zWvY~49rLr$PZN=aOqiHyA~`>iND~1*Y2IWpJ9(4IC@j&L5EaXt{`iGib;f5scEXe} zEW=H}q1!lzv1A}(r)fmPGA6&fRQ)ia}buO6m z)j3eiR|RI;|A&$?w?B;UbvVuu>Q2&VPt~ zXw+b@?C9*P7hz?oI~fa&V*no;$WHzYSH5CeQ@S>Sglm5c7+`Z{{la27ryKhS=C;Uf zB}zb8XGT}@tIGN;Wf5%~^F%@Zl6n>Dle5tf;vDO9#%Y$Z$$uYsb z_~*MkXy=$`!-e5#=7adZ2LE)gdk=n8^)S!_)xtCgJ5VWCD&?Nr%a!&=knXtg?ltc| zppgXYMX+kQuQPDJ2|VAt7eI}iMCzAF^YJ@WUeFn}Y@#eon1{PIT{Uj(4$gwExPq1*!Q-s`1?3zPScyCV+ z`-W0t+cIK=S%1`@?=QrwRisH6I}WijZP6kZB( zUr8H8KgUMP_+;#$Ki?+b1pNi6|DeAph3$_fuxNUeB9rdRn0RNu!<;%{Y+rNO1=w^Kw3rgjmGWwhgp;D>$fDuASTT*{zp`uHFHlse zjNU>JuK|i$8E~xi9S8f4L!3im_66~JKx8v^ySd~PGzW8C}a8Bnf9s68uy7S$p8UO27-W|>*S9I zSe2dhX0>+0q@l_AqtuC=%YLp!{=_M~@=n$_##2gPT#brQN}iQMo?hHj#2$b5!oKFU z;O(Mvv!8a{PK_$J8>slcEZRlgk^a~P8VIZ@|V)i z@EW#KYyUmHIj=TxP-QO`CARXKQ&@YfsLCGAyyg!Luc+sLnbVJd?ffW-hdwfSo8z{;r-5T!dsNG2rU9zM_#P8iGINN zA=W>24!&6BGWZII=ISkj#O59sB&&i8UAUSGg4TN0_<7(RWf8f7XMUl03l2w@HlvrD zKsowTH@4F;^pl0(SUR5GwK8A0rQ~|suAS|;Gtm1ghINv+8}r%o6hDdNWXy;40O-m$ zN*)BtJes!s*xbUS8;oH*&N1N0h4&-9)yq74co)Uk!}rwBG*&A|;AXy-^A==h}>;pqgJrRT(4cBoV0SvE?9l5xiimjcbC;Av@RuD1opKkoR&A_V&%?GBj6NWarnX~W3-(Z8Hzdj}gW*&0#*V(?)N1@Ln5xvz!UmL)a;|wHa*B@? z30FS}uw{T<>%pc?xL0|wnt|Qx!FrlKTP)5lcbXJ(KPKO6@P88iUyA<~=FL`5_Y=*V z-}e6q@0+k4_-8mj>{htxw+a88PRl0iGK6q;_8>^0asBL1KG!9mW69^Axxrh*mJ;aE z@|joo(geOR`COiS9+7+w%BP7aM|puilXcQucBze#`3KwIA7ny~O zqfnot`!+Kgn!F(?6Aej}Yy|P+yqPiD`7oom!#bs9AwhKw?D8yMB;^)*3#-Pp0 zlBc_p#!YtHf?dpV{X+o8ec&(Rm26q?@QUEZACMJZL&JnZR|crNiUFPOPf>6fO&LGY)PX`9Z z+@Ul7{$o&P!ul)nU&gxE3H%rNcbH@{|BmG++&hfQg?TJcxOW(M6kcQn|Na0Oo=mN= zn99GO4tZgme=`HazsaTp?Q4chMJ_(e3o~S0a@lerNvF9ATiPeGlhZy?1=nAskvR6l zbHqAs^#u;O&aokp*iV7&g}G6Ya7fbpKs3D!9b)J?qC;r*7#z}J+!mdC@UVIMtDpcJ z!gr2y$xkU;a?f_Gk;jec-JdBl5ePc^_GLYl~2X^;}Hb14dUsKl$a_T zU>{n3;G0+VLV9{n=di0=!yM~eq&i&2oT=+8sFvejgIxpfIQ+o{m+!>~hkX3^;oEo> z!LE;6YjF3C#@Y;eE`7n`Rg{U=WRy(pS$Hs|r$7!*!P)o+pvVOGO1X{K)O`ZnlCptn zG4MnN{u6=9Pa|C*!#lLK6s2ty@f{ZL|1F8E4}q~Vy1TV~>qJEJ58J%XN^3qPZAS1f zA~`BIC(%`daHaaS*g3p9an(3T!h86j@Z(+#QPQE zxry3U?Ac#;N|TECJeKVJ{k6x@I^IdF49aAEw!!xZmi-MWJL!Luc{={LBy0cP$+_zM zus6~jiFA(tXXNJif5qS0<}UEB4fpY=Wb=OiLOy68>ZSCh=aw5Mulkp0@4)t_iW>1FysV zV*N=Uo#4NHTvCc9cul?`V-DR{?WP~ma{iopRgXbE`^Z15cjY@WX;1{kYBQX zVKuB@;ue{`t^dKz7rR-Xh5-E)>~$~2+iX`@Pg*~-_QJhFms>x#K4Tqcjac`BPLG6; zygh8}U$p*#Gu|_-*Q_5}pU0a4*TVkc57yNt>^H5+(Fi#t@EwVp|{Vr($GO2Z+#S1_^|adY)((LK8E+q0C_z6uM5-{JK7E07-EYdO}*)>+mH>)X&9-eWytonozmX#XbMa=Z*nh~;R;HP)ln z(bm(L=gzebf$s1ISTp2sW5q|TXRUAIRQxg4cdebQ_gS}D_gUY!PO!dct+$rI0%;F$ zkNa_Qe$09To%s~rs9I!w3n%Ay#IC}-t=+A!SxuaMs9PVhUb1$vZpT=tS%0@)z#`>4 zI8*;A+yi>Bb&KU$U%*buW!6>JvDW*owbqXztDS~BgMW`Z<$hw_2&#PCI>|a57B1Id z_xk~`cs_6KWBn5s3tT5W1#fG}PsnQ>cBWw7`u@PYb)3Z3{5uA+ z@aXXby)T7c(rxoCq1UDN?V&eC?_QxdP46M07iWeN%|k0q-wth^Q!f8p`LM|n131Z3mG};2X#Ls-`aJUK5+kp zw-@t(x?bj!{KRN6SN$1yW+7Lj0JFB(UCkT|Z@2O0t2@w}S8r(@W;VO_LKb;o=ah37 zucpiv`zr?&`sKEv)gPrsy|>U)mbg^XmkPaDEs=Hk_W;igg{l5;k;BA5v9J1Z=H6!t zD^!0#Z$Z7t5cXTy(W`OyP`}N#&iVUS{>GPVgtz@IL}L+}W<) zpCgV9o^ixhlkXVPT>rhlywi|-yT@>z^R^>@$6Uk~bNya+bskfn-v<|FNY^_JJ=Hyt z&sFp9?m8i*t%chvgSh~=g3Y$_LEQq3I3FDX&#@>&r5M_?o|KKfV>uHAI<=$Ff;hM> zFUqd|Mi=_~TC`(h1_CE$wvVP zznbW8&cHhV`mok@{i&GAy*;I>2K+%r8;GK{RN5 z$afSw$!DWEW}zXZvZt`JTLAF}gKdeV!aLfJZTtaz-@|sS4>A35xcmm+5iCa~eI4m} z69a+n$X+oHkgIHwmIltJ%vcBG!j=4N*$rS}9OJIP1Vs;bk3MRrWN3<1-e5^u9@{34 z!xjdIE#o*e3=RbT$8catxG)WWiNmJx?N*-O*oukUV8evXgpB)jwCjJNU6sFQF>DQY zcZIokgSV%rIKtYooe^WK*v5?*YX*!p6JxC02U5lg9*!-ZR>qnQ7;8!ytKkjBv@%vR zQjuZESTo94aS;$0YtCHi<`g*Zc%P8L*5#ohkY|Qh2fPsO(=EdbceakWEZj0=#Mk|? zT}HtPu$JYnCr6(voZJ7q5X(#WTPoLniGWaeDYnaAe2~PP8#?WIEkEYYLbD`;} zxarzo5Iv72#Gepc%vVZ^UNJksr8eXPV!poot>BNr?ak^lMCI#TcL2XAysZ!kJ|gySED)X)$Xov4tsTGmzl#}w>u^UaxAjD zSE7G5VIDf41j01b;Z9DIY@4JyiB_r(nvQS73pegBf z1(m5ZbVJvAGehPe#IAh?1?KIPnS&~X;e0*A=c@Y*xOEDcr+_mVI3I3pyAC?G z1sd2oHxpQAnKBn~tB1dSnU8Hb=u3a~F~|fps>s$#8!RIbzvix?0KO1;H1`a>+tT~4 z(7PSIyM*5D>D?przM0x$A2jE0Ar+HXhPr)6r#I?m6W;AoL7rzLZ^HUCnxom2 z!VX=X1A{rb6q}x_ssF;jr?yRcN}}tWEt6??TDwu;X_F1^!2nJ&mF6?r^=>L%`%-M2 z(t?Y>aIV-1DKJ;Om7io|XMQkO?1FFG9KnbinH+c8p3ondBF!yg>gDO`te0oHKrbIF<8^c`lqJuBEO`Rju0N|%c0Q2_r0k5UP(Ufz^q7(iR45tB zY25pwwImnVwU@ZGexZyegqAl;^-4du#BJ2ch_R&TQqrnRNyT(2|Dq5Vm+&FOMiPFz z>Lg$2j;l_1zN?e!q(>$E9wRaKs)XOG-c3@SK*+rw1X1kkFJdy|=Eca6em!2N?jJ)U zno^kJAB|YGKY+-Jg=SjREZwq}EA&BC^K}M_4u(1wL)fZgv8~l71@bA}9|_hEa9_Wu&uQzvh97S{lB4ONywYIlgntAg*#^-@b}^2$@&}e z?NBZW^dS!@lc9`D!;~udNT?5aC%UwgKID631G_V@&cFT-;g9P>6#5{bIXmUw&e(e( z9#kP;f_wEORR{yq!gC^3$ZmkO^9IIi=P`t}^O(3UM8e-d7ZQ{e*CXtSe5uP|8&H=a z6@3WkQo!TmhQ#l$qP?0*s9y9sd-S z`gc?kyBk^ry)1E>C&Jnvu7NBo!s z!Ze$vkC5mhyG_zZ?1x5$jQK8pl8ycOfsA>8e3Oj>@okee8FOQ@ri8_0&7>F)LMx3i z%P=ErGFKyDvUr`5x3lY^Cz_VA)(j_Q40z&I!UZfZV~!U3RFKJx*tbZl1`(PXXqY8mJ=F2M8vEHxC|KY5RlqfiZlaA6S1tMAeK?x z5laZoUSQ0=`p#Aub8d$*(+H+~IIulxJ{c$r9C_kv#H}8H9A`Taf_Vr2EMUJz=gr5_ z612=f((Gur>rq(D;R^f-%Mtf%JQHcwU7Bnn0v1lVwVnD{UyjKWQ77(i;O-y9hrRWF;0ZYT0~AnOv#tA3ckxc)yAFvT@sBR9g}_q9mT!TDM+} zl3q7njfy^BeH5KzR{pqFiaEZ5*46a7-P=c10e7RIQ=%ed@VH2)1jS9)wm=AW5i=@* zED84_E3f<(?%e_%!hzOSkkfU)j%haiN10?&8!llz6OCo~Om0I4wzuI@fl(Kf0ADzn zZHU{c0F*}bIGr^Z#{i8qnAV-KN>_i*=}wJoo?3Gk_UJ~Z#*(H}-WU>hS9Xg5WtTsn z5uTcO)(yWM9zBl)zN>eT*+qG40>Gd@p}*&`zZEyl?n6yAVCPTVQHhkVC<-MF)SiyHV$WJnKR7G z>BgN=_-LNTBN?_RH8@Dqg7J-eV9cE&Cw4-aM|DbKKIx+ZFKaDm39?Ua@T^GUHb?-evy@I`j zBT>Ahcepl?AMU*ZQ1!k#E)%d#(jN|2N}ztsu`yGAR98lkMwdAy%-0#R#x2XU$%m0$ zN1kvrl7c6!P_z)o4Q+$%Is^S%(1z2?FrjCh+85cPQC`@D#vQH>O2G8&^?>oYA~b1v zaemCa*uF8oRB9XxU_hpgVN6mc#^H8QryF~b~H#!WLWIp+kk!rbyFK#YNi`4t06i_eU+EA^PtB2S>-oQ z7wk!eL?O-Au^?O8*sr5tL1APVlM`D!0?A%aq=l7sR~ih)mq~FlGdZ05*3W8lLe#MPx$DY?Ue#K&hBy%6_a2mw{KslA5>R7O%x?yBm8B&aL?< zN~lfiqq43ItHzJr6p9K;VE9XV3;VFXig<5kH{XpfIFeNC6k@p^6xLvj-hs)f7{c&uS2>9%lib=G1RW}Z^ynAf?$gWhVA4zk?y>;S0?i*5;*gX^DYvh z!XlnanCitzE3o0VnxvIl4k&^bN=wI7%ek1l+wrUHccjVU38=kc2{;GN)tA9QFErV~ zVf>Obc*Z}JkuOBPIHoUlBx$3EW}J+F9D;)oWF@u~*MknyYD)og6xdQ^)s{kSeTvWu z(j1S^N=tiSY2>cH2U1$mou)=C%o<0P{T&gFw*wRs_$&5>-P4Mx%9e2yXjBnI6#NQU zYfxVg!h9>zmzOMjs3m?fKo^?s|3(BaeA1^$jlI9#qFcQikt6w$Er^H2&<1Nkqxg^lv9|#iSww9O{s?P)gUab1bJ?0U z*UBFz_ToERn=P|?)g2Da76<7xXCTenfXFz7w( zIL9OBY2uXETR$XDo!1(t!-Ia{+`u_+9BnPyiL5h{cS~pQ4-$6dX;*i;c=T0Ow=ABd z2q_w@I0oa=8Nr|s%?areMs>)WxMH;{Kf6veP4`WiFFd+6oVYvMZ6=)Wm99kU(}1JX z?{CYk6AroV%3L$xjz%kE`e)W99CN-2G4%faS5oLVQQBawmYrn=)dLe|Oyx5pZbkg;8CI2SY$AsX~U7|**I zW!BCDNeeB7aIwp&eJp?nHH~($$B#z=&8q^H&$v(T{Lp&>y>mkEiS*75y;XWaa>f$8 zM(-=37fX#qbArlYZkLa*p?4%1cu%6Y5_&&C?`Y`#Aibd?YW!q+4-IY1*U~#T^w#P9 zO<3+J^gb1q+o1R9(A$Jp+9;%9J+t%?z-?~}jz*>NaL+#$?szg>F$UalEdaT%`C%k> zlK!WVI_b?1@<>N#{%~Hd!a%$%@@0Jc`@NkQ>vi*4*g2n(j`^gb^+6jxa=+4cQC?dZ zLId6bPB`atCnEH?wGUv@!g(S=4)KcM-GN@Py`GZqn>*)gaQyf4-66_1lnLYb_PC}6 zHvz{TJLeVR*pgRT)*);nyDlW*)L&xf)?b#t|B%10;BSBJ9mvxc)Ke@E%;U zC&|lTYHyEX65sea$db2wJ z3;HC=&}=J%%%YE@^#Xh_%i55TV+dj1-VIgWfLnHG@f^p4*CQY=PG2BWJR4*_=#1B9Iib{kZt3 z&Uq{hq(=jD{l)I&$b2=0$R|doCtx;93kV1#J=K?pg|RpQJUmxY?1mW9tyTcNuG$9l z7P5t$vH7NGQtWG{z_f7ILyQHGpiq<5Vb>Vvv3b_mnSreJkhN%KAMdAQ;S|9XT|!(rUKkD~*{;MU83KiCNU3(DJh4!kA2w6_9d9 z1}4L~MAyu7qPbCdN7$XLMd6Gcr=hG`lDuEW`3< zWB{u^fV2urX)p)0&_{O<}%QB^LKAp7@tRNbnptH^} z|HFuttsIe3W1Bxhp^fEXsDjBi&q1V&P$;J$=7F;dq`uMNz$i#YyRYb@ZGnHYC4eCvB&zOd$Raf>ENCGmfr5g}Qgp5a^ z5iw_KS~Mc2FU|zU`O2Z_K&XUWQQ;Mn+NTh=S)Gs^ln$`McVoIatpA}*VH4AkqfJ4V z(Zg1_e)5Xf?Eu?o>DUh18t4+Uo}6nfI69bzPqI$@m4(fgV3mbPZ9mRgBL-&IFG7Ai zf5t|&rBcx1eUj}d3OojDB&-wS=`P-AI#J*;*sk+$Te?d+rMnP7Rp2ogx2H25_h5Z95F46mN*?H7x3;#3=?Vf&*%u#%2ZurmwWWeXjVv<6B4oeeTQ=rYVH zF}?0cw;fqZ2Ku9R-5A+8=OR0@Dc3dkr3f&y!ew;oTyc5iyh5D1XlHuECIcPXrlmKF zdZv%r5MGI_MNbgHJhmjphK(BvEbA=vzavZ!Pj?x0&~_O6v|p$qqR{|7+erhY`qGp& zIIENX#|`h9!kRm&3Ip#LmQ7hL)LY1PqbBrNhU!`vR@w4nTBsXjVV{(ReUL{wzNVM^ zm*dNSFP2w)?f+>sNTB18wSO#LXw%TTM)y`JTIk!3bvo{K>$Gx{>J;Yjy12&jisKs7 z0mN`kqAks8zSe*jT!*BEYglS);f>qPIMJKKjxM^x3CcTBD%2u7 zIVJD?0%hOD)=G{nmJ%M>h4gD&7Sph#cY?_;8S0wZ=lupweFEQE`Z(znc2Sps!Khu7 z;~xTcIoemf1t5is6;uz_uUJ0C1D|Cg2?Y253@IQuh04Wg2dmEn*j{&f)SO*`asc-D z8E-W(mB=w=21PcGYLy#um2DyN%6`js6kebSFgkt|G6x3al!qx#o5;b_4ZvP5i3Y*m)c7jAR5!ywKHOfxHl&xgjr5lhJe! z77yMBQ5~)X$ccPTJ-9pKB*Gv7;@~nes+}r*qvQOu)~?S4GJ+YL_>kYAzVfr{Y}*k$ zy~P%B{8&dS}4KRt<+sI zI+PLIrAkG<_HwGS8=959T!g5;<^gPNL99-!rbAY7RdiN)VFLHJZ3g+6zG?8~D?P?H z9X?#U&E*zJ_>1Uv)vxnj4|KaxvEv?qnR3!HWFa56?NYebh4W3mGS?h&=hh@_TdBPh*%h;_srQ|-4jDb*nVK5-^ki% zeY93W2T5r*FT)7tq#fTDnlyxHP#)YBKFVQE)|Srfu1s&0v}FA*VE%QxA$M!s(2 z^YTqKuH{!oon2>`s8JeUfXe`xP{*+9ukaEKAVzalXEw0el(;GXJk-B&9YB@$YqV#7&HxQ@tg??Ekh?xMXjC( zdji+Np=~(lfKGYNtgs0+N_O{yO-QYdx9e;}@EO(AU~(WFBq~aeBsDcjXljxznwq3) zYA}jpni^L%HCXpCM=%cRNnobvIpINhqo zK|_(ca6LmFiUA(Chklz{oMIm?2I^7ucu(!qsO#EdZ&mc+z3MIWam)oe1P*GPAC`Z; zaL3oHgoEFU-iLZ)jtAbe!(Vuw^m?FyF>?byIxjbFq#Ja9lYEnno8^l)RPbfloa;h+ zraDt@%=TZxVz&QXQ9AE*)Xmn51du0b?O@xo&gC2^d75(pEYz6t6V>>ZiTGtY+8(2% zG=D3*9)d)n56ORfwfL-#^d(exBBjiDcVlWY79_9*0S`AD-Z8-nlp=Xj zMAd0GyXXuw7${HVs}FKZh9j$v%F)&W1Tkf@XK2^WfKQi5jS29${cO-rbw%ou46 z7o(IAEPS<2vfzUo{wXMF1LQky_y7&oWbylTJ0`1ATT5jOO3?;awz5rtJ*T{4s--wQ z9ghjHE&tIUqNO@#&aTR+T&Vp^fT0*tusCP)+?0)5`S$o-Fjo(CU2>Q1o7mQqUE7!K zU^+qLzW$H0J=bN>(_zg>VHA@nZ)b5!!J`A1w;bzvD)sP_h3@zlfs49sg{w(#^9pQp zH~+!CZc>H9F6#ihhA`RIkK(;ZnC$IGuonoE4gLuBTf$_QKZ5;^Fkl!j_bI|&ZiPKf zSQ~!N5GHm3QGU-7)`lN<^xI(z32Vc7Tf*9K-j1*~oVO>e4QCn=w3l%JacL{#K*HL} zIEb*eG7cuJtqcgx#?m3G?_9#f+#!O^CroS}BG@xnR;kfM1bem>Mq;R*fjK!=4}pDx zu&5pa`z&EmJp^_uVNpERarz7=r5GKYc(#}%uUx{Bt&jLG! z@gjN_*sF{e(X+tb%Xnhl66Kd%23XYR67N*T3;SH>Mn^8*$J7GeKy88AvOtb=M~aTv z@q5c@oe#SxY=;cVpx2nnpAW+7DOwuq8zYYF1CW&@0aQ2pjGdk@GARbk?JBM>iQ~NvSBoScL@6$TuqMVD#^4;Dc3s-ST#ACt0dDH zjH9_qGL6AFnyVz!80>1oI22+qa@;COLj-IsgPge?b~#}rmsmV3}aAhU_2V2j5BWZIGdc5N&`<`oHG|HcAja*+Ubax6e*7ztoc#{xp*!z#ITEFd&P ztdeEN0z!ktD*1LSAT(>Naw3TWsynd#A{e=p5LbB})tY$JMrQ5}t|pOSRyYd&1bi*Q ztacR4`Mf2Vm5+jNZ4YJ>M8TZpgVbc3&9(R=Tj5Rdl3mBVWY;k-*>%iIb{+GQU8`5v zun%uj@)H^t*a?J5rV;E!!X)PiRwYcbk6<;zqzu9^aZ+BUOwD;pCa9K^z9TktLn2de zfjIn04War59gBW-B<0AxOS7FsU@{|lZjHE{&zkHUlV=voOxj|2WvvH3x}BdGIW?hY zW>S?yjCOQ2w!Unr6nPAxJFR+BFD=U2e8wneacrjKZI7k0tZHieZ3`E6;cy0=M{NHK zqanDqEzsF+*obnqdOITP$!xcFG;O|5#h)TA>5|nanUOguT5x4;W?4hl4oj?F+HZ5m zaYZfAqn>Ha*kJX-4j!6}H~z6L*f;0L+9GY^dan!6H`S>pbU;e(xgko%{xEizaKW06 zyM)`z-e?)0WEpe+V`ccL$0tya+N)@~tm)81<*iuk%hJEKL+_#bz39L$ohwrR??_|% z4ks^m08)VgWkPiiccSMKx?G2O40I34z@S~vNNjFxwX53G^M=H|mjwOMxewSTha>0$ z;yVnwG5F>ybBuOduywE{A?Q^i(#m&NYe3JKdm82TcRMS$XDe>?i8cGi3WQFgch`6rrWm8!PQ2}8~d zNjICwCR1>EiYW z-anunLjH-!2Cse`NDm5fc_Lop(|&d_Xm1F*v{P4Q@$4PH^YuI1U5RN@^6l25aW#3K zTFqM$Ka@9YgM-3zF z7EdrPVMhZU8h<@Kk-bmP%;yNu-Y^=kFQu!WAp5JngVq!xjGPpFfJXLQt=ZHl<$gHT81AG__va zQ|^(Oc@yj9$LsZ}O{>@M|E+o@a7(j=S5aEeJp{Xq17?>|W&?AO0IztZHkd<~+DSj3 z=r?L{h)mJerryJ6&WRVT**i_<`?Oj8KP+Dk>H2=khtmISz3rF81;hwc9b$vaq|l z1797#2rz_T`#%W@btMQ@!yP$$atYIWH(?xOM;KEI?vj5$X_x?0m1AKXb@w}3VmNF(o8ztqRqOoawOEV*% z0|S?zmWMNnIGsqFYmH;NOm zgmoO*De=0km6cF8YONgX1KC`sDqfNOwHju6{2JoYEYC@HDtsY*$p|wdK+G1OfB6(XErKnJx(nYvk?WzS><>axU0G9McwYM;G~YOTLi=q9`SNGi z-hy4m#`oF8fmrwhdJ>HvGBSAq^#Ii4+jWBc%g}RR#-Rlu;>6`eX2mk%Fy^S`hCIJc zSS%Bi5tN1NPf(VGPrCDy@&d=tmBKHGkKcz;+jlC$IGB)41_rAZ=+u^Dg*-Gm1AaLZ# z4Qac}1=Tgnxq2wznld`%$$(Pnz02a@Z86J&fJ(ex0O=>Z`+*$>>qCql^_}DY z2BFyJXY0HElkmt@B>oQQUA7m`r=NiDXQkbk+W&133CUVJL++@{rAm&^5ovo5piDC^ z9|J%xSH>08-VXuCwPTy*E@UrRI|K_!GfV?69f0W9Q^xU&yDq48q|pcK+rEdHYe^IXUswq<<|ZDV+rU1x~@ zlOZrE<9-b8?v(d))VVeV3@AT=Bcj#EK^d?U$1*5e+Zm$5+J4#|5H(qVHcNETcxi|8 zP`ZYA+an?m-=tRGg8s(??!0_@GZ^$k2;ZDnPQzSB%9hglYi~zS)vm^zUreTD?TTQc z6S#?{WL0~DE7}PU=WZ&idG02L7|xHLN?0ZaGxu-ID9peuSZuoug&AdGoN&~B#1cUq ztPM_z@p;E${Av-N_hP%MImXOIJAoS(W=2bpB8*nsM7v_oME9&}c1^&waNdhT9X{`G zk?M-Qh2Gj9Q0-zL@^}V4$lIwqH0#LJLP4r-KDB4i0zq7@lXQgF#Wu%1*0AA~yT1R5 zfl-)JDER*aN3p0;y+w#Mu&mf$C>Hv?=df5U;wCvZOkt{bFmot1ABHcMvCoODST2;y zg;H!9E0m*otT?SOP3E%V^zc@1HaSkNO|R_(QbJ>^5y?yu`xoEwn%u23Qj;;9_U>6 zLtj#UJ_cW|vsK4rSv$hNKmL6j<0X);Uq|A_Z~jv<2QZ_J7V?FcI*ncK^TW;VQz<0#ccg@&C-ocmO%+uS9BPpS=jP9lUeB zA3%xP;~4yAxv93gi>qqy)5)$@Zf`jjq>j^+$Abf`CI1QT>-gk`u=%Vz?|l7x``Esi zOXP=n;1%Er3w|>Z{DkC~&%5xQ z9JpTpAktqK)t$1Bw;gJx7bAHGP}jj$z~abM{$*Bh0$qW(pn>9(aCO^m+ItEP>@iec zZ(_#&!(k_ZINSFhENid5qIr6+!=ib5ulMM_1kilLAL(Kb#JZkzvF0nONpS-CR2tofy#qK2s=+y6f}OuA>qiZ(fB#t zcAX%<1~P2?0xt9yWj^kS@dt6rMB_&om_*}L^)OIY0b9?{(b}yz!|HCAA=~7N|7Iy% z3tf)RbKLHL9BN!ZGLjj=TSdxUny&_x8el zoYi}0g8EjtKVbFVC2pqK^dD)K%c7g5Z@u54f;{F&sb1u2$`Sm9HqsMl9-)=Eo`FCb zxW5L$Ro8f->|K{I|5XW5**na0Y6CiHv*wgM9lSrSKRX@M^)DG4yH<2dO2>bh z?k5%g3f)hs`!%|sRyQi>Hl9(pL-(`lPSX9Hx>I!jO5GW{f35Bu-OsDLhwk5~yN~V{ z)IEjn-@+|*h~4p8`wOs8o)zv>)LDt>KG?9G9Dzv{+4n7LpE@hcd>nZ%oh{@HzBae7 zn*Sh}DP8~$PO>@DER)l-fwW&@>mC8Nmcz!I6iy=S$p^;b}2$N=?i~~Dh zQr-e24VJXqu{t71-w2}1-;TRQ+8$B)>_D&7p?t!mdxP?$H0dv+ojpI(6!sV2!>tWbo7D(Nw`zzyvg-{i4_5+0Qv`CTj-{y&dHZ% z<8}!G=1O{!;|Q+w;Met^LwwDG{d{~!z`A&wmG`V)Xajy=$>6QYaJ zzRH$`K3yXm1bcvdIwO*ke+T4_(R8WU`#22gEJTsLupeVDtWOtPg+c*~t%5GLlpsg2 zHYPc`{v#-^doKhYLY!Zu3G~!(CFLyjGBG3$8a8`HAGmD_L{U^1MSYd6 zgW9g*nL`}lVJe)Wm`ahI=PpN*WgOMW1T}tWBQ-9hwPvLAk>lOwSs`{f{3G?qDt5!j zm^Vlwc_^3-+j8hV7S7lo_2W%y{1n_m(MI ze35g$$63w$0RpnN$C)pe8p&YEGY5@+G(em@F|smP4Pj3nAo6^@L*rKR0DB?m&{>1? zS^+1J99>`XWr4USSu%EgX754L%Hq}-$=LOoy*CwqW|xp}OkeE%+030zbgzgir^{X% z9pCsJ`V3Dhy~t0U9>@P4sRcF5&JrAQ8QaPE_V#DLaQGLUjl33Zl9rpILJc4V|Xo#aHlAxAxtz z{)jDH?SYLLHdS|nAUH>^Xg zy$%HYi*;zBxw>{v3oKk?w&;xi$X;xlAOF+=_Gg79W$*G!94}@+><kRgvfbuZc zBp{{Bzmz4Wu(YI3MDC8p)FXj= zAW#---KlmpNxsQ-Y)0Ccv$HJSpb09=_0h60m6S!-S^Yk+u#Eo_Rk_f;qr%d*um$9q z`e+lRkkmu7(NZsMLmR{uQ!$4FtFQZ>cOi$d&-sMETW*Qo^SI@nU|pwS?SEVBrJUe> zj(Nh>*ybUhF=5_(Wq3@NHJR}a4fCXj^i#wi6Tx#HfF~@Fn)PM0eeD7)+GqrEINH!V z2_Cz?oPAh7f_?Q~09;2J*zuo4v-wp(R(~4$9MVB-eHh}q-Ny0V{y&ZH2meKUH$tn<$_YyaaW+c&lHUvFnp z5XS=b*I#I*yiaW#o?KqFJ4iL4NN5q3zs>s=Z$LWD^!AtUg)9d7q2Rw-X zY?+2YB+UOmA!~ib&;@0!OCq}X56fCDyrSgo5sXRO+6{H)FOZoUFQZAY=kO9g$;PYv z)cJR$7ed)T=1JTr*z$XzyHMf)dY@t2TANe$K)ZtZ8(p7L&Tu~ph1&6P_f z{CDC@1s-XU`(t-At<17=UwIf;@kv_yODmuq>O^xSlW@v4X?nX({6;Ye6Q7Z-jX!6a zl!1I6LnLV9RHK7 zkL$0)hZ@{-@C`J$Oks@Hxd%iIt^^wmE`wV%xC)r8!CenQO*QI}5k7?i8VMrd_!rXc zsvBhPHd5-onC_&y!4`G8Z)6BaHq!inP;&UPP1Vk08|#>}JL!aDysyp*lUCv|Hb*;* z^-!9M^i*ufwmWI0&*OQqR+=tc3)TsX6#hyB@po<|e3H!z$4j{XSMNq1xcKTmHX~Lu zS=?MgkX%|I_t3VEiF&dF9)!If9unRG4@c}|NV0aFJ;l47^7xMOtu_MWS?>lx8X!E= zV*>o_I(w99dV(|rXc~evK=6;+j2#`T9P;5E8UMuh>q6T{fEcmT?JmixNnV~&4xDqF zIFyj^mvf6D?f;3p`RPTUK|*t3#p>;W6LyKQ*DdNBS$mad&B9=pl~)E=bjA*C$W>0V z)qEbPu;_}(C@eNe!%<`Eg`FwLko~x9%l6~~=r3ZnjK85{=D{nmLhE!*sJRwn@xi*e zY)pV#ZW2vtMU8%9xpmAvfqr71b?eiU*K4SC_#-``9`ZB&i20J;7u^vhPCBYHo1kRu*&wf_B@h9#qdx$%V6$ z7B&XC>ir199mx8^pxC@tXPtu8@JiqVwOse;Ok23!=yKEBhg5e#xb}hu;RTy~BLEe; z*HCGSLcbq_ttN~nJ$9XJGHCXLnn5yKY-6kU0iZ?q6naKY1xEI$J{?9Z^sK>@%KUFW zHAr0Ok@vHTy~@pS%`^A(MQMe2^TvaCwzr(M>MQh(3>NyL0q*}1!@D#;SG_S7m8_vi zjqdV7Ar@6Q!L*83n5JqKvH^MGo{T`5z}#GQ)@ebRh$jk_2QgfyshW6tVLH^r(^XAe zNMJjVcSV`b+R=1%8C}f|c9aWv?LvPM*hj_3W0dl!^rDS_YGgc9b<6@~$ zJV!5R!W&+~Nc?AbMN@fVhhl&AR^V6YH_uE?RU(*byrpXXLkKO!u3au^P@xQ+<~|(y z2U)kLyLurH!J6l7U58z)_vPExBldPF$C&nP=G4x0%$_6MmpkTtNw{xtX6haM!bbkr zf5?-1O)fZHMe<0Bz7+T}Y!Sk~0Y2oE)(_6Z7+r$;)gX++ia^aiPNHFip4U8QrE|_o z#Q8Ym2&xsF-XSEhs@&_At>XoMfzgGfo9@cSULiH z8o;ietruKItGvKWPPdXn0ufSKA?cJ*LAklBkW4B~WG42I%gx;Cu1xZFR7I=KZH2XX zS>h`sh?Lm=ft?AjfR*5@gsPQba4~lwBXX2X+6C(uzq68R69)I6tkTcrEDYS~u2Q=V z1hDV;qbwZQS~z0tG16CEe+;%ScRU?EB(@;7w+gK@3roNi__EI(>}*@sy)wr$j3<>H z*T0gp?SoimL1Ls`U>H9xdr>~qJh0(oeM|CCIbmcNH-1neFbtzqeJ5~8R1d=6SgR?U z$)&gvm(m0fA;@Fc5zthjYw<6Ef0f<(XQxa4iwNs1P|PV+Z;&!>Z7lfM6 z_rt{Fi})MELv+QXDCIuZK@KTY?`IV9cIx;0XS?1NXp$U_Bc4Kt_IfIkg-cdu(CU7( zjB{jUe!O${U2uP!`PSK9S-e=*@-P+@&|D6vfP**T#7$w`^(ls@~klopm{Jy$ws;h~9?yPSV>* z-7$r?zr9O%C%w(&{5$DwLY=DjZO9>5J5SMy&~9uCv@h;<#ke65`cE)ro)S3pBjG85 zOCa*8y(bN9@ayTZrnJwOoRi4oVtK)ih8Hq+&P~_0ct5>wa$cMxBb?28zosNZ)?qGYpn$#ptE?dHFA(2^~SZGr(pSVIq>r8j6vSa$&EjwB&;@3cklBEO;j%l zoXP47WdrR=RChZva3`zR2T>B|tb}-X7rcQ=ps^V+u>oI)qYqt;&EW&>%Lh+1--&*< zll~bfs4>KdN&if`w@~+4biavis00S&n`{j7+w8~RMg@O3=Hhcj0K^iZM_bber+pbHIb!P5e%wo5K3j$vZdrzuib(3QKYpkrSe*%%YY}kilps*8g5iwyP2Jo@-7DmtLdo5u3Q-N;Ds4sQ~D?MCvi+fcV3 zM0J~vK-BHbGdEs0rbi#%(>Y4mOQy$Qh(eHgH6HqI`r?=>+1hn>CJ-go-c`Ukhq%Hj z`js{GOOx15VkqdRFvil>xxoJv*~bt9n}JZ^zxb?;iblSvf-j^q|iZ+-53n(?9lxxP7E^6dmxNLjEmeAOMm< zK;f^4J=&hwJN`w?<~pY8SN7W95Z2ePe5YSnj@=~EN-Z1kY>}%*h<@@6Zh?j$u4T*l4`S zw$Qtj(z5>*{H+x*j4=`4|n~+Nnp6S+a!hDn7%>ox4de#jZhV_Guqx?({kUK&z{xoQ> z*1LsS&uu*3PFJ_aOIlUr_7LjclPF!1?Maj`$tCbsa#kvMhYbm1JUK2xreX@KU57Q z1ug#dNbgifng0!R3Jnp*wCsygUUR^-dy;5z;wqw)+mj9^?VXX*RGD-Xvn~1?F!ydm zoT9X2vt9o#;N5sTV!-_sy5FJhuhPAny6>iYcjnTHn`X?l z-`UW0{D}FUvog6Pf$gq&UjS`RA)8CC!u-yd{!~y^&fNmL&^Rh+S=e1Wim}jM*|lzJ z)mVAelGLhYE3rxqql>L-zFbV;B*Y>-MpOR@p`>ft2Np*yUv!2imSE8 zl_U1vH0;Rmfn8RxkS-PYWD1d2NT%dZhi6tYHNTW8Iasx?MB5}%V|{iqwWQCfWC=|Q z)ZBb(&Vi(Nej11TO~aAB;95KOcQ~#ME!37{L^Sq5>7*aEhwnfSdm=(W5ARgB(8FF# zNE(mq+?bdDbr1;PuJs=D>yJSP+8NmFvg^z%I<&tbRW75cm}z@crNn9&#KJ7?I?Hl> zHdyUvuuS&9hB7pa#{=(SiEVOGC`a4TJM&IsZ|0V0?88s8aVS3+eTU&I>6793$DFeW zN=e6mGybB8?`jcfC)e5w_2Lg2Imw~UT-g;*BT{33W@`ICq@nxO=H&?;624C2S^m}LAnp5yUxGpgG5yK7^=2Gh}HI< zK_V&N;TaE+DdN@AxZab9h0c(I>a3v(2~sD224;R}T(p)_{iv3%iO33xP=x_a#M2^Y zX+;H&0Vi>|f)spQ>>}$=E6g)oOgVxP!|Gujc^)~2O!F;W5pN)k>pjP&IS8rjI{%X1 zlh!h1uX+%60`q5BEdL#^3-fPjKJ7Wpj;MIQV)KAlM6AQ1oW{X`mT~k1Piq&@V5l7pJ3GKRMUT5BhE^Pm&#PJA*Vpy^`)9s8Z-D^vHSa>sz z#bc@qR|cj+S`*+cqZR z8Aw~z*+lU%v2)NqQY*VI*+%%oa2*LISGKL1T9=64n22;hbV+YS4RmnR^%1?rQH$!P zQH7ja=xqfuF!UB5H$gcJj+Jx54PiN*8j-P0K_u+PG2-W6)+0{O#GCa9@@JfOdX86w z@japEW8t#v{L4I@P+l$D-XrtD<@=QlNLVDVJ`QvokAG|1gD(pW+txbMN7c=5#J>N~ z%@Cm{5M{iE+^e(TjlotEw#}_Aur-8@+yU6!yMweR5w;z?G1vzPTXbIw?1O~u_%L9% zy~{G?o(vdJ1MV@|EgYwDTWDOu`x{^?^@zhUm&D+QBQKmC#+|YhnnVi1MpX$43KbUy z7t1w$n8`}i>L?KQ=psJYiBb&4x06J~2!hL|so4iy=RS)0dWdE_j=u%EVA?VdTqTg7T^G7R;Ym zHa(Bl;Bzd<3vUK)G%O)!N&d<;k)XNx*uXM8BkH|?Twl(Bro>yW?cAeq1K1!j(fa3@>{t}tTu!xi_ z{RPbCR7BI8)>eNG<@k#LRQ`Dq@?{(Fjp45mpUt`GA>;gZ=!0GW@wG626i$TxB*I;g z@Mi&@1xA893w5Q@Ai7FgVxSP2pj;V|GPXMPuVd{Fy!bQioY!`imc=;k(1MP(;Aw0Y zJmQLvw%~{0l5%VdN*?*ef(7kx*c#rq6tQrJ7VI9F4Jy0+Q)n2mL3gD6U`wJc!ptYP z2(IvwItvnP3cD^5*+fc78{@~DI`_N+5_UZPtqmblgEy8WT0aTV@Px+Ng0V=yJv8US zui8YN#!mC$-TFqCuP__=gRyz>}^-X>idZ#_dfFOHv2 zm&E%7qtM%=OXFR@P|lU(pQKCTUC1c(HtEuMpJFKI&+&`sl6V(03cXFbG~OljvT?>g zO&6;_ekuM`v%f>y%jnAg9iZ*HSHRU|K$Ea0z20kV;?KZUUBM_<()I4Y!nJ{} z<6eU6vv4&T&?Kx$uO|B(T-Bd5%2jkd{wiEo)AdA`eZu%Pa5WjwB&frk1R+cv{6<^O`gSK!b87WeBr;ZESjaX%Wk z|00e%YY8+@lqyJCsRC8bDgOl4hVlpQc4H;eQPuL9plbJpRm-$gZ6k7ma3X)8T=&qA}6#Z`UJ;VXUk z#6k8sfwk#(yYf1#zZd=Aj ze)_umakUi<{!1CW(Vi4qsUR(`q`<~_I3~P1J!<;;${DPSNlyV_S_ZouaX=BT4JZ6} zV~jxhy9E17*qMQqbYj{iawsGmK|BtU778swubA?yz_JKcJd4Ds4pOlxpUM@bO^^@lPnOY^}aWz^_xKo zp!HjnOxkI^M`@jr0$Qg#r1fHq)|tg5S|@O0w9fqmrS%T<*hcWA-!>iS3>i<2TTuer zLhUb+Wq5Y9&LC{r?nr|{x-obMfiQ*-;wR+{F5^2A5gJa$DXGth*|t-^4ZsHfzg1-F!S z1HQc&3#Fv@RY;h9P6=a>@ke&A?4sG&roe7fVA@Hz!{xE;*m_g&jD@96C04N8xZtZv zcgf%@N4jIVN)K!~-7&$*oiUbmQwv_KZ1ILgAdmkB25gLE3+}eH5V$YqIF``qE3)>` zI6&SIYF$a$C2?qNM*j%y^enc9zqRxXWv+1FrL;=gBxtF4H=%!SLc5?Jx-18o^EbE) z=|JzPe*)#tSeL+|z-$RsbW?*vLI+S=kL6M`7Q86qCu#jzlUlY3Z`^?jg`O|RJ$J@E zchTdG0_Vn8;_$E1Q#+|2@UO?=-=JqeN%5N!(6-!N_~z7#Y%a>=MLL-X#<}T)!J6BD{+Z;azmtbq0fX4S|!;>FtD4 zjJxFRKu@V5F^B74Lpb>uzX6ZE%HV<%i%w#_w-5>N(jT_L%Gd_8rPPsQlBIc1R+hu; zM2Y|-)Elh35mD**1TH3|1oR*b~oIp+3S{ zofKJXgjhg+wYjgVP4Y@31eE(cM)#-W|1lkdZDBwLI`YjiEm)s3Z3U_(LC% z19@*{Pu9tQ265DqpwjvJEuVk1I;I7V>49UgJ9PD)fAn#enFN|oX|UHI&0HOCXOuvE zQ`U2k^Y9WufgMh!S{fWOF@^co$?McwOT+Ct8J2BFBM_qS;7$vEt%-sb*1U`a1%l(8%=PP2A`_5146MQ{Dt4XI ztM@QeZz2_tHz-GdRG@)|!`O9Bx9TzZZARk7&-NBeGGY(=Gn)A6^fovoG8)hM@n=Jp zV95cuQd$Txr7U5J)Q^!b41ww=gpo4Jm!P`pXn{`;;L|S&;ex$ZB7~8}AqT_hSbp;X z;wO1dyCkqyWZQ8cOJqUvqfyN#wSMTI03QjKq>eFn4C_snluAExX?oz8tWZ!;>caau z_FQWo5*ePerQ_P}w58>-^#d!0cyYp!^qTCBI_@%IK=wH+r!8CXsI(=|YMQh&97$=r z=MNn7$ffkaX?PY)N04NK<;7$(nRnv%;Lbz8DNfshA3RNdu=;Ci%Odj1CWtU@ycbLA zLj%*+!WH5|1Cz!O#7`I`OviMsDP+j(Olzjuf1>B`pZQqo;$L-=egZwG5pjnfI(`PmT?MT) zPLf04x^l<-Gw6fCY3r6lEX|g4rS8fxZo0JU3h>1P%bCH!BUhA{6cefPk)_wV@IMVO zN6PMSF_j+Xm7|69h2>R+#Nf_Ht~mONlt}zROgB|t@kkD@2|^4%@#sf#!cI3|@C9&? z?)2ca1sCc5!n=So-f=1nPG7eJaR6(>X-@ZY;!@66<`vw`7_tX6HFNpQ^vvZ;#}JAy zY(i5@r>B>W!HH#iu8{0jjy-+B_k_l@4M@9Ame-#D0M&L&I>kDPv4y`w8^mm3hK4|q z-ku~-!b4kzq5FZM%JAPu4))MJp`SV0Go|eskJ61wupt{ii3L1Hw~FeHcaWj~|Ev7> zGWjP%TXd&RtU;ghQJAT*> zhIYY11=lgWoiTK`s5HOF5%65s8Qf(#bl9~p5PDf5!IDy(60ume8md)yNr|(hv{+Iy zOiWv5=+tOo8$yg_9m^3NCZo3+b(Cn?@*tafGsr z3V>b+L8VpMMQ=kIjlcNAXbLP%Sg}uA6xUHIHW&6tTXLJo1rCv7}=Lg@nnokU*wxa%aAWWcq=3c>F5thq9@| z!kskRVS~cJvSFMrSdXVPw6|FJBS)bCLCHot>WK4p2Zoh*f{!pBw_$>i2(m;XZDRgX zIby;5%S$3WjDL9>CK6A^(!xPtA+wF-;T=m7ln^29%GNExTEO5g%e;3po_ci*lx0LH zzjdvr(doaI_9D+7MW-Bw1j&I_%S)>;Cg&%EF-d~`A|m6JEk-=j6z45t{{IJPN-??A zDp2J7B*_xnD@qw`D#Zfr7Z3=xRRXFbeyJr=SsEdeK=#1uNoCA;pbF2UzF0plwp~ay z?!Z!tIK%dE9x@CG`$8v`9$SCBh|{Z%97r#vD09>mBBTr~cud6M!RZUWfq5V)_y4I( zUfIfI)o&xc<6fvKkA)CU@n&GbuY;72nR#pr;PM;b0znzgOo^9E}f( zS%HtDH*LX>wY-$|Y2b%P0NGaC;gLHuD;o@Jk3sbf7n5i*tU?R!g^oKjwRG%4NPN_* z&Rp=gB8oBQHq0Z(mrmpS34Y3Ao%@1_P#o-t)_W2jY7~A8k|7ev}vhO>hA9H z_Jumssn9|_g;IAf)ZN|P-QC^Y-P=1edrq=}B;@;k_xC*akIVCLvNAI}J3Bi&Yv(A; z?^@EzwIRtsgnAe2L!eXiCxbi%EK}f|h0){Zb=8R&>Y)cfzeYXpv6s#345CkJzN=xV z1mMZYouM*@u<1marafC?B=H(#Np5pwc*u<9^ z5mnqLA~G^VCleioUQjhP>r@dhL&;sbo#n;6Cigl}OO9}vEcVSGUN z4uVCX*xy@)8zW zI|Bm0=8KqlO3|8c5pa}=AQ*NgO}3cJ!fY{@#3PB5X_{hqMHR0r<=oFo+vdDnmTR4GHiR>xOewk{hfi5ohpAjmsng zh5@FR$ecL66j_BuGA+qpXdm_i?So4{tWCtV8I}d#>HsnzpZ%~vHWyk5qdt*(HBnLO zJkgUP*04Rx2r_3iq^mhF_UQ`b0Yu`DYOX8YCX%tsTFwO5Qfxq!8TjJ#$2icr7Z3_! zeCgcfbA^zHOt2?PNixg>-kRjB^HhgbWI!NK)JLUnRH~sbiI<{5QK?|TD5&#*tUi!s zO7MitxolXfTVR`%x(&Di*jZqW3;PKO8M_F+JrTPHep?m0h8L8E-2$%wVVCg2x2kEq z)WzTvXYh7Ujl$3y%E5sPUU}97i%fb7U>awU8I3dSpn5?Rmp0*IPb9n`-brQX1)wS? zXG2d!!7LTLoQ+7qcU<7ZEE$keIcrprZn#83lz^g>NDAHu>P(ct0Ri?hAOv5igk?VB z9$7+)Dv=UY%ZVsC0jZ1#Dd07ik+4nzyb~cJB~pSV6ctgzDrdkEeg;6!gr#7lm~aJ2 zfnUX#qB`5B1p;!0y`-DJ1&~Qp%9_cW_GBU0pZbpVx*ghSQ zj|x7{1C51rNUV&Eiv~9Nz2Lp8I(6A4zu~%;o>Wv7$!xoxG}S4RS$91tEKG;UzUxVE zaVA41UQg-^ZNaR(p0pU+m>GIKDKqE}v-Nt?X;4Zs_m<{F=PB-oo9|ppWi6%c*mOTi*IgzUTkx?~qsFD5<#*p&zOLEkhMK`Q zMttwJ@@~5~4eFPf<{7amZ5ViNf_+_O(y4*XWU#gy5 zb>h;?af4*{>bE|j?AFy?-9A???_c>ZR2iz?nls1o9L^WbbRuf3|l)rtk{8 zYPR!VHgW2=bKOSQJP^L8k#b@E&PRP4yuIT0Y|?qp!y8=#i=P}- z{$Y(3*XkrZY~8!=iCIk-ZrgC>V_d!tzc##W{$|kl9CrKU;MUoG{M|F*`R+k?UUsgxC`;cX8@?|5z9+0<{KF4@x*wSpo#VxsGC5DE z4(tm(x^39`;FtGKUrD_2qR;uRZwAy&{JbO1Cw@iycgiKxjx9J0w_w(|ecvOWR#p>G zHPEZDOZR{wiSlfpd*3un&VIC zFCa&%^JI}%eB=#Am`iII0S1Tg3nMc8{b%?x!(b!;csN(ZGwb*#Gh*T3Akq(unH|KJ zke7%LnGx9nF#2IJGuUec!-vd>3;`ux;d2xC%qH^1?G1Udehw}K z{pl#Kko17qJM<}tlX0-vh2=(F0PhV0F6e3@k18eGU>D)Q)nY-zXpn*!9>c=Ot%1TM z2KWdVB*@^CI?RtJ$pZt}zOhg~&eg!uA`tWKPn( z7il#A)jOqE%u>b2eMb|JkGqQ&Y>$e=G>`1 z@8{=nJM+Kkx4c8&iCH$N%1$}pInpI-%h2Qj&1W>35RtQRnNv^qew`}&>lePU+TzXU zueO+!dsX8VN9t}Xb|H09;+9^&Iz5=xL;k+<>~2wQx(^Q-*7R)KCwZ4i16t`udBGkuv&W>t|h_pS=91q$H^LhqqhZ+eMyxw4`_Zx0gL@stZ)Aw`u%q zo&U}0V++pJ4EDzU6~II$A%T)X)Sv5SGNGsp*w)+`c`%!}CzL34K}#8g9Xc)>iJRa| zdpH(wGD9!|$_$eb68l3-pd{4iTHqUCJf_4X2kNr z@X-&8nGK%|!SKOsn&~W7>#jEJo>I~R_+kB>DyBCgI`wx9DB;``(?S{aS|J!5(@G}y z6=OP2jQW|PzA>%lz{`69nP!Q?(Mph!T#{F;JIlto9c8oH=-g#ly0+{H$jFJ#L#7L9 z({T=%CBn@n;K~)U3$x_#!U9<^ta8c~zL7GWCx!eV7@M80eDB45$FokWASsw`VOFGIHhV zx2yp}{@mIzjkRA$uSOA`)O=v7Q8LV$V>Ol9IW*T~mFDa)uA$){*g4oI09nYRAkd~2 zlZV;Q21i=fPSMhoF8bM+4#{%NLOm9BK_-t@F#lI6Sp$h5X^cbRz{rMDfw?XU1LnFY z12?#rjWe;CP*Ip7lh#d%^fSzWxLWEA>l99Wp3juXAj)%-I!WQHjeMT(lt`TmWx7gL zQYU96pXmpgUX%%6jZa&mznu~T?35U2uf!mGB?j9mQRi%@NS)eVnK~DHh3Z`GmFi}% zRCl|jdZa6LmPK=hOz%6WNt#CGAVB;KBEX_)IS3FJgU~r!G%yE(l@nmxEZUia0qx0v z6=>}YSi#oGkQb0;M!bNwX21(*S4O;mGGxdLG+jo#K7pBLn2ttg9@GzGpM~8FoPPC0W+u%88Cxdl@T+jGM3EfX{d!|B=TwW zG^oHT5_vUx8e3oyiToNp4Kc7fg(HnPG{ROKychxp8rY?uBksSM#>YoA2J?G96G1td zuZDX*pUCGuAo#rGc9DN(x=#%L8TdSz5}mP3`+l4m&g91}#KNrmaS9-qh!61Blo-Yb zgjE>E2ZWt4j1QR+%LhM>ept-x$EgtvA8Gu!-?rwja?{yLMiIV%fQ85nr(ykm4lEI3 zl-BPtz}D}XXNG=R6v&PFfS3zw?(hX_3V9R+rvN$Bd1&W|z8dDxP6K9${)^5%;*9|6 zF6#n59K%8%u8YZstAP#;{0Tmp5rqXj9tR%bD>W1WkBmi8VC0aoD9MccF^W6jk5Nl7 ze~cP}`D4@$%pXINpmbOr=8y69VHL3Ak4a_dkHIA!nRS0mSobvfW2W;|;E&1MiGG^d zACtQSP}5iuo7;xJ+PA5Xsm=b zB{HPXqS&jENiGmGtbiONZ>!8|h6)s; z5B?IFU%C&EO!5|?L^b1}NX@cF&+ZbLltly+ z)r<#2`MVZ-4Bbg9f{A*@fnf)z^kUB<`<$U>EI)gvrhU#(WUXrMgwAA_F*GjScJ19` zpD`Ua=8>eC2K$_0Z~BpQ{tNq@p_UB|e|yP3XV}dZK_lcDForg?__<5h?K4K2@p$^p zC-ynhVb}cDe}T?EYpAnr8?QQKg|#(iHA7)k%9;y0laJWsqMC6~*i2LZ=B^l-6GjE3^+pt zO8oQ|dXqiQP_xfBA2QTFXV~ZJCM}Dz<7Ry(fA8*yjut$h%^uh4vXE&7QAus$-us z>~n*X8h*`yGaQ2pe<-orK4+*uJ1<<#odIX4+7mAhduhoT_}=Ka!E}fmQa$-^FdZVF zR8MXkOozxV)sr^|(;?0?O|!ng0QA*7*ZD$oorA($ho&arGiH)>5&X!YWc2@ZuF2>V z=rqab!RfTg=%NKAN z@}4F=3rpwjED*emUR=k@l$*{CGFouKf?leIa)Ng#39=CL=*?<0hfG%%zVX%?4_Yx@ zTtkiT^hqM_Bf{Ap`qL6kp3gw67aX@$cNAphyJ>Jg5Vl&4pa7 zLoi^$+yM5kh^8N8z)Kv(3y1rGJ$N&lP`3p_5}Y#dL}-zpRe6416UKEPew1OX925{v;^b*mDVayLG&)LT7l}JcY}or zR1Vna#zT{+9B^|J&P&3PLb^DP+M%5SyF(X13TmlFi5W~ye5UB!DH*^K7;g_DxbGCW z;*a1!k*L5D5~ll2(YaE(s|9ucDFIf92TTdJMmumykTudlQ(#3Ki?k#iY@Kn~h|sxN zqYi7*VwEgehutBePL>70Qg|Q{vXqR@O=QzjGCFsW&orXZc?i|DBp(E1E~b;aKa`27 zX~YhN2D5Za-l3V?DBY4a*44!d^+06N8hH2OYD2UeEISn3UMDHNNoX+5ma2jN&F9|Zbgg*Y^cRpNm{mD2F;2Hh2@q|tZ~ zu&Xud0fGe52nIS1BV$P&bk)UhIX!g{m@B2Hl{*yc&N3_|gDvGj8I}b=Wf{CB`ygNj zotC~Uwg@tmhJSyMB_>-^hb}09TapKL61cQ%*B}sr72;qG0F&RL;OLq&S((8-{$UQH)?G+3CLM(#k} zgQZ)_okj|Tx8xmdZF<@uuRv?W(bQ6zmbBS8k)Akq4_7PXX_z27mc5mXtrhw-PFNvN zqa3DNS_2v=tdPe+&I)xfh5?jrDH$@gSJDwjbA_pC#Ey2Bk}V}e;{>K#(k45bo;J$M z-5PZ=v{uN|D3P8#T3RdAX^bE$mSQJUYlS)+CDN0}=61DG0FDw?$g?5N8hsomh&w|KDg$?1-=?MoSR{pKfgW50tZI1np!%X_!JW0`WU#Cuz+m97298R&35VRREj=vY1Rd@PfqBlUzcZ8jQH#U>(#S0FJ#yYa*x zt%V6F&XM5IC`4sZNHxwhOW{$#LlbbsriH7X&QfOq$qlAQfTnWhaqui26(gc3aIjSg zC|D$50TPb`9Z$evIsrFakspyaD3Rt{8jFHZCj=~}8E|_TNQ+2NW_lUmK}^P+&>0;O z0v)xH04GmCaa;}Xpez#rYaY03 zn~@gaAybATm`Fz?fM;NNB!@(RCrB9*vzU&^0FQVRj?j_QX@OwvpPPG+>EN<`gUDf+ zPNQdFEjSd?0XpN(8ppQH;E+s*(K9fR910pp;rz7FqPEN=hh#cNE_Q4iwvt03Wuy8C zQnNKOa5$zj?^F@glr*^l%hpsr0wg5Awn1gJTz z7{RY{KmydW8B#_=DOVvH=LySU8Bo{eP&5w605ym4Cde&g8BoXOi*Y~(Xm|;Q8D58! zfOGaMU3sW5eTVeUMr)Z*m^nr+xJARG><0YhTE*|wrQ zmg)8glbkIp%AugFsT`&_Hth$8LZW88*`Ge~IOf|M8O$*_BviNmSO(ar42kK112Vui zwWyD+!Ia|-jSk@m)*!77O|J%Mbokof3uUa%Be_!0?h+1bPsfzNbZf`{oRTYsY&GLe z=-3WO0IeJ02%3|z1jrT;ir`hJm4GlA;WIE z?>Ha=?A3%~Lj>X~6z3J7PSYWu482eeiS&SBu{O13KzSV01BN4v2)678kA$*jNUY1H z^Fsw2%Hg1_Ey_u2L99pt^^Gsawh`qDB8_8M_E&Q_9BfoV5&E_xGQd{li*Y~(Xm%Ki zAZrI?fM$nqnDRI#0yMpZWZ#+KBtW)`P#hNl8f&f;2LyoDjjN2!ag<{WjRB$9T9q{| zYH{;1RGjC%y7Uv*7HwM)4hfkfBqnKF_JhMfwIK{aX0}EV4h1_lM*u! znGPNpMrxrMZ4DkgH27WOlBo@Q!9hbW&S>VvL4%42q|=!QYqf;F%lLMnlAsmhZmk2A zgzn0OZEIZMm{xHbVM)%3_b_8Q7?nr0cjL;1Qwry@@ z@r>YZE$c^))e`)F0X|JjvLidVr!O4Y!Cigu@nCRcr&gqNQU#Ws;1CZTZ;;X!KON$s zGY(QC9t~iJc<>kn>=3fEFT#ljFEt+G!QFq28V>OYudHP$bco0D49^`{mouN?`9WuR zjtXaZ=*SJ6k>Kw546t&?CxqdrJLgjvxwHSC4?5>VaHexUpO7Iu=QBRtIiI{hFcBYc zh9@6}@d4rd7{&*L!!e8x2p7OGJ|G-{VSGTiAcpY);X)Y3hs=n4z*!*rVKMVrpdtu{ zkF@7}hL7-xw zhcd|^YiENQV4c7i1dM-4I*_2@r-EHi)lm1v>mtpFl7jNdwS(arVAnMD`(3@ zssM+FP}J=35Q^1&cnD+v58j{piL2}E{?rfFf70KH`X#`y{V})`MUd9-PyH5QX?4;* z>>m-9CX|-2Y41<{M|{%ijwQXc_oqyJ(iVh$SQDSLQO?7vBuC-?)K5Bhg~|lCr%;jL z?i4B!oL3^N0*ljRQQ#FYsKxL)SJYj62R*7R9ET9^RH2U0N%_AZ8S`O&Os3Q3n9QB# z$8D2vZZ9eF%Z~y%FO)P zW-}E`hjtQgI$#D#fzr()wxBiQ zC;=<9sR`2)C*4a=oHd{o@}zrK$WsFnd8L<=O098%_eKi037JHL3~=8$jpE~Be@soI z_t5IWEZtJ?fmb(5x72&&)x`>Rx@BRFJl<5GbW8G3H4kg#@uEU{-a!{!8I?4uNmmuD zkf(bVm~P2ED2X-ZLBj$#(Xkw^NCH;qQ{!17PpXIMmXe{?vqBy<&kA+0(gBq2rh#wkXy7Wj#tHl$ zUiU$$E(R$Sl%|D2X$(GcihM+>}`3Id4xU{s*cxT57anQs-Yt-?^PI}^a--w7<(#ES&R%k;LGf7%1 zKM6pVu7!~Zrl!$-tUV=Lsy?+Irdz5$)jmCKR9bgy)T#Pb$Wz;;Cy({FLY-QUs95Sg z3BU?<)^_R1W1n-iQUJD{74kSTd9Vyi;XqesLUYrA!=r(>CxG^=;O#;R7ZSGqg1{-TU6_70l)_4fcw8rBOszz%(OU3mD(_OA&Krj&>ur^a1!}x%32@K-{ z!X+_`4+xjSFg_q$8pHU2a2X8a1Hxr7j1LHx!!SM|Tpq*tkQtFbSo@(L7BjE?R75a* zq+R==O6iT5MQcA8_^;P~5ZTV!4`p*}KUlVT?T2Fj!?mAHVq1u7KiCSe_M?Hug0&xP z2U`0P;@B3n_9MixJ=ofhkbsTC)_#NpY#FxpBP3w+u(cl{0ow=?VC_dpz=nc^5K{uR zmRy%zNMNf&2GAv$WSX_LA<`taHbjcV)`m!r*xC@O5xX}=TEv!#NQu}o5$OAs)ebOOXOW&%_2|D@NED<`pB1(TdUkYj@2qhe#y9Y0U$L1Zy5BAXxK2;ozDF zN(M$%>S1smntB(keV{yG?E__jYab{Gu!hu^;0}d&K`RR=4P4W~%Hz7ci@_Tb%!es4 zM)$zTi7;@`xMSkZpiMhg2yMQE#sTBzg9igPZB`*L_z2>`7Y-WN{9Os!yiG-naF@_H zaMeRVaTCn=FzrtgFmNHW~a{++{Ru9$Q9~D+g^4D~IWi&7q&eA=AS%XFmIg zrJ6ke4hPLIL&;#2X@v%nE;0bqzlYuqmkWlRy&VL{SY+Q!K^uYlcVB1>M#{nUr@gW?+Dx|fg>D2&@ z4__Obvo1~oXnzTZwWniBfPN_<*`H%_#gNTryk#(^a!6?92uIMIj3q!ef#WQl1cbBn zTp?tw*p;6QY$=C?oC#NcZ~(GxM>rf*8&-~eGs2-@zh)>xzqVyYI2=?P!m&S?a2Vtr z5Q^ZA+A^dZ4yp}@;*bESSF`G{UTw>ea^;ZTFq{kqR1OJyHNz3CuZ_WkLm|Z>oD8OC z91eDBzB-Nx0cSKka}Edr`!$bZb3o;oL#s&f1lX$y#i|Hk_e@Q@XKGv+5Lc+u zjCt%@4pUa!ri4Qxoe(ec*mKW$9CS??jxajdvZg!|%AFyx?q|zC=WtN&7UkF)RyiEh zJ-!&nq=0i2hQ(} z>@HuDBSOG_O*p~;VPj0;>O+$ZR*YbE9Z>}A*M!7OTUsH&PPUqMvemG6W4f%yE$O0; zv+G0lttp3sI>Ar`K5dy(4hMBYxIRQ($%ZZAFi7gGm<%Rr91=>Ma5D1HIUI6l2#JZ% z)_B69pz1N!1gFUX2~hJgB*8m#KnB>lgd=E?tpSDO4J{B~jO`JHLqZ$GSI7Ywpbcgy z88{YPF=VzFlF+6Z%K*(bp$KEQ10tYl3gKilsPep_WgsM`J84B=y2izA@S*B3wrrUZ z9vG~z(2TaGCOkB5!U>9E!*+1c(2K?0Lt93Jg9a55NT)Ry=GPT+;Lvv&-wsp~v_jm~ zb)b^aT?OAF<0^t42pZr(4WWYy`<)Ke5LXrL4~d*Oa0=*nJA$zkcdj$8BXmQ7ZJS$O zJR|I~8roCGYKa@Qtly<=Nxcz|2Ee%`I!2+V69RC?iB3}J>7W4ka_m%&p3V#487DeX zp{HX5Fe0+EIeI!h0LPfeXJP{)NcP;?xL;LUf~ z>alNC*MTDJo^RseOy`?)SeW&9RaXasiTHr?M>Q~v4+z)9Fg_q$3&Z$;aBU3ZLuN!? z;EWReu$cLbQe6bY2iB3huQ$AljdxY^->s%f8W9_g`)n7!Ta8irZZ!tdezzLsi+@tW zg6~$tXUcNIDKo|$oJ*pwPYW>*_$)P@CzDH>Ff`M5s8JA5=4Sd1HA;d`7_le{gAN$6 zD9Qtl0>L|^S)61-SIa1FdWAI9Uq;{6CjJcBkgJeP*($eZQfFs@Na*Y=5XqdK1tO8N zvp`544)tK&1&OmCkoa2mSvM+2{Jxdtx2MhTjOM>FZTh~Rtff@mvXu<}K}VF5F$#&~ zFX*GrQyo@;m7?^EN)bZAQ7O?vQ0LBtJs}JVk4>jk`NXJnx;CxmD19Q;N?pB(?NTF3 z77p`ZMd7p#Rua$jU=8uq4pz@gsr6E6y_|{#XM!)>DV+jhoOA(gS~|olJmK{7xX$ePBMQN$6O3PqP zS~S_WD=m9ycBEww&AznkVA_?I9Xv~E33szaX}MUHmQ~qb*&lNPE|A;liT2R!NXs6Y zeQDXjv@0z;c$U%<26-keIDU;54%`A7OZ8;vz@s3;t|xnkt_c};J()dpFv!5`$@-zE zlHSPcJehg7^c{k6I4A!AzjGmxN;I+_Cj{SthI+~~`wr!p?+^tH+VvfHIFs*?4-2z? z|GhpCOvDHH1r0Ea4+uBJFg_sM2*db*@IM&F2ZS4A7#|S+7sL2~a3qHDAu}Ss;9t-W zi<$k4CJ2U)H2%e8EB-|w!tnkD3BrijoPU8)@-Hx8+rPkE-oHRvX8(d>oPW_Tjemi{ zGWi!MEzZ9{fpPu?%8d6fP;L;1tLx0)K-obYZmzR9$`9gjah>x&pz7oonE7D-$F(_% z{jB9eRG0e~VGS4JbGutOYqyZ%QSM(^vxO9J+4q;VT8Jh~WCzx0Axp=9Z^POwWKrE8 zd#K64K|%2dO~!uA4hs4f17#9PCeT;(Eh;hq@X=6eO5dmyLrKszAsQ5w0^>d9=sX~+ z1T)es0i2CU!MP|~V4Kv4Vg=^|1qwa}3KDz_6d?K-C^+;nP+)j|7zKqVgi*=7oL~sm zdZ~*=!Pk2=aFxhV9Lm8FS)(!(!6K8I0+YW`s&j*YS4^vDsZI+aHG~)qx%vCwfso;k zur3hDLa=^qq(KOZG<`&xL6Gf-aG4?Cj&Oc$=)1jg34G|9m8;W0o(BSXLBNfOsSzse z{5mhRhk1;Y(inMC7$a#&BYM;FkE$@SQqk^bf9~77_~z#4O%F6K{$BGwYSEywlPRP6zgEQ|LS|IzuMAv_MG~W~dXZ@YzrOI0~d%T~ye}BiBkA_v<^Y+N>{T`?0 zyJnBe^E~g0Aw6o`TE4E?jS=5_HK<=^T9+dQmL1C}TX%Fo)ZULS_l{JZxb$-U)+dzh zbLH|Ls@|HjSZF}LUtRLl_HrxMuu+1#?M`)UuYAW33>=y#e$xDBdl%Gf=fAAm=$Z!> z*6)1O@7bjD*_G3;3@z;bsoT6*PwoCieomc>2G{CcE$8N4>k4gj4J=+`#kD$hPt0oi zF)m++H-pCah-(6QlPf3CZ~ zL~aO!S!FWXK4>GUB%LqO7B!3Avocg8QIpRR$eKwa6^JDgoXM9ckC4`ViRM5s5g*_K zw7@VvAlwqe_<(RL4C4dB(HO=Dgkvy_4+yu$Fg_sM2E+J}8Ice0CFqC6%)UfB1j9!f zUt*yZUxMB(#QPFdK_g;wz63_em%xB+UjlP^Ujk{FeF=(jzQia|w(LHX5rt*)B~V(N zFM$H%d+G3~1n9pS5|&m=21WtjR-G zULUMuEgs@``d(9NaApsb5|yRDfg%MDfPT>5s15okM47)qIplBDf-D&GSwdQW14R%1 z1_~Yg4HP!`8z^M-H&D3fZ=g`o-#}razk!Nq@;C0{8VC3rG+NhyvXa_EHuE#E%yfPR zj8!#}CEmfH0oo?A*|C7(iQ$?Z3L1}XqMAJkbRih7*@M6V*e0skbs(39;hJ3rsD@2c z-d7;GFl4ij0QIniZ1xRED1>SD39uHnFipMyiG&c%P5{-x7N%+NM}ZJxx>4T`7HMGA zM}2|OnarD>)CLA;GH`m*9vJn>#OXU4)eX@0W(kvYH$=vBl z!En?^MYHUHrcocqTfNx#Y>&&LI}j<3<+(&0JL5hgfuDfBf(h?`XKXJA9l<=d%V=yr zC5-Jf#7O@CxNc=!k2j6$Xlq~`&Sd^}rlF(hPPUWS)-ppZCR(iDZ?rNdhO_y#={uN) zuC(%gTaAN=VK=R%-=Rowq!7JJQJl=O?0YN@lUEkM&*E^;mc<{ixIu`=#X$)=Dpx8Q zAo6R#RB0&AZJW>Dc`^|hkcQ&?Hg~QWF^R~6G!*B!O)^DIOhgu>p*YXI_9}mtMC3pk zigVreISRHas%6 z?`s3Fp8(cfu8mN*%YzDd#@__W@o)fMsDQ%9U9Qu$jPZ$T>B~Z`)b4WMNEcObM5xqw z2{_OyFU*1q;1mpI#i)X#T$I7B)li)Bg33@&d0(tgblP41CwXA3PxK8<@**$HTAzrq=o1R+6KB)) ziH;_jqD_*K)<<~8=K>Ys6kQhFJdbC5%`}PBRSJ5>54KE~%7U9FcEVv%YQ&%5CWbiR zMM`#rjd4;*fLJcGdoX`MP=+Rp8$e3T&zIs4Lm?tPu2)#tRic5qqL5q^>09UuBVg!; z>=;EWDNv0Pl1Q>41<_q(k>w*T+A@3 znUGOT$ROFVG-mtSo9ah)SZeHy;vd?Bv}0&$7hbqb$VVI!Rnv!ebmCee~ul3)xS05 z=9XO@D*quaq`HQN&Y&4mT{YpiyzrY>_$@5_77%_Tgx~!1E7P?pP*@7jrqHi1h)K;o zGeMe~PgAor5h$zx*yBDM{Lu|*QGZ6J&-l89{s zVQi5^Y#Rt;izH&(Kp0yj5!(jB*dmG8HZ&$EB-vTBNEF%vIw|hG%j60}chGT#e*t$X z#QY-_{!x?y>Abw8;ru?O}Jd16oM80agN0ve-G&&PrSpsOS`B21h&ATLn*#2*Fh1xjD35mADh z(5SLN=@&1lC4qE9HJ}Ua&-pL}$n3Alw~FH__#<&E=~|X9H;=U>OVEyl zRFHFGUzC@(VVody^BhJhz!?!DVX6pAeF4{oRn+G%u|AJ5N`j1=NtBp>Yi`pK0)4pz z1ZvqH@h7PTe54G2Hb9!1!8d+=R3>N!&?hV+ZWf;@whiZdo1utLlTU6YP3h)#L#nd4 zIVPTYxl)PqG0UR=6D?WX5)%&J)`d*ePDcP(4-&VTor_-VlxCxmXC;4?G4 zS@M*!jkf*V6|lZQ*V6$@+#W{6UV8D;*MHE8A!mG>o?4K1T9w&`m4iA?-0gKQxBoW7 z_^-P+chJ5+kU4Jgmyg$4`P7|Id{AW7t#upMTbnfC-s{k9-CnoOH_7Sxj|L}S{q6N? zTi1Rc7H%^x%9K66eYKeAbEn=G&$j$yvn40n)co7vO2^YTAg^PX+`F-m9pLKs+dzWr^ zyZ7uHzdLODcyij+ww2sRwOev1K-DApaiL3Blde>Hb!pZ9@r}NXpC8-Er)!Qg^=I|? zyINLVcDKsZ;&)Qq&dfZTv;5@qJKvqI-_rck!OP2Q72oqB+vcAB zM>A`t7d++B&SjDB8tlhmf-hunfe|iwAm|cJ{z8(Wz5T~F2YaJGmmn?y7^XnOv;28n zeh(}8_qhC?R`PM)D$?(jCLboORDQ5fes3%JSiYFw$4WkyFXs2Pl8>`vF~6Uce4I6l z`9_O;w43IAsw5PdG`K0u6$~jL9WuUh@MX#7n#Tm0&ND{Zis3c^-tbSD`zDS;5@f67 zFh9}8Uk7W#&6tIOK@PK#!3Zf!*qQ~*-XIKv7lprZdmtrYCzPK!5~Ac!u{k!CBa34u zNhVky1KLfP%};|Lf|W^z5=Yp_k${Yzak~i2I0Q?gr{QJ<6hU#BaVRC@lO!zme`hUq{yk>WDr2uj8$OU4ize-sjf$WvaacWzl8C)v1;(s3R0so^p9 zDp+lBc(pPuq|(?TBO7P7*J$ri-ZDuMpyNcg{xaEm14=_lGAZaTHKI_J^aO9OfD`BK zndHNdod}L}c{^)r1LC0}lt*KuHxrdNlYuv@vv(raQI!|b0?-D;5 zOBQ^9I6dST<^r2i!#sTI!VL?B`p6|mfxa`=C$1c*SsZAxT5V84|8=3KYghwiTs}zb ziwizA++@zAlrVRdsC&pIk^nEcb6$M)7O@qkch-gHhfQ*gJYf|S5myMna)f!{wltTZ zj02BUop*^;6$j!}ll-YZut$MSsf|m3WEM8;#-I}ih&6_nui=jfh+zU`ed0LONey*k z{fSygYQVA5+^bjxU_cCja!{-CYLt20!70BHAt)uBJe3k^a8oiJO#B3!$4v@u6KUlF zpepre?H=4DHem&pvJxMZL)FQXPwNtzqOJGl${~iz>zx1)4yO zO@NA`oZ$kBhfSa|Hvyd!X8F_v)bg;ihGd;0eWIM2x@o=SVPT+nn52@BM!*diPy zU8K6QT#G5S(5+Rhu}CJWI263QJQx@YZtALa3o94wE_V(VS%RX23wo-YQ{@UsjHCj> z{2(qArqr?w*fc^%8V6`WrqhPAqev!oRA(Nz;d zzPj>4$WK>L2>JU6fdK6+8AAvrPMEzj*;XQjX;MiRv24NDP8@?}%M-`K57R^5c4B5) zS_~3tp-+x~QeW14Cn70E*RUR>$LPtpK4K&gda^Ny;xgkTz)Zvk$tN2l3u7B*Yqha+ zS;z-NT7r}M7&cQ0$OjDG^d~^2>Wa0|m5puLMeNh2y)dE&UO$rcNexA$eSiP{Z7J)D z@Va6#t>%h-(R3Dq2L||ZEw!T0|xF5p{&uQ3OO;n&)`|rg^tv11QOu z7SP{u-kkt;3+LU2O_*ApQvKqGQmVhyu*IAz&huoF5+Er2lP0W%?8M1Xm^e*MoPrTK z>%u7*mKyPATt{&@n+h?~6B$hH*&i%86DU2I!$onKF%^Il@c|%+D5WRsCM=GH%Z&Jp zTL;WQUy(|5B3+h_-A+nDS=>epYl$SvM~qZ+8gKohArEv!sZK^O!0XH3dI zaa&PPGLjvT068lqvGD5wbrX(9CC>#Es6c3lU*%JMU6L@WR4H+}3wn<-3Ku@bTQr^# zH*}t^VY!@iAhvT$&9lgFA*PXJW>ku;-^FRr82nphKDfQY8w9%4iY0+FWl?>n3OxIuFZ zr9lVFRp6AGc$GbU=0HwStfs~*|1873aGB7cmB6w^sCl%5Yn z{l$afnBWTuu=&23_Tn+Y4-(9G*D%E&Q%tAJF(m*~Oy|onB@k1@6XsNK5T;l^7l!?% z8jgSL4j*{>q-fM!$~j;NuueXaR5d9@be<8yy*+3)sw=J!vp$Ewa8|AyPX%OVNrmqG zg$3G$VI{do+z_A`1$tjPmZ5~Jf~~uN{E69gnQ(Iu{WKh#HK;2(=NOsJr%fxhOs9d6 zN1IkIGG(+Xn)Hr`^MG6p!TCVQ*#gddKTjr)R*1ObdLbOBkttfXlEXjQby2^0SZCk| z{}8qv0z%j;TqOyF^KY4fPp~oGQX}?lP#CP4GDSE)?-}t_=jjsGp5?0GqMxf19I$ml zX2HTCic04em4Y615ZV|&yuK!6z_7*u;DDSMbcTz7&e4W5(62NKxGG2hfsi1n^hv?je`Clu1zzz@ zA-@zaP%upMPw|4Ic^C>v@q#%7h5}Q(pe`5+O7U{ndU+IE0RqyfbgnV*@P-@(Ky2kE}TGH-~s9a-$zivNj`5cmB!7>UE>NzsNvxT8EzUE;98T# za2n{qC1MYdgNMdL=UKKkcse>yFKs&BeKbBM-nGDruf`X6_a)x_G=3VNXfJ<}_j3a8 z{vz*)5Fqk?LEzm_VuL<%`(YSCa0h*wI6pbsF5~v9ZOwqV;DM6Z` zpcIWeqzG0OZNF(Az$S)?E1=tDonTWrF zO^qSxNF-riux~Wca038=M^CB3C(0A1x=1)rPK7r7ei-bJ%ZU(-eUKlF`HW<+KvEGL ze$y%)z<*BVDJ9Q^@&I)i(3V9f;t#}@z)#Ww3{yr&)(ELd3r$Hn&(>mUbkZVoatN2a z*qj`0PL4`M>QKm1_(?Lu1e-v3dcLOAXufm{39Thtrr3%U#S z#+X>|<*@qf1-=67&~VfOX6P&&lp4BN_=}E$ZjT+FEoQK=7N$#LsxM62S=c8v(v<3_ z^b=Cex$R)kKkOn?54SbLZ z-f-7URht@QQHl@7Ij(#$&T-|J2Hrmnd_Wrbz%=kdCU{FObj}vV_@rV2S9@Pd;286x z1dcQRv?u{-Q3BJV1esCT(4n+2sH!O5%)lvrvIp8k9AaUK88)}D9i3sFlNO9w6h_Ra zFei{pY6@eNToDv00|S3ymRu1Cp>PTXK*&HLe+Y$8$PYrk6!L|TCxv_>Wx*7XU6_UA zw@jiI$37}ONQO#>{u1mUNlL)nPD%r`UyK@7U2z}|Q%SWHVB>J!_b`2afC@ma0n$`R z%7`=#51DG9+QLA6pT$snX|gKBQ4VZoN(lyZ!F1p%5r2t53)iirrjEe|sZjj5Hhona z$w@)8f>37E)DMv>sEJdzO;5@O%O}3^$P6OjnNgb87x{`V;ai?S*R_M1ZCa!fT$>SoOP%=MB zaFhZZ5_)W z?tkdc*olpv)^h#icI)n^1?nGrYA^MT+v*v+@_dtQTTUJM`yl_nq0#YP!INhD#f_=v ze?ld>@#*{Vnn%kwc=qMV=NwzAM!mS%cf!y~W9A$`Jk+;t&0%rNgL{p;nz(;+gE19~ zjN9KjylBo2XFGO1ylH0XX{Basw zb+gMq&2uk!J#Xytx67Bh9U7)xTL0jX{=;T`sVMgUT<6E$#L%IsZ19p zj66Bz!;YTUf8_q$X37)qGG2Grdaauhc|4n8;rXR-ROm~1{XZ#j`;>XA)Y+K(`i1WO zM-;qcd|jrvZ`-b2di2dzuzT}jev6v6>AAex_9X%R+pqd<^y@#ZfV8xt=Amqz@6^5` zJ@==2U}X0!If}KeUG;X%xr9dtt5jam>f1k43Y{50>H3tFCw2sAt96KT?;W0fV(Y** zN2E^{AL|-+JF#FEyjf1{eL#pe|a>yK-jL) z`%?37n{;=_$A~5Sj&*3(SW!A~*eUrx<2!9=`FPRZm7C7&*r*;oqU3K}lbxGw5egBX>*P(ze4HFAbERGiqz&i=NBwrFsm1nqOCJMw9S=>O6lPv-)yQ@3BRm zJ=R|+P-X4WZpNu?>s~E>XT!*E(<`38-)L`m*=$owExCTNXX=b)-wS=L`%kwFeKmHnRSJ7II&qg(&hno;F34Q)4WmUe0dvE7< z&a``zbMZA1^$Lw!SM+o3!DHh?DlD5F^5bi^KXYaVb(}L`?3zO(E>w{>?bGpo_QSP| zL%mKE&NSd!=;BdEFOPCN&+JK6MYapem-EiL1N!ngG8ftKGkEoGX>Y~zn%`E9+qvVC z@kl_M;sqinX1`Y?`Ci^zqhEKJ`>FB3Qmr)g-`@OM zCzro;t~kEN$@xXPdDLvYcHr(AetnkC*uJm9^J8U?1Xsbi>3#P6rG2yJ9qSb0vQJrQWZtXC8jYAg zC{M*w%{I1s*#1M&Fwf}Q*|rDe9CEF1&XtYV>a+Y^cYpAn<<*lyFSYIe^U~95U7p^% z*=df?^~%Es-E}IoyW#B_u`jZ!L$Wpw^zQobO}(vS0-7feDEcgN?&715*Oof4zHaRF z0T0f->#6#gIP9YT$Pr!dBs@8%@4Rj8oR=jsr);ad|MKPc;ZHlpzsXyp;?80}3VeUn z{$!t7drL;d%SwLiF)QcKBCW49SW)MvdR4)e^@iU+wP5<`#m{zz=M7HoQN7`WF2gTt z{>?jfoNU)bLwSE)wRVpO1wDOmWotz5>LohMdaV2$-THdcmXQmjFWz5EdHuKar8eGI zN`^fRsdmf7$0K}6zomU%w;I0xWwFrtiY9xOJek)2+or`?=Wm|S(ZzdYt5S_GH`f)< zcd|;YLQ}RLzqvZ%`scM-LLPN{;q-n?)iUjuw7oigY|fQQJ%1jWr0kk^*b&WLZOH*{ z?}xm+Eq~E=iTq2xxQ%!3z4P!GSEK%pU8TRhdA&He=py&r>bk#j4cXXiSx}j04*~;r z4Ei?ymfN$2gImA%jj{l{F5TXRSn0L*Z0nv<;RA6 z+A0HDKKOIpt8?ZJ%c{NT`gD>{qg!jok34^5Z|3W=fX{;ieymtu;QH3wk5Y54dcW%B zg4UZE5)1&)RDRs_a=J&$4-Q^0v-3uO%Iv?9(PS@%fkDuS1OqoxbNQplsdy z)5o}H)kZd0^X=QhVIQvEY}nfKSFNYFPH1l*Y4BsWUo*+Y*h_7ij~~_{);IWUp8B&( ztZCJ_*nya&B3IYn>iyzr)WfcOX7orF{gZe9gezaVH+(&%TZa~g zX8wa0&2uWMK7R3Va@%u0MJEjK81UiuHm{xE{VE#j)eeZ;y*_ifzvCAM^a?Dgd+^{; zcow%&d5SLWc&6gWc4s#K(bVyM9NI2nck<2A(JrZj979RWf;IruQA1C$6^wR%8;LKS+-(Fhzb;_q4iSg5AWjduS zXnk*C_^f#~W{j>edy|K=^G(3m$&MBthz_R@&Ofw zOXD{jnN>v6f8U(LYJH)?C#$cj^Y&VSr=Fo?(ICRdZ-njacJ6D@j{NSal3-0|nxoPa} z=6OP{^z0wqx#`1eDF<%)g~_BBJ8o(=C1)EKi_m(bGgUGqXRb#N)7M1>EM+4&JTAe z=5F#bem^*-eeqo1@>f_st^eO%p6j$Vv%hIyx?SMEd%w+hd-x`@y_;_9_B;KqYqlI; z@NZ}1h|6oY-mg2Y(~vb2Vty~)zv@n{yHoy_sCM{#(@~0|rFK-<-&xzbT-?_UT^np0 zTc?X#oGjVteo%p+smHS^=1jcO|5SFvtIEd*WqT4exaq$s(?=X~D>vsyhb-}xPnH>U zKEIQ4P|0b(Z=75o3GE-$ z@66*_S96t$X}jKKU+RQP9kT6^EuKC6{mhl)6p@S8zsk1jRB*YSneIl;DDB;HS%+uc z=FQ3WAu)W!`?`ZQZTvU2z3eU3c5Be1pw}Dc7KXBCOS`8ubUwDdk#urYmmA?D%T51K za=2H=hGnPxvwX<#lgm%sX)%A^^RU7>L%nnT>{sWnuIRg7hOBjS*85akI(k@(pm!xy zJNKu$@9(ZSwl`b8tR03rwZE`#bMm-L3%jQd+&TIFsEeEb*(M)7|J;KT9a|Q>y!zFq zYRyi}*H-r{+2i-2X?qF{%+y=IdQqcN&xZGXy8V8^8{VGx4PFakv(7o}nzL0)|1LdS zR`1^X?b=p98$O%4w{)eiONSj@J!r;;gy_n0=N7vo4z%mHD{{lJ679$Qqx_h=_wg-9 zihn78qwtNn&);?l&GN(;c+|CxCg(rR8c!*5XmasBy{p8GlfCGey-brcA6I_Akols= z*j~Xsjx@M(X7IL3nHmf&yRc~!mjkn#R6JNP^@;zh-(#E>jae`?yrG@MVq*v{oZzctxh$5uAHX~Tv4%8-T4C3R;n zSeLR(pKnaD_jg7wzA~)QyDhyA*SLD8d2;2jUAx1RM^38!yxZD=rEW?J%(>C!Z<(qi zPTie*aO}pUZ9Zcg3@w(q!j|>rF1X+Lu>5K*sr-e zdkxJVuRHzj(b-}}6g@h=s#WKeYyT}v!(K<6dHk_<{#BYZto{HM+F=ITd@1;&@ZQ!nbl?T-E%#}pf;9`sM4Wt;Lo_wPO=c)90< z?t`nZ-}>%r?Y`Zo?pv8J_Z9bMV^>Vw_ap1fk2l`uKQ;H$z)2tCj$9s4t?aT}zuGGo zK5KpE*M)~QXXZJu^XKH6U(4QTx1-yi3vK7;zckr>YTpO4`Q2MQTG#v4={-{)4J{rY zyy>h@y{|2#E7V)>Z7WyoopZKJeTR-Le9r&ZxWg+qJaCzGBsG3wlcKH5uWk1;XZI7g zR`v)j|2MwIk~5_?E^Zg@RIqxDcb{h%uAWv;9oyo-u>$v=rH-%Ke0Z;{`~G~qJt11* z`O)}lqPNG+HS1P?o;2dJ$Ix%}Wzo%_RO9=i0|ur&iDJyb^hn&x)w9**=s*5_r3P)b>Dlfe34jOm0rfr z#o|D>%>Cn&o_W!gS)+6NiY?Ar{PIjQ z_aoYn^o)6gbs%QJz zKU&(?opp1YqU|aZyBB>fytZpL?TDr1)HAcsTPoORbs2l{{>yjGn+~);`*TR+2NUJ( zkIj!?xvk;6m&4nqc4@J0_ps95^~SpOcX7D+_d?zDc= zeB`**)(6L(=(@x)^Z6dHe#XJeYgIh8F}UAihg%lUonw`&r2e(jCk0$M9PF^ztow*X zhpJu~zsT+DHl=-&C6!d`M%%lIW*wVW^4bdJEbFo!aF8y5m$`(__j~0-SZ7S zmyJnlY|y);Q;VyQdl`jZb}rSpZ*=yR9)l_yB!vC+3R}1B(xIi5OLUsk@biRAjb5Mb zF>+1N&xqnf>KMv~gvf$y?{E6zIHT$hi~Mfoultr>;8~;jdczITX^%#SN44raCnw>6 ziSPM|e&Mx-4eMQ}-m+Uq-fquX5VUXOnV9I7JA0h0x_0PVuMPP}TTZSx_VUjWIdLCa zANF}a-D2{7KffL(-ArzOnzpC;l?twTiyh21Ubuc@*0Snhho010Gi~~!;Q?2rkF%r8 zCViUs)yckYHy6`nySr_kyIpj2{}@-ZOYJ_d*Pc24%?Cm__J*r<> zdZS&^mfq_}&6U@0?wYjW^xO$F?m{oA=JR{C0jq>#0$7revhdmPBlRc&}};b;9ocFG|IH zv5S)?KeBlEGI!>fx%FQ*@M%11>yavpTgScsQF?or!bbGnsGR!q^gRuamRe(8rdN9T zJZfa;sa1)pBeKU+Y1-v`-=yTEXN%tPrEaGj{ zV9AH3mlus_=RbW~*@F#zWR*UKZhfATb^BWP&uzbN?HSnj=B5%m5?5RMlr`wr_*h(< z@!wnzU$Z&uSbX8vLzV}eVr%pYJSmSU_EQr0pj2kr>H$+0_~r#z2KRc?ca`ascH^?k zF6zFo)cZ@H&)s?C6ms_G(L2{08FXIVzfbLlDH6kwq2lhLKPs-;RC>qjsXp_Lm5wl3 zYJSPH*5>45XZ!Uwe0TWzjYj8=-@0JyU;mk_>F%o!H|<(sSYyDao@w6sRmH_e`@O%l zuSmlMdo!hmBVzWwcWid+foaf;UCk@(NGsDZb$OfqvHb!Yt~OE*ZERq3um37{>-mq~ zx^Ij#Us7%M!)o%U_VIaYb+;zdc8y(sZs_bDHRB_;cnum?tgjcgwR)hM6Fk3l-#WYV=K8JZ(qX2$Q9%BV@w0q}*X*RQoo#${;KoTuvV6)q`3|{q zTk)+`?RAY)mff|LZa?8_8*!`M>{>OVMy-5(@y)lTEezUraK2*vbn3ee`4^TB_K23* zc(_X4^Gw??kTrjn0I*Lk3%)HtfJ3!>XaK~F>jW~oVw!{w)8j}(|u)!DhJnC z^h>NTCUM!T5x3n_8c(|XV0abB%|@;68DDfb`px6s@x^;0S8ixJ!{)%|IcZP3b~trp z-O$Mn6P(w^m&@LNvC@;uidEaZZ~I?dozZ{pUYie*{>QAN?=2W!dFSb7<&`sMdzJaR z=~S+Fk5u!ZHiNEAjeZ>VXzjRB9&a;Cq%B``wuFH}t6ENyO?O7`9aEv_#CRX)1N*DL z@?6s`?BwLu#x09nPjWGxp*nc=%iPVzk(Da1p1&sl)xjx~H@1}?{dDhwvy1JKL$gY^ z%Jc|U?&=>`tm)^jc5l{~*eS~Xy7TJ`CvnkhZy&@D7}#RcjkW4K%U73Z@N#bDdKE5b zcdh2z?e?Z}gZykfcdhuo?qGZCP_w~3CwPziRPLtLopvFkn{7JYsCiq@W*H-f&H`|H^a_LdwRJ1_tI#LZ@%C(Nkt_-*~Rg|%ZH%#*rat2b!*sJnwB=B^uRHKTLK zG4E?mN&UH@_=Y~4$F+;2sp? zJbAjbYUIJ~PfzXJ`}Rpf!&=Ux-Ra>uD6>pr+8Qtc#}{d9lwrmIB;IAyUQ-ODserm+3`;M*OWQk*Yvu$R%Q9Jv?EUkTbQogJo~Euggr|V4d)x%3+5~vxZzM zVixOuySHiWd{xyK*26MSevV&qyhnvS#g1O8*K@FAXysy2^JDhy*t~L#ap1|CsryGS zxVpmn{qnXyZw_iO#CU0Vz3!_f&l&62WXa+?_a5IWV>9g2g-KVcb{aXTLH@Np3%!lq z2NoL`cvf|2UJsLDogK?=>>PVBRqSDNU{PxEPiHDDoHXs?enOEgSA6lUktBnY_`R9!1Yt=LDiBz+%;Rfzu)I{k6IJ5+ZjCT`R?b< zZpjNTUA+{X)AY1x$)Jt~R?nVE5+eJak(_if{W*O8n73E&NAI^k*1lBum6j1j0!O&C zt@C5k$*#&xP5j)q`&_=dZNTD1HT<$HoHJTHUTCwY?((#Xw_QrUtz+rhKgnd1=|l6k zuc~kPIs0tXIrsAZ-V!69dCF|#PUVX{i*(q!)$-yGrL$)bL$A-J4(y%Lt8bO;PF{8| zdS;hhJUQT!XvDE~lZU?U-Skeo^%KU1ZSVQ9`c$*QcJ&9uk6rWqiD#Hapc<9=&Rv!Y5K48Oi3Dz1y&u-D(JG@Eqs$uAz$+MN-P^UcfkIedOy z>Gqx$JA>|*xsm6jC|!N)^4v9PV>UMRHkOrHv7qM5gHxyHPFK0tOPMjGTFpaSq(duu zEsl@Nf1h2l&x6A<->Ry_i7&5aFKM}Dw0Gsni6vWos=iQW)8C*5mDs)H zW-kz#AKS$*~YBTXkx#i*gjANslfBn+Ba_tHqcZ})SV}1?05X0Bgj^>P*lU8c! z$$o}*3yU{ASvSb#xNpfCPKvn+bH=;5+`4pgNu9Z(&XGsfJD=>hqTIRjXTN(UW=@*f z_q|nSPou`q{q`AEzV>bXj~OFtygYZ>Y;}z$-<}m6b)rc3@}DXhT9l0~l6T>psBDK} z4g0(0ZWjkjYkz1StVq5S6ukM!XmRhlx9iUv-DTGLiQ7-D`Wk;^&SUe^IYBa$#FN80Wx47^lW5T%-Zyy@0Ri^BJQ@!`zqSJc!b@PdA(R=@b=Y1RO z%2IBNc|UDz+{0CGDjnNtJ9TKS?o~X7jg;4ERQz?SDzjOMkfxiGW^U}(?aP6#gO%2+ z*B+0lIHj_s?e%%BS~vJUuH7x$9%bH)`n2y_v&L(>R_S`xs=>I~O_m-z`(6s($)b4SmL(^Wl(=8o)RkEJc*nE8_S-5}K*Z1ANe``JSb_eTw?Z-V$wjWS*UH*z* zvr-=IzB7B9f6-cJf}ZYu?lJF(*uMGYg<**USGRulVM_3gKI7L_9v`zjGyTbmab?QS zS(#|IH|y)IEff9fMdw#*)vawK|1Xbk9qyj?boap(Z9>YNp3wT*rPww}8MfuCFRowI zbhgE3b$Zh;AMM_5NS^O-Z)+pR(#_IWpXt}>+N;tBDh^s!yy1IQw}+;NkU;KQ#0#HRo(}>7SjyRm{IxY@mDMv%Amlp5Oej z{w>+lBfA?-pLKA|jI~oAtgN?vs`O0fI%7BV@g8_6X_Av7)OAwSY2P91%$>KJY-`nL z_Bna#q?>C7+1#Jl{qU-a*GlYszQ1L!i~Hsm`|)u|BgLW6CdH%MHoI5B*=z6#L;s`F zCnpBoQ#hEs_IKGp8+q@=%rogZZ{p=MS`4;tQ|w~5Pw$MHE&Wty^@oRB z?9R+eyKw999T3%gavyag?=-vziVj2F6T#8-1e@)?S+0hCF-si8|ZrQdvo8=?Ni3S zGg{yN%Aj4l&K@7SdPwBH>Kk{gopEhZx5p9NLYDO^*TvX>{gvhc^^S$M$Z&1Baq958 z-n%=;W}f%EF+ba9Sfz<8<-U7UmcF%^zHVgE-Q}7%eU+sTG!4-_39UUgY)s(Q)L(a9f5orp+2G~m&*0rzWm z-SlMV4YAe6qy={^+l=hd-|_O?kB@hq+CFPU$pszv?K~Sdbfz6u%?gP$ zZ11|IUekG!s`neMJJI*kgP!qwUih?n_14~|+Jds-J!Mk!6E!2JHR)s9=#iy*sb!6; ztxt7o8qwl%mgl}HuS^r)6b(G;wkRekq5Rwf#Oa9D@Gsm+xX&oAp1A|Hy7=_@U<(M3 zr1D3I)+juZ#vdVOqwvTe{s<8lLDgXTQ_}7oMtF=c0%0oxN?_0gfpp!A5zZleKp23K zfRKgI93c{6C&Ekw5~wXeAbxxb0_hA~5b_W%BkV_jX4-%_F+UL6AlM=FLnw#v0AUWo zYlQj;*APMxjv?S)m2qCy;d3rRH-upbkU<+j8){&U0KSRA2?XM?h!MIV+(#&mPz_-W z!V(1Hreq^rLHLI75@8@hXM~#wDug-+IS9uQ{1EmaND)>cgd+?^ARS>0f(T(bLNA1) z2&A#Bhj10)Ey6v7wg@8;NF(Bf5Qso}-6sfE2p1935q2Y-LMV+;7lG)*$p{k=A`sjW zx*|9ttVY;~&=O%1LJ@?H2yYOe6ldDxs`!*496)%Ea2;VD!Z?J=2vZU0?+k(u0_kXm zAY4LlLfC|`1|bfiDMBrTcL=2rULk}av_hDV@D!mF!ghp`2zwE3A>jRo2Kfk$5GEq@ zL69JfMp%#V5Wy0`4Ivug0>V;+DF|N>4k36Vgdt=gBqEeYXo%1Op+7<}!dQf}2#XNz zB19o7-2HPCxmSX3Itz-^9YX+dLSG`FhXdJP!nMg!ZHMJgdGU`5LzJIKrlm?jS!Cz zfY2M^BSLM2l?bB{Y!U7tC=n_k#3Gm=^hDTCOfuOFds?ZVgV$v)(|oZokw)S53!0chjGX|Y6p}P5xI`*7 z!43+Lsbd>~XEGgSyWcK(3IOckTeDYOSPW~!h>n;$%B z%v4bcUk<5MW2OpAbmh~S8U2m*Oo%CTCNy41d*FpWdr$m2H#1HQu@h(0%iS?x4O4fs z2-kS2dnuxkOzabU-!J%nK=A#b;QJx^&Pgm%Cs8V~a?I#c|DverH>Y%Z~L^f(psblCAcXHJO25LyD6EplY zh=YNeQ0hzuoI(a_JgEx|4 zM_D3bj}OGG@ga$G#eZoW?S;T;5P=VJk*Oq(^+sGE-uvo;UWhW~^pYZm|IGh?txt^9 z`Hay>V?v-|SyhOJg=tpAY~Eq@P=CRhP@h4;OM^l(1#k4Dmm<7}nT^(F;B7P#VWSV; zMk5k7`rvIeGGU_+jSc-IX7?6UKTdp1XF$hB1tIbAJJdtVC*@9r_*ngc>Zq;GuSMtd zG8w2egmkh#po7{8iu)rM8s%{NAG2X`q?!wkHZY9 z!4FJ8D&RcY#+z$7v<+*bDO@KY%8dn2g?J7$f?Qj<2A)%y1!v%7rFrm3jCihhWb|eS z)=!?;u*DOiGi=E+g~2T6P397T*E;AVErq2f^wp$Rg;9Ee@}jWxgdm#q_AI?XSy5Pe zLKjVX2bNwS_$VwrA&(}#BTFw3bQG4JfJu|yiKVyx>-rLIY0^7WdYy`d#0E6z^%|2< zO_SV(l53SMQFEA%+%=>Zy~duMhigIqa>5+}E=97zrBco`BZSo?p;uZ2XYw5hp(dp= znW8I!NrCR9i^b%(-Kk5>btg;x7u~5#&vhqD{}YL52JJFbDJ00xBPbpK3$95{+n2+Se+^JHJ3{pP@( z`_JJx$q3)F>EIJL9l(z<`#oRYJ|a7vj*!>?aqpwBCw-0jE0Vx171YyAQwdLV zO*Lem7E+Te_jGuS#QVuv4YiXKUnypFa}RK2LJ7)}OX&BefB|V<(c3{OFT4o?a}T@F zSkth!HD>qp37CU4uL?4SRzWF&M4H-1+a%{W(E`1IQsqVdYqNEqB z#c6(fj^hqYw{U}W3li?GjJpd%sptaN6iLF0s41!DLt9!2t1jzgiEsu-GOiQ3*MhLw z05<)(o9ZhOf(=p-fbjVWrf?k6%;elzG$dgYeDG%phC5PFOmhhHo#5Ru>}HhHz+nDk ze=3psTmat9XX~TY02{L3qo{cx?nfBHgKfX?q&4_GY$o7bAr+Ax1ci0}1 z?KE%mAlrMgo#Aa|$o7G3xxB3&*?y4iEN^R1wvS{x$J=_5?GxF~^R{7RdrY58BPNOK5fQv4qC}qS&*HV=HanYR=r6%U0M=46J!9_1n zlq$$Y^C(L7;G)kdO2y@(pD9Wsk&7C)K$Hd?7qzA+jVmtdOi>zATvSa_8ci(9;ZqS@ zgCe??8FsL1mtD}kaeV^1eWen-x*XVJtC^EswCU;c6#X_S!ybC>Lw{)u3Ix7e0Q)rl z=y?_WF-+3m1A5Lxe+<8pJOH6oZXwnJVVOfhB}!k%HW_Fg-HZ|_cm_6|)JW?FbB>$SHn*pcc^GwSc^F6iSvgZcJW7S&x-C58wy z{ewPsp*(5E{#~AW?R{mat_|vE@ZW{4xKn3l?fp?NE=(CXjCa6N>Ytg|Lw7iFt?s+~ zYh8P{K+XAU>Mhdzv-WnUy3?J>@9HjS?~)_=_RbWv_dBimPcf`0X#fLgGYen@~J{jV|l<|5;REhd$Ca%>TPW-C-?rx1I44UzsD{SwY<=_*_2EPJ%q6=l#Qa22-B&3*is)Or6i?nJUQBZoxmyvm)h5 zzd(MUXOQOp3iooy1X+FkgRI#7A%9<0h4P|bHown{zn5#Zh_ByWL8kdy^Pl!(HOiBI zIsHMNq9uHuUj=zC*P8z{&zh7c{WAN5JUy53dDiyQjn|u6^PlEfhw`Lfet(c>{}p_m z9RzunTB$MrX`b~dPx@u~`#c3>XSpD&KCAvdEB&$4i1MOetiR8TA3G0M^YuF*$aMXh zzt2?fzO*UjNxz7HpQoUHR>gJQS9IOqXQf}i7L*tL(*C2o+6(epwf>*x)td66U+}-r zi*L&=8~L{EE6B9rroYcruPwtUPkKV|`#c40xnGb~^(}v&m3~{cqrB+J!|(Ir>$h_o zU%%^uOz&*}`%Lxf7eRT_la1f!DX5gcq7fpH56O-TP#n;bnA78&} zf=oy6|NBh!>eq?#q$e_zr{Ep)%G5V7^6$%j$x?973$)K1L@8uV=n4;sw@mQ>07M~E z_RK->?0}^q-$sn{;*8(c#(j<&8HjxCjC<3knKU8a!9ddc48EKCNR7EKoNqidjfHoS zB*6}wbfmte5{XjiBf$ed%Tr&I!6@|=K3KjY#xbJxP)*t5a5feMD1k36XWO^+=H9*S zjJZ#cuA3m8NaD?EdPE(^hUpR_D2z!5G( zv2#dRm;}oQCSmlIJ+Jq{8-2+H8cJxGjG5>wx8=eC9I!VD4^xPJs&ePa#rADOvlJ2# zSJIv%C%J@Mka6som*p6(F}YbqWMS0=X;h(d$t;``N{kvf3)&{}RG5%g?D^n{m#CV^ zO|zuuqL3Iy6)T)744#~EzAIN5?90$TOd(a`4XaXD|3Gq}l$$8IH&^0?uWk`B=OW;M zx2K~EGll;v0=dv3`!LN5Jso4vh|~v4)+Z8F zobhA?{REq)qm&9UUgFC-Kq2+%%$*^Z7IF%V>>Py*>-Oj+3BS`#Gr;;sSOv zN`@B%nmZlfqd(34p@+~3k}!L2NTZ7tratIqxv9inZW@kl(m|S- zB{#)8Xieo9Hdq3?D}rlwWywwG>7;>yrIA=>Vl1*UurQNIP0bBuRuV(8$jscx*uvD( z#6U{80%{ohbF+?9$D^gwsq>sQ->LiX9(B5?JaY&0Y&II`ym<(3rbfqgX{_6a%_zwQ zi*B~+6dFl{f5y6Zt{E8%>|*{oBd%~<>;u^el)j;+d_0(bL@wC3<2`+dQ$Mg6+n$hP zZM}oR(%9Dm|CE+k{bE}IV*Q`&n!Wz?*TPcBA&1{OY$h9r%@*cDY&J3=zNgzSIBW`( z{SF{b{e%;J%tT2!1i2IuG5=aDHcI`>a^u#%wEPn;O@an*DTS{Uh++0zsWW54!vMU< zm-?%~IU4L`=P>NmJByto#8Z}z!_%SE#0*a}xa(YEKuj!my3W<WTF(V9WbK z4CKb-Si8orO&@fX>l?OB4hM*=O(g~!&{iG{6KSmQn8-3^qlbE?q^G89DZ-l2Orn%> zH4j5lR$?C!76EYSYx4|O(OyHvG441B6k*kyt2KYp$QnSl0U5MuLx^iyT(^6qVzx=~Nq2%an4NrnTiV?jD2IiRcg8MY-8y|6OAh-V;fm_C~Js z;lSP!N!Ogz;5^b5L0?;Pd!FF_f?!7nI%bY6FKm`1N+DcIpdCU*CNlLfbUT-r1_*6R z%Ee?#6h{!3YLE$|*#w0TM_@w(c@J0e_rLgg0h#`0a{L(m~dwtR?(4Q!UidS%+AR9MNoT296@8OLYKl}S0weN-gv)(9qQm>KdbB9diUn3$+yBJtmz{ddHFiHRyg6&7jA za+U^O!~2H0bF#oFl^`|#BQ^dbwW)*>cjm^vgy}In*?d8*fO}jIYAJS)tLq7m70bya{>mgMIDNNX?f)lBw zwt=-HCFqLwTPd;3%@mDRj!%P9$uv_2X%>u?a^L_1VYvpsjCK318PV27*u~B$jJ76< zfFB9If^cYpH>e*;dN~6x9FQ!uLy{WNC-K@Ez9F?A(tG#zlGeMV# zxF05YSzOGuqc#q9G-ty6r?r8+uQl51j38R0uZ;~#ilGNX9k73tsRY~F;GcUbvBV_; zb9xxHD9Bf)$+#47pXVH!YDu}L(0^6vI6OCSqFn{CB*8K3{n^z2QmofLGNr_U3DN5c! z(H27sLs4>$+Y3pQLP}9`4IiQSWscz$kQ00YBo%F8O<7@0`NEp9!kY1gHD`r2*A>=+ z71jaC zYC~6)BO4ly7*Wpl3YXv|)XR>-k>wnvaFRP?WI4+fa;GQ-hPn$Xs>qSs$`w%xTZ*dW zwmEV;xowofj-vK*yBxVvZWpCcQq)1NM3h~0aHS$AD%e?ft8(P_w4skZXHd!QbFjmY zeU!q1GuX==a^#M32WZ>bXFX9JxELes{UMW8g!% zE55qQ@zBl^&=Pop{q7LlPx2gGW2TQ>%kC9t(!HR>PnmcGnHsB=L3kpLyA)FnQAK#l z@Xg*pVx*pr%u=o37q^18_@KGPP`Ce1y)K5@z2ShF>`%$&69GTkn$9t1dRvZMZ0H@W$c_#M!*W z`$-`OaCQvNL@9JSbH+vKboL5A&#!tQ3xDMHj z&g>?-`8QiTnX?0UcFRw~*_wL*DiC%^B<~stfX2JYZ@j|^KfUX_FU&jYs1S3d(%ceo zWyhSUy&cdm{BOO>3Mo694O&tvyIj9%e&=2GyRw@U;+^$GfgX?>>sLekn`&T7w%@eU z?>fPZtA|+MzvOrRf7?#jd+ygxrlH39*DNb&I{CNV0588QzqkNfNSiYpT91+Uj=gAb&&<( zE|)}bNo0|zm$M2`Ba0Nj1V|iibH}w8gvPP%g3vh@Tnhrng6n{DjEf+Z%>bI>Xn&(< z%E6CRonyg8AaE?W0652J>QpwDXgujV)?ETR$AZx>a4Z=4oMR08R5mGLPNQcfA=>$b zyAb~2q@ulggmX(6n_DdO<`#+-3Ji3h(8+}k6o${-+`^9Xutu@M;F;`&&n)0R{XEE~^6m z1z^DYXLAeJAo~7wP*A|X;OZ*iUw{d`f6d&Ys{D*56%}r^C^Ox3!e#xNzWDcY_zzwV zbeEiFN;sgs%gW-SI=o;I%902!0uDl%Rd4|moK3jnnjxfdth)qsjs>G%;8-y73(h87 zar7M*nEzN3!LS!N77Y1esM3uUB1|zh>6L#JyYcCwY|(`E;`Mq6cq!T?w!=K2r36{S@&GsZILb zXT{g|F&XOX=+q;8Zu5$lHk7zmGNZ*=gBR}K*R_p1vAcZzhM{M2UoHPuqfyYXT3#wAq5H<0sAz{;+fNH4p2b@6MevS3HlHT2pm!Nm}KO?H!UL2RFG<#CyWX+Ap`- z-s)g>Juk3=X+24?cKgq-jLyowKj6{Pa^1&WY`iSK_4}utl2^;N_xJR7UcB+}#V+7Y<=Ih^XqjVbJjEQ^T&?EyG~PHSlI4l`%arD#`mn-H2=l6YaQ%r zw^=f7cE*G&D-6c&Ja78xeyDishFX$bU)S-+L##ym*6cDeRE+LcAxmDZNtYW>r@lRN z`t`<#NmEw#F7jwqnPGRolzZ&l=XQ@eZybBMlsGghVN0~-a{Jv*-&#M9;NazPTSt^lGmMB+n81!=BaqyzRcRaYPwU|_$w zeSA_M{rKUq>GI|1Mk`i4eBQV3jPb{h*K!*&WcH|I$Eto!O&#&->sPz=VPVfQ>(n{+ z?e%N3YO7W~-*DkVmx%fE^J}eH^R(!!S$kS6T=?mJV&asUd-t~Ovt`TvJNfy}l_yPF z-O$S`F1~Ep@U)PSY9Bs*5)D0hvPsv{rQ0=IwCMfW2McP*Sj`{E2S?)P^uKVCqryAOuo7;LR6lD%P ze_nETM8uskQ>V@!S+nLzf0e5Iq=N_Bv|6&{?f0~_A<301*E!m;!nlw4P;Kq$XHH#GK+|t`St>T0UE6hfY96Gjk?c+yYzAVvg>(=vX zTiZ%YZrvKNvqOiwN;5N;RoAcgy`Gm>v14Fh>)sVAG`2N0b)8tR-gR?{#I$a)V)0ws zwYxuO|Ni#7&Y$m5W97@~*_kZ(P~B_1Aar-%HOted>9QiWlan*+tX}=Z zS|+nk*uMSZ>;C;m*7x*GXy@;r80_p^tj*%ZZ<01{JTmq0;btcuKQ21&=FNeRd-tAI z#m&uQN`nSBqjv4OVKHXRaI4XyhvoI`IbmRxD%E>!+H~+_=g!L~)UA6(Vq_%#^zoyi zv!$iY{-~%0ab?OxtZvihOYF97xvJsAv!?Ic7h1u^rFik2oNZU{+zEd6`Ln`j+O!Qt z~@?_tv52A*iO&(nSe#ra8Wv?Fyg7=LSBcs!O7;;AZur_}T)0=EN4M1(KL*cr{vz|4+_P@i(DAkM9VXw3AJIJJ^OhA!=Zhvb5Z%4!Hoi^g zRx7;MKT}IfZrX1&{7}k_^W|iVN~uS@ExKpXdXZ7w_7}<_?M9z*_E|DuN8nY5x|p=f7(;S3LSo;KGm3`j`!UUcPGNtK}Vf&5`Wt zVco2X$LKFpZb~ZOtRi0B=;5x~SuMwH>UFTa*jREQA+o96PlsvWie1|EWa_A@HBNT9 zn$vIXtDg#w9C3lZ5~-|d^zQu)6A@# z^u33gMBQ+oAKtG)th0@y^6sSVrhDglKd4kBuZE42%Ei*e!tCvsBdh#2FWqMAy6kA1 zHx9$r^pQ4vIsN921%o2X_xq6XU)zP54HW4R(ed05`9k;J$z&Hi|<{x-hUHw zIpD_e>M_Ht6;q2;%{VM~A6CCu>bV`2Kd=50C_hqSUU!$Ak_~RGFZIr1c=PA|_T9_% z*`SPH)^po*`Q*A^>pbaLWa;;@2j{*HacrIHd!8a$wDe zIqlPT$L3BNm~hc=*%?op4M$f_uV`(by5#Y!m>$nfaaf z_HMkh-1i~J7w1jLT^qFIirpLIY4xi;zxHX+siu~ytdAx8Ho7#f#;diBPA+fM^8OU# z+c{@9-D?;((rKTs+t%8hnhl!W;i<9V*fQR6dO&JSKB*I8F-*16kZt==Yu*xQ~SkaVQn zo)(`@J&nj;-u8Co1l#^KuMa=I=H1|JT@O|XE>_xi|AML!N|ytPJMVg$t1HzT^V1@` zTKT1hy=3MaZe7`Ue^$rV`zEBE$cVZaxVdND_;$T>x3;NH>&xjh@bKqOPuUrDz%zF! zPtl}>VBwJr{s`T)y18mj7{;4vS(G~gFNp*RbU1&69^VR&jNp&ZFE92yUaOrK{U2K| zUxQ@_wqCxLzR-I4I*kQC7u4)%Ve92isDW<1oW=MblDL15Ok*b9a|ybA*BbeU26XrS zzqDTNMY*TY|G!!S)4^#=S)b3yk1m#>%emH98Om;Y6s|8wi*f1T@pdA+|Z$xIP#o-t0<-Yj%Ppp@d zyMMM`z7wSorBMECy__7Vcf-ck%UNs>rJ(ilUHJ0n>*Z>A60Db(;G){~a&Iomub2BE zUSPeP9PsPqbh==@oK6?4m($q=*30qMA;Ee%`O>VHlPAr3IeF2nmy-wGdU<6q6a;I6 zt~jWDc7~lW5fiKnM5VdIAbfZmmF58pTb#|yW{Xf*6(=9MRdMnmc-qPN&|9+LoX`_J z^1-c7kPnVZNbC0GL%6oWIT1W^%;tR1Y6|(_Rw2lTV1=8U=pKpU462N9`GNC6YbNAF zx7NTh379wS6IM-;bk8d_?(`P0e{CEy);4n8iUO;c?%|}?%da(K>(iR%G3UJK)}#w> z9=*kAO^n2nL*>lx)m# zE@^$2fhc}w(fTf4Cdc6)HxOxk_aA_ucJyL>m&ZbGb+L%v_$^BPriUNJV9^IdPgt}V z#I53z4;>bgk6&CAz(Vq&#UKs~$%hUL$%o!`M8y#FEG|-V!DBLqh2%qkh2%sJl*x%c z7LpS!ChM?J*E0MV&Q2@5X$oK=E0h+0&^TsktW4TrtMQ^65U2+gs*u*<@rSLUGA}wT zWM$D^Pg*a6Rir{1$bu`2c5rISqPv8&UIar^>xI^f_~`<_$SUt35Tx}`Dp&!Jzx4h8 zOT&k)Q#wlRK}e_!LV_0v z39%p~oB|+YZXhHa1tH-D2noAENT>}$!c`Cw8i0^+ z3xtFVAS65nA)!793Ee7w03juI341|E7!5+gDi9KOf{;)bgal&{5^jT#un&ZUJ^+9i z5E4p(kl+YHf+YwE-9bob2ttA_2nl6CNGJ(H!W|G2=7W%M5`={EASAQ_A>l0u2}3|g zr~^X6N)Qqrfso(>LP9nO33EY6m|kaFcgG@;~*rI03qQ# z2nm%yNEiS@!d(y&TtG^C2^~R5I0r&P9ta5=K}h%t zLV^^81WynW)_{!blJj5BuoS$!5xHzdLShH1R-$6*Y1VTau5E5bl00RL4{Qv+d0D!jufNlVQ1OUJx06-}K zfFS^&3jn|e0Pq6V{0Qd?32m=7r0RX%P0IUK4TmS&f z2LP-A0L%gaECc`~0s!^`0JZ=C@&N#o003S9fU*F95CFg@0KiEAKxqKLA^^Yx0Kgjn zKraBm6#zg00Kg6aUI068i002Dz0O0_Dxd4FX0Dy`BfJ*>?4FG@=0DyY{fRX@! z3;;k20Ki!Q0A2qt008a)fbRf+bpU|20Dw3EzzG1rZU8`e06={JKtljPC;;FL03a6t z@CpF1902eQ08j$}&0Kho_z$pNLIRHQb0C)}n zhyVag1pw3p0H^=}2LS*}003zKfXV=XjsSr6000L7KoS5T5&$q50MG;ga038P1OVU- z0GI#(7zqHV4FGrv0N4ruumu3z0swRX0GI&)t^)w_004mifC>NrQvg6c0DuGlPz(Uj z4gjzp0B{}vuo3_e4FJdj0AvFI?gIb@0015V0FD9x$^ihn0|3SW04@Rm8Up~90RZ9w z0IdN4?*RZ$0RWu<0LcJ=)c^n)0AM=+pg#b>69C{30B{BXECv8<1OOZc06Yc&+ynsh z1^~DL02%-Qb^!p!002e<0D1xdssI2s0RTD!0O|q&i~s;10RWZ&fG7Y!82~^V0Khf? zz;FP-J^+9V03Zhda0dYJ82~U103Zhd!~y`W0st}r0Fwa#GXVgu0DutyfF}Te(*S^0 z001=r;5GnYEC6600ALgVzybiU2LSL808kwO&=mks4FE750N@7zumS+A1pu@J0PFw& zC; zjX+0y4m#p^&=K80M;rw@;#bfSUxALe9(2S^&=J3Zj#v$J#0{V$Mu3i33v|Sypd+>b z9q~Tsh%-S)>;pRD9ncXggO1n`bi{bj5z|0N`~W)QP|y*(f{xe>bi}iuBYpuL@h<3y zD?mq#1|88GbVM2Gh}obc)&?DMHt2|@Ku0VGI-)7)h-~;$qMdx3TLV0025-RnQUdfsQx;bi~b|BVGUC7>hj1RYTcI^rtO5wC-e*b#KZ-k>Aef{r*5bVPH|5$l4ExD|B7IiMr%0v)ji z=!geFM=TFIVgTrf=Rrq&3p(OO&=JRgj@Scq#A~1<8iJ0v4s^s>pd;1;9q|h2h$}%y zd8PE}rgO2zfbi_KKBU*!wm;gHBYtRwvgO1n^bi`oL5!--{m~ zj`$dK#44a8P5~V;3UovZ&=IXbN6Z5qaUkf3y+B7i2|D5g&=Dn|BYpxM(HV5a{h%Yp zfsVKubi`QD5mlfgP6r*a0_cdvK}Wm_I^r|X5q&^MECM>>InWW8fsQBz9We-WL_g3G zD}jz^2Rh<0&=E&~j<_6j#HOGlE&?6V2z10S&=E~QM|1=ou@mTsm#YH+Ku6349dQWg zh$TQr3d;)~z zHy|Xh03mr22+6HLNd5>yaux{5o**QD2O;?~2+8RnB##FnxgH3~T|h{l214>35Rye8 zB-?0`AS640kURo}fA^8gk$(2D!UJXKW zZ4i<-fsiZ)Avpnr#Ul1GA&91KG8br6#4fROwIgydr& zB-1^_P!N*qf{?rtgyhB`B!2@TxitvMt{@~A2O+s52+1BGB%cK#xdI5u>p)1h0wMVv z2+27hBsT#ec|Hiqu^=QXK}a?QA^8Ca$u&Sob^#&T420xWAS7=CA^9i>$-_WMZU_L_ z0YY*<2+4CmNZtuT@*xnCOM{Ty7lh;+AS8DMAvp$wV+F9sobEeOeWASBlZA^8&s$(A4_mjoes z90;yvcRuGa0fskwrLUMZ$l9ND4_6H$39E9ZNAS4HYkgNb9 zc`OLY$si#J0s!a)09XhB=l}rd1^}o900;#D7y$sj0sy)L0Qv#|8Ug?=0{~6{0BQmN761Uk z0RT<_080SCUI0KJ0KjViz*GRh7XUy60ALmXAQ=D<1^^fe0Pp|+!~y`00suw<00sa6 zssI3b0RWl+09FA2RssMj008O(00IC2K>&b30Dyh~fYktixc~qk06PU<3eQ5da_#05Ajq;0yrR2mp8s0JsYPcn<*B z4FHG+0Q>*|v;Y9K0s!0r06YT#JO=>00szbb09XS6MgssO001!nU>5*j8~~s_0N?@u zzzzWL4FK>208j$}kOKgy4geSf0B8#UcnJV71prt909*k8bo~zp0K5PI^aKDT0swvj z0D=Jk7Xbj}0RUG40E+h0Kg#tfI9%70RX@e0I(eZ;0*xC z0|2N102Tm%BLIM<0Dxrx00#ho6aa7&01ycP@B#pQ002}30Hgr`N&o;30|34Q0Nwxq zZU6v=0RV~s0OSCGVgP{30DwRMz&rpzNdQ1806=p9z&!wf5&*Cb08keI&=CMI761?e z0PqC>OaK5h1^}D|0L%vfm;nF=0|0IT05SmpdjJ5l0RR&L04D(ewE+MM0KirNz$XB} z8UR2#0ALaTzz+am0|1x~07wM@!~g(x008;}0PFz(TL1tv002Dz01p8GX8-_?0RS@r z0A&FHCIEne0D$!XfT93^$pC=P0DzqUfa3swTmZlo0KhZ=z%>9sQvkq60Kg>xz*+!6 zBLILg0ALdUU?c#*4FJ##0Pqw5PzC_d8vsxZ0N?@uI0pb|4FISE0Ehwrm;(T80RWW% z0L1|S#{d8i008R%0Ji}ENdSP;0Dy7;fKvc~$E$066$BY8oNvp)LXK1qa->Yik@`T6^d54g>5wB8ha71) z+;MQYz#~F_0rYfE;NmL5|cI za->d>BS|1fItw|{LCBFxLyj~bawIY2NDCoHGJ_ncD&$BVAV=B-IZ_qKk)}Y7bQ5x< zMvxfkRt^`j^qkCQat2H`H&-7L5@@za-_15Bbh>u)D?21nUEtDgB-~ma->O+BW;8n z$q90#bjXpSAV&&^9LX7Sq`QzK?S&kv668oWkRw?_j`S9CBtOWJY#~Q#13A(f$dO(` zjIXTJ59CP8AV-ozj#LM7q@|D}&4nDPHRMP|AV(SjInq_g zk;X!fG!1g3#gHQ{f*k1@-5SQW?mRdP9!%9de{R$dQ5|M|uM}QZ>kt20@Obf*h$Y z+{P(tXI0av(=)2szR|$dPJ8jx-x`BtyuNzCw=l4RWLnkRwfm9O((fg^t5|qsJb#2(Rl*|^_#?#p5+2Foj}VVccw{1fgh*-shqO{61Nu?G-Yx2? z-Uq%pUSc0*29gqsNTQ_b{V*2(9#TrqbX6<~>8cKBEZXy<3e!~up|(0*6^jWeosntG zq|fNo8vploRb?sn6#D;Hx+*&UU)NPpd#VrPUs@St|9`ozim%LnQCIa>dH&Dos{T6H z|FW*CKwsH@Ud@js@kqKoc-OjlK)y#Ezl)ge@8eJ86(CMl!>g%d# zX4SEODW>D_Gx9H)1Z;4Q`%6Yf=~aK~gJ?v}3rLwG?Ljtu>sbA~TOoyB=a*Q@ z+B0=-ImH1hjP@XND^Nc0et#iUv(gmmmJ=ax)zR}?fcwpP;NPLCE3M#7c8mtiHG)o; zz-hEt20C^*ix%K*Gutoha%L^OMVM59^Q2dDc>(se#zi4z7rt9mPFE;5sDRT4zm3+5s*>vs!$F^=vG5B53u9f3Z+r3z@Q`3 zuk!#|e;IYmEjJIa<9coj%vvm`f(W9?s{k}Hx7<9yCD8L*VA`S-zg#0+W`()c%>%kt z7O0H4{Pc%2v;8s;FzYXa9*0Q{OH;aoFKvgcYLfhmQRMj@MIp;~MV$(P-Fmo}- zzbKA0*%j6*Y#!i_>$P>knTsX)MR%mht}w@}xk>9*RI7EP#JY=-%k$Uv{&!gauMBIZ zo8x*zzZ(m?#Q$tW3y_~V)*(Na&#zrqIClJsqdMegp8jJaT7dk_ae={B;9iWYRH4^k zq3`$PkpEvj-M@OeztYpu^Yn)FFdcu~0g+`YO|jNK0kvi_a3Yr!yw*9PGKdV!wdGEsk|j*VtqFdMiw(+P{lS~cmO@3tbA@;05w$c;7Q41J zmAHnBu~(RjHH78_tU>vvFRqTck2!CR}() zOv2^H*gIN<9fbYl;&a$`%9HkO=FY)(!L)CuOm31Tm(pgYn7{eGH^qKuWGFS~SLVuc z<09Jq+$2@HV*4Dn8<%s{R`@FA`d4C*fHw5u+Yp<4b*JVk*oHI7$Tqa&+mPE(4I8I$ z1!QlRGcVAh7Dm{{OPfN|nA&KlRH^eNXc466+Z7w-nmVCTSD;ZP3UP2YK4nT1eV3@N zSQQqIU1WvLi%ssr<>F9ezZ5N=H4eeRFpzZh;3rEmMBpQHKLI=9?JZQ4N~CG z3i~>Vu}_}T%%_KuD1{mq4|J>zv1_3}o-L{$pmdyBmK_ykEiw`r3vH@UvKq?lL(OGr zb#QXvajapH7Z#(#)*`XgI7f_OX_R9`k!)*2seP!KR1%m;?JhRxg^K&)`c11rxrlqtV1&%dF~3bDzpewzs6ciEFfx z6q_TNWkp(`gd(Mx7JnQA?{PK5#>{{_hEA+?*PB`7!h zFmx4b7mBGUM%C1&qwlQ7EFB+X>8Re?bo5=9j*qc))DYTq^j(*ZkFj*rGAtc8&bV>l zhxW&l;BDAr%9K3>rf+7NuE&Tl#endYiX_6$N7o~TRA^%3!Bj9DPGaKG8xCetx&k)A zJ8jv8Ewtz>Hx6h#{$)A%F=fiW{aJ~^P)w943>z4h%GH#Ho>>-N4!Xof#)T9+FIzCo zf3$<5W>Qb1BEcpLa|7m-nD*6QHY&dH^M@YlTKyEc!Dl+R+#PTJr1X{&EBD@PI`G)0 ziy0v*lRBHOUQ|wW`Zi$HVzYp=D>vPqc0Dn_GiU{-4K_B zEmJmyh3_wavD7R@RWhL*4nL$(5+AWgg!mR}QQjnEt$d`}P^H*7X_oL{!x4#z?15&jwc+ zRrJuxDd*oMbhj#B{r%7(HO>5u-7^-}e|Rk_e%=rJv+&3JED=iW15knKKq8Ly~z&MI}j6rjjWkQ<>{#~aKKV1niy&7)$@GnV1dVzyd-#vY!X!71+O$x=N{g$C zA3fdr&hfqoOWMz&^2qsxkxf>c4vDw&Zuj0*&V85!HGvN;a+(YjEp218-3iq{wHn;@ zNqsrv13&t-3oi7G%ya0i4k&8-6j$_}iYq0lCMwp=eDTsMNu?&y+`?ACnLXES*|A9f zl+yT91xB}tV~W_LzfX(B?o8OP5!6UtVUbJJGElj4NT!EWnAX1Fumrnt#@lLIk9rLS zOUl;n<+kS))joz4(pDUGNJ^)VyO_$VV3I@Q1MKqRXxg0oc8Jj02N4mX{FuKIi?ZnzUpP|-KyXG%kC++a~oS|-H z-gYymdXqP0CmyWzC(} zRIZA9j-_BRS7{rQzm0gf6?M)$W{dxN`CXrGMqx=G<4Ta?%Zr~fa$4e%d z_slq9x19jbbMh(fXj{XqN4=(()nA+s&_Dhu)y$9g)$?x{FG8V^%;s1dNA`Mp)kEiW z-iRM8IF!lcdki_s$t{`ROD7lh8^WJcA2<6&HRaa2j5BX z@v>jfhb4%2t=Socy*eSDr=M~?DKq|HDVZ~AnCs}73y1fM6ckC2dv1#6G|X;x5p8l$6-Lu!r9EteckdV|pS-VT z);W0HrBit!p7dU8%G}P8$su|1BQH(}PKEP+(H0s%6IwSKY-`cTgHd*IByX53Rbpa` z+naL6*(Fpqz%l%5@-brldnIzDdRbhdq)O&bdIBc)`(1lB&0;LqwI`37N^gn?%QdxD zfM7W0sGdCaDB5dsAw;l(kNop5#_0F+l9?CJ9hAOBaBz-4=-anFpSx=0c6k-mr+=Bb zd%${sCJkW=ttxHI)=2k^SF@J;M znV8STI05%OAEVsMx#d{zyFGMdF`pQoTrH4LZvKpQXD}2v>mo7qg+uRBQ)m*~L6Zxt zU1T2RcazE^{SJ@rnYb{q#2wacuTE~;T5I?6ARE^t*(YXcIYsp^ETuI9>PJ!-j=nqz z{+zm{_hoPoW8z}(SwkHux=!!MK?&^imOqVTiCkVk_@Kx}zn45s!1Vjj_35SMpK)SU zrHQV4nR(7=420*qjgC=R(1aK4P&&>vjP+h3*{AdT^GOj}?&0{(%SwTQ_4dckH)u;Z z7tq}+rD3i+Klb&O{@&kdv*Hvy={gJ3`$V~S(+VlDTlv(mlcjGvR?NV-;JTVKZjY@U zi`6I}2&wmd^jMnW|ua?zAmguk83q>En(n1%*5Ic8n%UEj;6^W~Verh)=e> z9nojJ{>y+M}+wr9)=hH&xjBVZdIoE1K z5^f);;TWeVXfoI-p+Bhk>AJ8~`RU2&ag(vNx?R@ag;&q*z4+r3)1easC3YiBC+O7r z7?pU7zy8n|%g%bhtb3}vMfdHJ+N|2^qB7@6ZbjXb#C%Pvi9S3ZUmpnzcRqM{P|qf4 z-*k#i^8ukKv*eJ7-w%pkzo->p4!G&@)`{{;=)th3H;s@gGxGbI>^UC!HcSXj@U|UM zY9?cIhEz(kIo#G~l(*fSa+gu{kBRy@VcFTO$bZUIuIHka$B(z^(_t#E(%$bv14$nx z>MgPxew-YUjr(MsmF|>TLqhfHcQ(=S&u=ILB`)kw4Be$sOYG3G(vZkQ)7E{iyD7qu z&Zo=LK}FqR;N-5CuRh8volRU6-p9Lk`sXm867!*bdDlgg28I@LLb@G~?;BlE3A)84 zq&>e&#Oc-oFSF`GJH|`GWwzWANo_wXK-TU&%PUjTUZS3Bjp#|tEASl95Qy{8iJN8I!bkXg$FSBPfB$MqY$jht3;wlJRPCpJH3VSP6uzmcts=|ul&_ThjyA*G- z1;OW{XGMtgyTZjNmQNRt+Aw`~M4U7~Jgla1{1KJ1J#|%CH!|na2uWXLQE}(&g^N7z zvL-C$+TtIaf2X#?MMXAomG^nr%%|)R3O}yuFeol8HEW$UyyxHO%uy`I6|8=IY^0*GJyx@H&mMilOHm=bC7CX(hhuNIlsjY?n%reh zu@%W|lk|` zLi2Mt?du;6zes7ZM5+&c4yv%aMw}QwYAOA`I-%qGi}GnZS$fr7=Y0jO?(ML8FtXUo zdCC@BQ^-J*DBX{FuWO&n9Q6K8U+gxQ{+miNHk1O2{Ld?Y(4;;Mi>EFfillPy5nf0Y z*ErA6vT~~=)`rZ_ZfdS^*zJLq!IGxmrR^*CYk8uSW>jqtQh2OM#Amy@?U7qqoVEJQ zkg@n>JVm>oGoISTwVTe+w@yyX;k07=$?ZfVEuUXgi~M}BhBV%!RVbqTPV2Osfuph3f>> zryXP29XbxVc9t38T@j;Im8-RbcE*9__rt3frWSqATOF|?v^o&7@;(nMKTq^T!@KeK z?hi69Y9VK{d8RI@2Ig5>AbTr~lf4C=j8w#{9Wb<(FsZseYoe37@?~0n(qp!!;_{{1 zU-tSQ*9z(lr#%awfBJpET4?-2XfO9w9~$S-ud$ZV*GydxoG~usjW+Cv)b7DF^gpJ2 z-a;H)rfHKwpP1?4S`MCtn)uHg{AIgJbG&Qb%)zaoqnTtRXcXe)z^L5C4Kh;L$K}5YfCf^eTbEc z+&hIm&2vj_a^5xBoZ_#JCpzSrtI0jkRoNcgR+&&9fBzbN2lF}FDt|8VPT!ZvYZuPQ z5{(-ve3kjGPYYdlJ4lkZkRUwoQqB;0 zLd-WM#p5eCM&my0O8itZC3f_xC}z*&j@y2Z{0KUgn%@hH`(11nOu{BSo6d1B>^!bL z7jgXTW0Ah0H1@ug$9V@6mSVm~y=)t4G*%QAvF}(EmSFUWCa^qjXyy5RKh5ohNQ<_C z_S3}7rKe{j1g%pDE2iv-nG?rrQ;l!zo#5CWw}W&~X2NM@&N)6?o@M)cbL=ypg@ixJ zc+RaD<_GUGA}rfmdWGKmsPN(^iW-NbjoFqra~hAbjvTr6d8fRM$$h!#U%W9jH!h65 z^Ho~5d&hTFx>DEMf1o(yz&?>$C;cAHz#&FEIzi6zP?%7WvtJKj{Sf252%)KnsZs`ew zebhm>y;Zh@39X4IBn>#dYo463)tQf?rtvUlG#ft4;=XvoPd}IJt%^$H*FqiV1FgG4 zbD0T*iSqin_uPpsOnOG5ne6&5SW($6IGb1YFgFLm;&%7#`Bu!^RS0VA z>Q{(JKJ4@EXi0;#WJ4)7*}tBvZ~p!3@>+U==GR#xDO#6qaNMoXZGYR-)gs?T(Xpde zfzV-hblpX%Us1ZE`F$m(i3@wm=G52NJErexeA+I?A6K>G_Ym{h-_f*!%(oJ(W4b=?4 zC%P-Sjc5AoWmOLf&d6O44)dO^eDzVd2Yv#}6!i>8pU)tt1n(UERmNA3QwFJNV$2*-C+ixWIm_HI1Bv(!vBCCiuq@_qy?rd+i?h?BPD#Pyjzz26XpQuqAH&c|{=Hk-|L;!F_khosAZ_54N=>exn6$ zg>7xQyU_x7!?w00Y_z})F)Upm+?_*D2!wmF=mrX#Ng&*f!tDbQA^+z4P~dhU*r)qT zyA1}*OK6J4TH4{;Nst8eP7ws`>ktyfVnCY>AuEwdES498o@kXw%t}LKg4W?$+5T*0 zgRQU**UJ89D?4n3b+}fdE#sm)sj-Q0Wb_iC2!o`@YDk?{zRgKcS8%NC1*=pW6EJr-S;e>yi7@Mvjs zZmeK?{m;4KY^V=x4IZ1)V+1K!fm{w}N=sJZ33vnGt|(Z5Mgzwrtg%*T4I2r#D-<#8 z_!@Q~H^%uXTkJ+(I6ehpNQxj*V0<2wmMJ*UUzE6CRJdQ%;3+F3DHL`{FoFNsBrL)I zyo!&(%;br|5@T5X^x>MZ5U~jV1k*|+VI|_gm)MAS@FjL4EET@ULBdJGMZ(Pjo{1*X z!zZH~|0l{d1kpQ9N2jwKfGU1C{Bpk8!i6q=4oZuIR1)ZI!)Bo|PKoNq!05{kv z!WGv?r*zMO&%XrV^J*4GB2i{idLr=HG8X*f0MC9BHy@r1k@}keYq1E=08_Cr5{q(> z!l%K+_(zza2QfUKm=!!frYGi*?#G?afu4`?g_c%`hMIAO{m}NlhHx-|fka#pf&^cL zIKUSn01~mZB;cux0XUyS_&c~bmS_DKtPENKP9SGNi@5W!4CLq#un(4z9F9Q``xtGG zfgYpnY`8HtD|okz1RiO_xxf=yNzoa?A{*((@a&}M4B_*7*usOK5Ilxg!_5jyOZt}y z(vfeBi=`(A1H)7BlV`$>!M{<#B|Hgln;up`v*FCJ1Ank-L(WYba&6j>`%fDJ1pN5Z zh)lQ&oDpFgejb0HSP7*Z= zZq?S0!9s7D*K1^B4*KfEz>%@!xV1sc6mV^Dr(h}JT4JR(`U|5Mz+E25 z6V}(6m2A^j$Toe24EhQWlw+XN#e45&1s4waGVlx>&>`^uGoWu8oC~+!TMUk3Xalr> zJBFgOo>gbn)$;6~UqI1bo2YqD(`oPE>YESu(L z{nOew0OO4(v1x6rCO z<7*6XK|)AG!g1ULA4AY8K}r%qDpE4=JRGhV35WssWU2|*1&W!$KcWWW(^Ch0Ur$8tYL*U z@UvmC3jN3#`nS>4f7gr%yLHX*-1hh77ud3}c%KsfdzILhs{c1HKh$!mfE*P5faLBN z^fRm#nicy&Xal_^+@XuHVfz)H}XWF zdqU-rs1!?h4x*M7y&#S^w&<`F82*h8ivS_Sj}MUxHAI`bEI4(b%Q_7DuIsX}bbko5 zz@aZtSqf7DK_xD;6r;k6vF5>ScHqkku>4nD7QAeLePZ&}8;y!4BNvLFp3Bmfl$)%p z4Avb@(_b^-a%=m!wEY_$x42_ZO@vY2%8Q`_gsCb+qZAX;NTz<78ZsW8yh3Cva-n7*cd`ZMTIS? z(W6HZBO@c^)TvX*kt0Wtt5>fg)YR0--Me=YdwY9id3hOWY-~jG^70UIadE`M!vkSp zU_eAgMG;R-oAZ{)YQ}A z2jS%8MCj@15iTw+L|R%Jp{1oo?%lhGu&}To`uh3^8yg!kJw1)^^YbICtEFVl2 z$jQkOWo2dL%a=XkI2c%A$4_i zh@zq*5)>4K+`fGqadUG+4j(>@FfuYCm6erriMgBL?EfDsYp~*6awDL zjJUhIBc!CH$n)pV5ko^mWN~p3`SIfi^7!#%go1(s*}Z!=qNSyU?AWmbaddP<_U_$_ z$ji$kKY#v29zJ}CsHmtQ!otExTU#6A>+6e@m6ah44GoC8x;paW#S4U)nHd=v7(jAz za*)~CS;X7h8+rZuH4+#Yh$JQ^o&f|P2AsbDIDR#7`a$6E#=zOffTKSFPQDE|xC?M@ z4dB>mz^T6jht>to%ncm*CUD|#;J~@Sc`pLT#R8{Q0uK8bII9J4R7&8akAQ`fOmoOEd$5P15W1w98MHC+Z1rLP~c>}z`@=E=h_7v z%L_QwY2Z+qz?t3yM}b^zpb0N@bY4*;+|0jRG4 zKo0>hlLH`s0U*8v02~6q+XR4n1Az7%0PH*f>wN&!Dge@B0H7ZMIO_p0>i{T&03h7} z7#RT&Z2<^J0RYnh_>utd$^qy^0N{QBut@@-6#|f*2LK}h;2H+NItxJ64gi%6z!U+1 z6a_%!4gmBVfM*c^=P>}yZUC4a04#d}P<{fCr~rVp0dSN7V5kF7Fatp305Et1AOr#s z1OxJ)0K~r?kp4G7_+fzTWdYGs0g_h*1V0JLJq8dvJ0NvFKtL=qy=Qj0*I0gkR(4K$o+sEp8{em0;CuX2$2ksVFn<=-+%=500FiD^78}4 zcNvgg93VV1Kz6Z!=+*$qwE}{B3CK+o(bQZ3q}B}xjS!Go7a%faKw`H5ftdsH!T{nr z1V~E;5S9ZVs~JF40f3~w0)k2a2ar!BARbph zI@bW<%mK0~21K(0NX8Tp%pE{3&VX1B08%LhgdzyYL=6y0Dj<<1Kp>=mJPZMG`~aju z0SH42kcA^43VA>h4*@|419I>M#Lxgp;RPUs0YC<`fCyd#5=aCD0O=ftDHwuasDxAt z!!)E#7}6k>z)%arJ)}1nUSarw;T5J0km_IvgrOCt4Uq0($bwW0=?;bf7{&nApdk!~ zIT)rPB|^G_p%+pm4DB%FL;8bZ5r%z8^)MZ<0wD|1BcyFe%P?faPzXaU4B;^3K^leO z3DPX2ZAiT^1j2L%h80NHkOCp~LTZKK0)~7TieVZ7QyUoeVd#Qk9fo391XD8@_F*W3Aq9plm{!4X3R5vi^)NMq zAsL2fn0CO_2c~r}l)=yqLp}^SFyzBj4u&HbHeiT^AsvP~m@>ey2g43bfnZ31;U9)s znBu{d2&N102Zn5zdckxMrin1^f#C;+Mi|y%S^`rkm>$6}1w$)LZD9HbLm*6vU?_)a z0ZbiXItJ4Qm$D42c}{$ti#j@rWPl=n7+Ui35Iu=hQqWPrc^L(fZ-mda4^+@sRc~4 zVM+|sV*oLEu=J|HomhamyZ{A!0^MVP%UJ=lOar%a2e7OGZj}w(l6bD>;}+i2Q+a9(8&m(ud9HPFaTELfFdY>TZ;jx zaRVC2161J#pc@5TIs(9g20)S>xb!7J$vS|BDFK`^0o14fJbeI^=z$vq0IJ{zt}zTC zV+!c0A5cygSlWHSMeBjPF#xwB0`%emAY=fjV<&Jwe?W(YfO>?1`x^qvas&|41N2%6 zAl3q0|0RI56rlgN06seaZRP+sr3JM820-r&aQ`(x@zTHroB)lH0a~+x{tswU0MN{P z;2z6>eoKMNeg{z30HGuZ!2293yAOfT zAP8tn6VPxxp#A57!V5sC@CCH>3sAv3K)F>Qi7aEWe`w$ z3JC3eARJ!-l=2gV=S~m~F96yt1Jp49LYWGnJYBdS5(pO${NT4v1Y7QH=riDBF;tj= zZmI~j+}~({&wjVIByP08C(2t}k~Ui4qu{MA$r~;3kuliM_=}FiZe7P=^Ix6Ey0l_b zukv4=2VO@3o~!?%p-IQV89_BRcty{@R;T>`Rp+tkN8q(+P?f_&gi|@S;`T8K5n8;B zF#acj>k&q?3X?J6KI``PHtvl!A_VI5+nD){yfx{5VFJ)fd}T` zov5wClwedUG7Qv}2vdMEkBt>Pgz6Asa&U~LgB9p#@C_@i@a;HORD`UtM6AT%Aw4D9 zLfRTlO^$*35_CK;20TQ^fMdcj&1$Bh$ zS`_eR6ZA|nAU=VWI7tewH>hEYC1Qh9`9HZG_E;kJ{|9adm9PBuc5o_|_1js0{8+Pf*KawnW%;ZSNyAn13;; z{ZS1IS_F?d(9!<`4GV_U-wsTOMVJcM>VG0)!FS+5J79d__5M(?Si{k93Jh4pt5{$W zuVR74Eh-i(aL6Hy0awSVSl}^urioVI1Q@W0@kQ(L;s&(5Ma5#XIR^SH8*OL9jj>t5 zi&o%9!mC)|iFg$YEW&4*;1MP)Zc(woLmvEu;A3ofHI|KIpuX5LLA*i)cG;?8L64bm zeNgoUTEQg@HX`vV7HAcm8NkDR^kCD5cohq*#j99gaf^xtKN{hmMr0C3D{w}HMZ6LJ zK1b9>xZ6UzY}kwkH^jy<3wn$n2d`p5FOFBSpk=&@1ubt;v7pCn_&KfHkz?Z+*m27o z|Gv;DkEsHy^;4;^k9QB}pi zL?RA&I2jAtLu|bVkX676JpNG`%NBH@stU9N9?Phz0<93hj{xlmEAaS4RTbz7II!Ws zikGp#k=JD`Xc;eKLCafYENFjW^a8lS@iG=zkC(B)A{$Ot0gLRLstU9--hELS3tGX2 zgFdRNK*5cU{+}Uz)8JgV1>a)uKT!+l1Fb-1Eb#g)>mBg+#tP$M2W2eq_VGC1G&tUO zHVn>#A7S0zSOMG!n+C@r8#f$Y#sWvi%UEC$FJpnlEix83KOBPbZiSbzpmxK{SkN+F z#)6i&$XL*0Ui@sJj0LTr!&Ph;oCRlas1?rx`PQa}#THzCUBiNlA-=F`Q^Nw6>kkbJ z20a0f3|ti0T7?e`TdQzB2HqV3M_%VoYDh@yRp^|l{yrFpr!X%4c^=cBb`X~C7|3D8z17XjK zyBL`BpV}5Uh5tm`0`tucZ3`_Jd0pE=2g`rew*05MmNUU(69wC=zYT^N%Z^b!QQbD_ z5~IPM#`m2@SBLxL&5H16xz{g_W8W$5{A_9Qijw0|zrvf2gD3WVA~@c8)acZatJHVx zmmBlMJs3oJr}9JNd$r%z?DF>_K3$S2^`4dJ1Cz-f>mE*eE@|3(Ec$HI{Hyz$pVk&# zh!!9l$*}tEq?gr_?3Z%cCeFZ&C$?|Ru9fa3qWNIKv-=9+P#3xKms^+2LoiK;ZpfT- zn4h^HQ1$g#!bhQcxjMz5+ir&$D{Uo4ebOV7T+6SC%>62sTq!g?e}}|*_`uoHcEN15 zh}5VhchcvEi$5My?AF@hxL5w?LlxmR-?9ev7t8}Wv)-=*6XCv|G#*zQ`+6xG`)%+q z1>8=YB7%U|;H7S~!0iC=N8+FF&sqd>qs{kciEZGOK1u;}_d5&vV6gN!;gvf)@OK0M z`+36Ry6%by(ZTn_zY~kk{VLEwVcfXDdb_^@MIvDq8E_r&nm!7gY9G85?;IRrizds@ z16E*s;V(Bnh!i;2Ex7;i?{rzjh!wa#{EQ67jTdyJzzrhKf}g44Fw8_A|l50*_N=ZtL{~0hO zYA`GvYE%mRZ%P(M3Q;CfdI~~%ifG(hvJ&YjfP|X@R9$nD{zl3oyaQa7k%W{3S0E+j z!4=3zLH>lck<*j-yMPOjVySP%TKk_ui?pzK8ZA=6qAOaY*{J0KB`Pu!7GV)EJUtmY z00|3hhW$y{)=wm1g(cXVgnhk4ilqQWYH|_|TyJt*Z*JI*_U3{mcySWW^*$sVu!Nf? zIVi#xy^-+X`jg`Nqod*mz`|2-BVZ{vhJbU%-yW=lAJ-rOMu2yK@rB4_#SH|```a++ z<@oa13RKX0H5i?LxPx|2sbine{{yE0nkaI zE3s(`v<_YZer^EZ4Vn{&2ht5ZkZ$0CbOR5hf8HGYz!Cr{?2W?%=>{H1H}F8Zfd|qJ zJfJtqNJdWvkd1*IH1S`AL${7F0qLQPTV+Pnz&Im?*TO< z-X+k*LU9Sl!>lTu)#lTu;!T&Jb8USFM9$t6y&L zBngg4QI6Q^tyl_lfgoVf1;X(q>OY&XAlZZkaK}wZVJUH)*Kt9zfeYNMasIu5i>>5@ zrNVVx2L_Hyao61d2FVsPz@h)k5;%X^fW*IH2`n|v>%e(9uiHX4D1)I6i!K(*5|H)q z{)(l+b%lWo-*+Qw{FUiYntl8?g9SOaW8ge~?RnhjCzqVCR35PHgu6M;XOt_kWaB!0!LeD^OqG zfX2UI47j-eB(K<9oqv>CYJqI{>cV^2I>0{*GwH<_piQ{heUV=KIb~{heXO*4Le*_q}-?@a4b%`E^YH zdL5HLuLHk|_%GKn{U_Hk`RjG8|GbVV?mEOsC%B$0Tt^BbNOBVie2seB`}(rQR* z-k#fDRa8+HaYKdhtLN>OJAKKvuC3O!%-r_FHP_bK`P~#9g-u%ms_T8Wt$o$A^lnqB zRW}Nk?B#fPF+#keHMO&^A%$J@)UHdXORObn4fy+|D|fiC7-a3aX2jp3+Ll_c(rquP z5SlKzb_D5ZeJ=i3`BvP=7jcJ5_In*mmzyn`EERiZ`u^yL?^6qI*bC&xTO56ZCFUk> z7*yx+%bH#*50E^4IMuF9k50?JRXpfh!DN6RT>HYnP-I-VI zLPz^Ak!Uu~d5i7tWe!1lSLTC14y8T*VaIl+Lzi4)-lyh^Y~k@29NmmW@@%K9l@mX^X5yh>6vSci8kIRtv}ZrkHXO~GcR8QMqkNPw>(bCxf*5yz5nMh{M?4oTM*wmb3@Hd0tMoc5Q0cPihd>iqH<=Y~&&)IAEl?OnEX zeRi|E4}KJGJAS+IU_mWynddU+(L1t@%ev0ZSBuIiu>FTtUscgfP^42BD?FCmPo%7$ zA7L$VL7~s*?RMkqs^j;fIv;c0zSy?o{##E1^0oVQQzy+{e^lxIKXMxA?=``#ShL$4w_p~T{LCi_Wq7L zr+oKp>zsagNcJ`!N!P@CXG0G3MOV0L7~Q4fRrq}N6?kD~m+0-a+e7_i*{b=^FTc4M zGVH{muGxt3d9{%0H=C$-kHuF_YpUTmLVNv7)yW|9TXeiwvvkTy|K3(eN6 z7kFR&xOFeW@F>Y|cc01h99eg6op-j!J4$yG^-S)38GnnE%F?g0V+l{77KUth>3(D$! zu(TdqFpy%hu{~@^%}4Ke!nD@D{#>)|zUp0H-(B+m*v=>FU>;3VvNM&9l-IaouO7&~lE4k#`x%}lV=Fkq z5Udk=CoqbkP`PcjpF;RuT0;N!V>ORDDh%QVzZiDDvO8lxeuOgAn;@e&B~z$7l*yr} zuS9){&&s6bTjz6!CTUoD9AX)LYXz6aT<5A&X9v?xrlW$WQj;fi=KO)SKq`ZgC%o$w7JE>A_d(TF^mF#&w+E7QO zzxIQYRfBIpR@k6$uZV4u$gt{Iint#EPZv)FVrmVx*0+Vh#Ou z&h(B@%6@aZiA?YMV~=Fknp9aulT$yHUUVZ2lc1G?_5-x!gSn~il<#ttH~Q5 zNGH*{R!6n1>zVM*;K2Hsp3i6VE!*ljuaH^2s;(Sqcwl{GE~9)2y#F>{BACDM%&Xwb zI-fq4@8Y^T#KN=FXH;?fqp`KTx@VuPoiv{!%J0@n6oo&N9iQ(~zZ2KLAX&oh^)P|! zda_*j=lr&GmXes-q;XfqbfvoTIyJeY9Oc4}lbt6Ck7av1iy!{JU6!R48!X{!PQE;S zv-_>cn8n;p6Q%%NlW1S35QD}H2O&)>_OP+Xha=mqD)cG$ zIoXc~>+(O38EHQ*2&z!Z%cj|Osa)P}DZgl{Al2f!+5xuT7hDJ_DlX^gUQWAjXQ8U` zU|R^G`E$h+O75{A)GxN2_UGyCC7FDA>Xbs7)!8$ZRp*GkE`|J@*ruUUGZ~e1Vo9)S z-;Ht72D*{804wk&_N3kW>#&hG-n@HK^(((}?9K8IJ@)32C#1bcNg`-&Y7*y6g+%S` z@1Q$#Gs%yR{<)tWY5U;7Qww3;eY_dD&-;RVmaYmpBun_X2UkB;HWdAOSMyffWP7=? z1;dZuYkVu5X2IWI8QxS$HDdLN0ne-w7OhN_~xr#wJ$IJa9wxNP<51T{QV$9uKKtX zS8;+v!iOSWopq~iWUNtt_EVko)ZWYFA(mgh)9Q@`NcsmU&*L+pgs-O+2$BD(aFXSavmFn-LV zRp{o!{P|dLf?vg?pQ-z!k182CL>hA%gdQiBh-;NbI6R|uYn+U3s*X->llV!PIZeIY zs(8=~<8gB3*3&Sbn{T_lg1v&gF;UUEi-`-GI=!c@uhWFy{~F>a8Cw61YFBV^*=^1I z!kFy6J12#6b?+qPCV5jEeZI-dbA&%4OD^>GXA!^8ZAROFT)c5rr4?H=aItzgrO^JH zh4pCdecr{r1MhEHsXn;ZM03E)T=C8r5_G<^UCj94%BSzA7Vhz9RAlA&G3bz9QNK|g zhrQCxNml8f9K-xZ{`uP8ytu{cntc;bIiilz$lERZHabRZr~MQ}pvBO>_U(l8qW>4B zuc=;+gb$xzk3Dg7X-(nq=o5uf%C@zKiZKgI+rqU@FO~0Q*YLF2eqq);IQeRY^?Nm* z_p?Mf?`}TuXDEqMqjS%656*ab<|gGgKZg1gGhy9Xo4sjc)v{8p#3Rchm(_xMe;4XI z7wek6@T1Abl3|~)h0~oTTlsxicsa%k zgBf#dq~;+ls*K|2<-ym@HC);*%iXftli7ew=pQ?~U+eHC3YGG6AGjQLU7Ytni`i{B zuDd4LlKRrBsx&8EHq2Bw*gQO8`u85)Xx770Xq30}tM5!|J#&HgQydU;mr|psP zU38bxZOlILD#9!85#mdL_}*&uM2r_B%6=shs9j!5vs3HC*oKLI>UMYHjQi0end&O~ zgv|1^^@UuAOAX&z$Fa>d^^?|T1t0&cQ3!5)rp@Q@KIB`zjne0mcNKI2^5zu3_U)gd ztvl^%rM1VvO7q2bW9}=XqVlYTR|G2id1w$h7{6t*eY6~ar; z{V6%>w5Sx1s2y^A=e>xb@?%#_2st|@OBe2aS5u`omwNb0NjhZrfyrKiS28JF`fZ~j za1Q?SinsZ87aoimW9$@6T}` z_4~vt`6Y37wphEF-a|YBmH|w{P0vzwRS@+CUjACDos?}Wx^ijNpAd0wW?v=&4*DZM z9FD%B)xNQIcGZ$y+|rJiV|A60>J1qu86N>FF+!jpxN4y^vN(J9F~RoX0LvfGTCLT3 zNv~$$yHP6%#{yUUkrMCTK+@{DNET7Zk z#PY_2*@p8{Z;1*Q->*cDG+#L;r2YyI5upk_dF!BQMTgP*fex<`U6lvXl0757hUtT2 z$VAOIsz+soN7gEgh95i0e38v#o!Gw3m?W=0H$J+y-iRycqzk(>lZEHoFjq`9X{EQJ zbj`%9@@4UcDlYyRrT3capNrUm|@ z9%%9iA1CViPE?u6+B?f8c0a(Qq;O$JHt&(z$%`)J5(cTNtg^|)-{#f!@d;hz5~H1~ zvHsO{?Bt?UO{)_vqhM+P%g6d@Hlj!1J3O<6n5p^9rEDkMDJ)i2OSL|c`LKmoP)DVo zp_ihvOHleir_@;7_NF7E_6b!#!On%XEAFRKzK)%Bow`Wg~&T5IS zHor0~me`(YFh~{NMA6C4Zb?8GP3k?rC%MPMDC2yu(Lhh7`4r!!0ne*PNnRC9)}}pc zE&lP*yK>t%5e?>=-bp9P1n@w(I4Np)aQK|ZVtD;aW$-QgVaW^sRX zW}=9TNNkOyR(7TRO($1}qOLD(36jMAyQNgwr<&PE@FVAc61(U>E(#>K&{y*gAP-!8c5Ki|8`%M<2rD03%oYJ$|PN zseX?kzV`U#**Wi+9dg7})3Ra4m`ZE@hGezQz*NTGRUciKiEn)EBYT(i3%=*n zHw0t|2gS$kLw;e+#qKxPx`|yGqeFhK%3X+9ZeJMgZ17ut-TT{iXV2xi;x1K@iCFtV zA$B{Xl2?-k^Cc!xEd&NPH3Qz3zMwT+`=+&%tazlQ$n3bphfDpg&e`wm_wYB(h}QiI zBTGD}^wyD<;1n6}2zP3a)7AIh#`81twV0*aE`Jrhj)J#G$YNMaX+Gq2oG+lDT0Z*8 zsOv+|V3~lb5#^g(?+uMCkarPR3BcrbuD81fVH7-QXuAYEwi^H@duYv zb_GXn?0+y-Xn)1-XLW9eztgFXT%Z977_rm?$taTZq=)EQSML7%H3vXnxen{I}%E{tKcO&Oss_22- zR@1>GQ;jwa#;)m4mkjE#m{yL4@Hu#+7{@D;C);Q<7rU*>s8TaO< zf|=G6u0B>VylH_68r@&5DhZ@&GR>vZ#;4VE_}!V!xx_f#=V#VhIdoJ6BPBoRNUxMQ zs9a;*Mtr{ffw^lZ?dK5wo1UyLN6x$EkDG+)lJCF7t*Pw$Wc9b#T9J1ZW?Q6@=WN!F zyaSd5!sMb0bMpIkV>76(9LhabJ=|gML8jPCca%6bzoDQCOpTYT4p+TO!Czsx} zm{cxA2ssiRnpvEuJri&*IXU})zVNA0^9SF(`U7@8c4-xHl*^>u9kye2fYl+cM1a>N zb1qh}sk4e_%~5Q>p=TvY($Bjm`+jk2J^#T*O0etMo1JCMtNbG&4b|I}kK2h9iC7XxIz4wH4q7OFcEl$(E_c&u+IZAG3` z_5Eu~?|tK`kmupwZJ#|V=1{1#=#gHyJ|mxh`LeavPnili_Uf)Wk~x11o5A=ovIlzy zw&^r}citV}8PY{_Hd-J!{Dni=GWtRph+Bi!d z)BJ%C9;(!m-}CP!&A9cb(c+@nqXKSz$z-Ry23LX{-9(Xo4?!SX9M zg;f&#&6;kH1uw;9W}fV>&>voQ8$Q3{FlsBCN%=x_*R@g3lo4u=K&{_?WcBe?gHg!@ z^eLV`Z2{Fn$Gddnu_Kq8gk!%a$*ffEI{)mn29f2Ra6x{>`j-urMlZy(qHJ_uS%Hr0FieC1b58Qtsq8yF9G zMzs)&hIKsGRJ}#?IpI2aefaQqzjHEoYl#t6wWF-$&X4M6Xgb}I%fVi}!j%h|nfD!} zt31uj+L0Cg0+WHfw-o%eAxuxNW67G`+ZYe+ZM2t~kF31JMG|qnAtG+T#_Gbg=7S-} z>Wh~j*X;Fjs#ZRRxvq0W>Z9Gj8Tl?#1ACq+GV&K`d^?YpIGUYGz9Jc{)I_>-GV!cO zkkF;i?J6>)pCr}&RckD$P6?AoM1QmSrO`bI%HVnwGyeMm0&s_06`&C>((d*--xjpm6d+r_FBiMz} zclO_RQY%WxV9fjBQL_$Ky@(U7AG}U6?yt`vBH~N=_Uy_{j%Q9L->q(&y^7#z8!^EIf}G5_-L;L685A9MAUt2_jHT1QmXE9JR=?2T5wmwvO-K8|cQ=SOLCWjF)- z+p%J##!6_g;-u#VtbkqSXU$;yoPyeLD@Ngr-j9^iT&HC#FMHFy8+}@EJqtt3BU??m zW6p&oc#UD4-br(S#q&tp+8$pWP6u^MxxV>(A&-N!-r1|kl&Ho;RvUb5i8!_At%z{> zLAg@FgQBg@k9e@17nVxRsYrjy?YD^^E@t`Isusa;o5Hm^t=}QhgOP*mxBG&^`+N;K zlV2vi?9E0CwUs+dU8@B+`A9_~YBU0*EE?!vT`M0wP%h83G*oxUWTf;!xlYbiz3T@o z)kV%LvI+c5D&-EIrJc_`ts^#OcXNQ{>LG)hwYmw&_sB=t=iM6a-YrQZadi!QnhCz) zC?Y(ha+HXS#;EeAq2lgu!zZRw3c|{I7WNXZTFcmYun21t?)9KL-F50!mQPOq;9gAq z)Y0QJi+7S93bBZYe*7^YDbIcPxh~atW9c&APjyO}kGx&YubzDSdgrnBt19nBOO&du z&PS0vpEZzs;8(wM7Q>icFCBUMdF62XxcL36l_bkPK4kj*!`{uFS06@A(wo$W^tqjP ziF(9pdpvo;d`SlBI+0g(ZJMt3`CMSlSn>t0=VW=UpB}KPwfRJy<-j=0)ZMjOq2E5B z7pR^=7Eki>d%(U)(bK_Rq2oG&%~6{69Syrxb%urCP*~SAXKL;1eLhe+6lGa#m;2=A zP{->%p|y$;?|7#CN)_oze=|O5!5@{+-r<~xD-gm2iu9hH1=&&Rv z>9xOq{9dA1U5kq4C1skN1+Uo{dl9#H*nO26JaxOWi`q(li7r&{BI0x?a@X1S;HDu# z41ZBTMr*S}$rCFVc_y}fwdFhgs*~lXNmy1Aj@s7VXuEGRwCH1Su=5#Lru9nPtf}|d zeSKr`W|O-{Ikq|@=Q$+~_%8;YWbz4`nKkT+p4pkIB76PL`&PDr;&QzuWxgqueNQT? zYqe`kw4Uz1e)LRRerU+M@3dWAQI}r(q)v};_T4({cJ{`DD~DsLcd~r_z4oQ7qH8=o zHqcJCWbv{$C&P;&ghha+Xhe)SuQ`*RUNZI@Mf~uD$NTUYt{Al)^g#n&dnU#6e}DNR zm)~=@N352LLgWm4r3!g+DD57BvSzvWg;PE{g)83^iB6<2Q#wjfYaZ_@yQ=p6zP;4Q z#OvYM>&l$$z3$X9fu2XzNN+7Q`I+0EuFSUMQ^}%eCn$LHei-wF+gLv}Sn9&Wmkfpz zGFdAl>Tay<2bRzB-(Zk$zkBOlj?=+sHXqGy8@9{@JH##9>rg&pPCjVH?bf%V{p{tn z8dvubCR~BwUrU|-Vxa` zOLZrD_H=^&7ym@fuxJue|Fd z*@@LvmlsgC?Avwy`WZFO4sTi;U7@P~i@i4ild8D-hi~88eV5)ZJ#_c1-7JGGGr%yQ zjEXWWDk3WGJs^Pr+;C|eFhScHhebsNWR!6W84)otE(tDiiyAf+6%^4V#uXKpxZ-XM z>i0XR?!A3y!Q_3C|M&i%=lfcjTXpKxcIwor?bN9q5BBePU_8TJg)i7v~2r9{SgtD*HEm`PjD)?wPje z^9^5~(|-3?*Y4Tv|9)cZhjj;^GwH1ldj0a4%Fla$o}1fmO=k0bH(hYV_R4Q#PY%Cq zLF4A@&%N-2J?B1u(b<>nU!;vb;j^MoUVm(#-~auj(Q7BHzG2HZBj0`aqpQ#Hoc`K} z3*)`t_+-p&_f3EJ`}6ZFK8q-Cr#m*j)c>H<4|wyzQNRB5gqq9FJLtL3?;kU(_NJ|C zdq3knv}E0~=3Sq?Q#xVst8cvb@SK;Q8RP$5^R^48ynpi7lSln|=~2(6GcT@vc5Th` z7yR?XONYO@?S)~-A9Tqt{;=oM5%VuoAAk4W)_1;q@QkBd?%neEnvT}cMIT;uz{+C= z#=`9nj4f;aWXPkj{rj$YT79kRnm0yVzOeu1O&@-7=L28&KKZrz!#~Y6p8ol+XU1>% z*@EL%+z}c5vs3$Dao^gDUmm=xKL7sW)yx0>=HD;R?pg7|r&C_gUR!z6_*d?E=dX1h zPt(bdydIt#8#-&sF)eK?A09Gt(!yT3Src~jJHP$fU+lcDY`yXs94mTe1+X?xX zrY{O!`P)==-4W)kl|TRc1J4(!NA|A_AHL}4!G+5@vd=f9Llu8KZS6w;%iq?tedb+% z^tlhuI(EPfp?>dGwBB{kB+nV2e6VQEJ9F$n8!DDTLtx zG`cRA3bxWEFw%pPrK7C6%BdQ0$8J7?$itS-FCb5PJ#a+eg#|x{=gDtbMZbvLnG)!< z2;CglT{&OOvSBVsxQ@&}8%MGH!iKpnt@KLL{?O-1-*Cag$^P`sAO7v!Kq?kYnIU>w zXB62R!8;0+uj#FrZ2Gb=*P>-{$Bv3-f%FdD$U@aCXuqUWQM=XFvPmUt|Cp*@Mz;}T zssb|=xrcETFCNpXaIv4NVB!rEQ!AOAc?ddQ9VXttqU%HzwQt5_dfjdm*VL1fD<;Pb zfsUtp%1nP5^noaHIlf#r0}d{cVJQef8=DY-UTXSFEp&<|&=YuL&58hhl?nPl_s{6c?gE@kMAZ6`~|fKiy=fC=^vh!BZ}F z!AiOpEP)$>RuqaVqLdb*ly)yz-1O6v4wMT;6;a9xQOdd(tlabyVJQkl6;a9yQOccy zQQIW4|9|U%QsA`z+geA?lW;NhlF4>s3Vlu+3jHo_)3KP`Qp@C+Wivz zw4Xz_x&;8G0&2tmHudH+^{nFPD9-;f4S(^|G?b;FHD{1pTF?lYgJ{Y@bD5KEc)WQb z0-!7^W-*K0p2h4DGl1qx$P;hAls;@fK#33aDT!&-fhH4k7RNfk0w4&z@rRJd2+U8s z=Rc`PvR@rkD(4PC0h(q4pRe^dy@q#H=9XbraiN;~rdUz~T6I8Mex{r|7IEwbMCaV0T$XzJ%K#DHrZn#G1BGxC z+0>|M+;-L+(kl%>`gNeUoTpZ-^jD}A?TKtq$W_ZC@FuV}xrssyEx#h}TiO zRgPXt_0`@Z+Cqk%Nbv(FGT&y#Go{AjFONBK1k>FBL4ykMNg44K(LhL#wf*oes=^v zZs@!H5xQ^h0+hjmm&;oYdr!ifW2%xYR-{Us?#$Yv_;Q{EMCLH&QgVVu&wxgvtw3k2 z01f~@3OcKE&mw~2kyH@f^2o`l=m!5FzF}&^&;iJ%49l;ZL4sscAqx-$wy9@Ry@cOy;^|S%iEfx70ufG00yxowrV4-)8x|daT*y4;H_V6`uw#cz4SpvwmRtcq3b6x( zY-)wvBbsX1kpsF`sCLlMfo4@Xq#A`Rk-rIR6m~3>h?aV;3gg{Y0y(ikQQ*6C^`Q_T zo0CKU1O}u~ZXF~9sE~v~_%5QuoJtUN2|GyyL1aJ*NrXT~fC@>33Exfmh#5^b#G+<2 ze(-nS|M(;94}!3rpa#%+>s^n?7n3_T8?CE{~AKInMVSH~ipWng8Va4-b;8Ce}PSgy`{lik`8d0GFwm_@s0ZWWnF|P*c8!$tflNOCYp)5U#Z5mEm7N4WM7cow0P0vM7rnwP(5$pN zVcB)mQFx3!1$u?hj-Wl@u6EQMG%Kx6Sauz;vjKXA3-k)39YK4*UG3;~(5$pNVOeQ; z3uD{W|M!n=F1ek*l7%^qE%rS`%l=%v=`zS_%jg^%e&cx|c0OEBfKEYIY8FZG7@}IT zziCsGXO1;S*lRWnVT@z@E7a933mjyNw|B8HVD{~cv#SU#Txz;+2ja?dSNu7dH z(7ooa`}C^xBBq-MLH4K8meshrWk&!jkP_cuJXDowSq>5yZRppAg3YU0JKI{80%Cg0 zr(JE0k*lzu5;9VCwJ%^NzwUb!SgzKwO+N!0@J1?P`Wnc|yY4#XXD|mBuZ%@H%t%K( zW>gI}jh3q@MPC~~EuJbH;>U~&{JvsURY15>WeqD<;W>EXJ|k6DyERn?!*+vBf9IHW z6w~j-B$tS3nY=?0x5i_Es$=z*6_jJ3ZAEobt;DQLtBjdu)HGMNEaQNc(>rXOR5I(J z>D|%H07`|46wV-iYadOdqNBe1;m052v0&94OwU)wLime4r&yRK>!GwH?UAOH&46n? zo>G{W^3RxVh6Oa`pG9tlm(7~q!4WCSZUu-z#KCHs-YlR91S=tYz@~SY!DJSKJD5rj zyMor3Ua1YtG?K>lZu^>Q$tZif;ZdsF?LcIbn4waTKOU-^ z4%X9BWivFCA8$GsC6iY+23xKJ@pV*YCstE1G1pGsidhVp&X8*uA?gOTF(~PPG)fG_ zZp20Lmg}7aMf_{KrMR+tidT0@5yKwQrfdeNW)&9Oi~ptKs#IL;W&Zbyixp2}fV*VH zs2jkBXpR|LqURPtkcuEbj0{l2b6X02KwJ9NBtb>H3n<#%Pj6>X!!wtNh9@owpeX?s zJSD*3senczh_<>_IIw3xPMSB-uNBfQjaNZ*$&1VT;0Qn@mUwA=>3ToSmc94~MyBvq zeCqKpjer01V5zPqlTJo;>42g8_9-?E&w;fA`UYTgg9lW^!|K8N4XP~f z9rBGFUfsW}DCjN4irpi7Rox#9N6c97L~&_ZDC)->ymD#SS7gL{1(ae9Hrr!CPi9y} z|H1p0?^9cy9#T~^U__tcgZ3TTuPh~b@j4a%Jb0(h;NoBwm+ z08Y4wixBZ+mz5Ucb9y3-aLL7KarzvCa4A2@Nyo~Ma0!n8(r^Kf$^u;cTImm!js9A3 z$#12Rw%iB<0)DL)u7FcIfPlY=ePx-Ke!7IOwG7npkQ=!z0KUZV005U@aO)fwaE?rA zh_pl)hZ8>HQCb{V;8GflOKFO{MLvW^0V14}B`+acaYQ*7kKt4XE*B!gO=W|F%gzB5 z#yFy^v=D1Fm~vTg1`SGPZq%?hz9=@#%x7`wc zV=!r;It@B-~f&= z5yx@^OmRehz!h-`pVQ#{$W1teOZjmbsBHD{Q2O*GKYl0&r$tc;VGKw9oQ91HJkBGH zWF=Wjd(j)b6pNaJ+_H`!o#1J};l@vfFGMv(( zAK|#ZCuN-?36dhbm^{=?4; zx0joZVD$t7>FOz4$s6UcDBQq-n}{ma69$EmkK%A_q(f-|E^rx%{}8Nz%jr^{2over zX^OZ=U*yAO;dmThl#${fKQ1}&xSTc)pi~wo4CSD56TbMzbs{Wpl-7?`9uxt;ie=-` ze=E1&;b?Kuaw?VN6<7k#3G15Go5@0cnhV>OGVH+0jD;W-| zA@F`l)xyysCE3iL&iewlqFk69Q@yEQ($C%p_!ZpPPsVv6MaDkBy;O%vI;nz^%HH+? zL}_p|NR_Ov5s?)bb7vuF?jI7^G5Hnz-t)KMM7%obok!n*mir#3Zy&$K}ebQkd+$f?6R{@1M3vopo`?w~4Y6_oVPc?HUC>8+Qfn&2A98~c}699~$ z#dQ%T(DOvq+{2)62pnwCaptW~>N1BWtjawAB;at8F)wLn77GMy>R|KFm-{0S2ADo0 zONQ8hIc%pO?(#EDR9ciJW)VEjuZ9V7a7mykWm;hZUqIE&S*T77#@MK7TGrqXw@gg8 z3TNs$Dj01UL93H$gH28B)|!S@9s}jU_K*p3413+wxF4xxyg;gVXo_0D;nbR%Ig|v2 zdkf75heCdzI<-39G!|j1P>!I37#po~`EWu`@!}enPBas3oZ$&3f-7Dlt6L>BRBV$G zxpwKIvZQ9~Fes6(qCpTHWJY`me+cNbTfcx zs=40~@yM;^>Ive@9mSpl@Rxc=?o>E}b#J4>NYp3NhbAc#T;spB-HSPoXdg4Qme=j9 zVt#=v=c#??#wmGhAm^sTQN4>)4|4m!8LxRs6jwCu%_tr1?wS}2sdzCuv@vpb0&Iia z8-H*<(;S5RRxB(IJSEQ_RTnGaFc2-i#8&jM{#5Tjt}!8FmpEhej{V ziv5Nh(xtE(@C3DpPYDOSK{XV?lu5^6?=yV5CxoF&4o8BTD#2!F$nTMKBLaP@U_kaM zYEbj|A|V~=ge4^)djoz+lRZ!&(tSoS5)K8t9wp*4B!5^_bvfvXge0Hl_ZqT-JoTVg zMj%oQD}i80^Q%E5t$P%|ta(Ft9mf~a!$D0k{2m`R?jlkkY#`T&=8-}{%o!A23HuCH zmqLD66O}y?uO2~7jG!;1XnrXydyPO)QdG@{Yl{(&Uq&pS9FUBV64v|?uSYjjMb-lz zln6DHLOw+c8@fLt`DE138-jwXDhHI19*p=_be|gVc?>-ik)U3y z1W|s)9}0S8345gm$`V#RA=v;}LQQ=UB@hnyBR(k@)>T8e^p z^2mN~$QLv;B@)opa5yMY3n4u{qNpCP=95AJ)gvqZV8n}}%33gD`1}EnR|=`1qOQoQ zHxv#8JzB&s89txv4;Y@H0&+@fL=Qs`EUYUUNMWcE*~=V z@dN`B$msKfRE7f1@`Zzb4Rr3gis+h;t3Ov z2f>;?R9w{~C~{Eo8CpmV|8MiZ-|JJs?^-Ar1``A#z6kcuLufLzMKJ8wwMZ~*cs=M^ z;7Gq7@`A)t1kK}7eLzz*)f+HCLsUE*2`N5JmAxS&BB8?s&~+5(3VSqAQVF7G$Y>nJ zZ=fY2x~hdk&{L%`;&{k%`lVa(hs8|g_J^D?^Dam>cgVv|$nUy@{Lu;deV33&oRD>0 zLLPNO?(P!um=khOmyka>A@_C(S?`40hmcHwbb9^(SJR;-@|+f`N#=Zr(xwy1OT`!7 zndGH13-4LvrGg6YT=G)sgf~xKDw6OnA}^IgcyCqU<;*D~F$VV{;^NmrMUgWRluF6r z-7ldJBum92SdxpHZzl{cX!D(nY)fhyb8iIR7@l)HO~d2K-g)%(t2qS=C{khOh|AB! zs<;iMvZe=G=FgZ`adK+T3(V@QEGxq4I^b?baXEV|ok)YZx)@llb$7;vfC=>*$e`Pi zxi!u>>!E{6yRCtHJ{wo1(KZe8L;}nwjzQdixhBSpiO|L2_{FHfUe>KX=|H4^FzM(j z&37OMX5Y}i1)V4to<>!Ob8|7x^wI^hR;1U#)69xtAJHU}+Tf2!r<6216}r?$ZG=~R zrnO-z%AQnIEtv^Gwyk6a%})g|tyTzNg$q~%eJ26MS#SZj9@`BTIO+mVQd311xX1;b z4y)r9IOzhBpfjeLXrKqf z;x%tqO{Im4je{#FlqBOg_xRq%J-(`;rnph#mhrDdx z0xGV3nsSa?NCA~}#xo0$fkrM=kK8otq4RVo@$-*NOt--f_3SjfKb|}7OtL`ThC@*J zaT=Z_`_yd}@X-+|eAd%@Sv#G6oQh=^8*Q;;6dK^5?6@5dzz za*z-Hd0y}pt}6tZlrozoRqnYWUT-TOxjeH3)sUeiOy5Sic$Q_;y|C`V6O0y8%tC@H z0s6?k3=N)PIu}$<$zo9ceXbMs%8r+x$`2bx${Ol}Rd)1;Xw_c*4joXxJ^ZC|E$KV*$NH*+j&n!lD zRHGcutO~^@0xcqvz!N2)k?mlymX=V15l^bjh@uhV+~Qm|fWb|oIb2{8o4p0Hi2;8( z67I0&B}cA(i?-r`LWDMbHi{4WN7#n5P%Ii!zjfW!_Le()5Ep<~52g74Hcx3=vpR+S z1#*ZzO`?S5r!7rCR^oB7!9gM7o)SiRvDeA>k(#MJ zV2Zw>uq@>}M)^kp#l0V{v7CPdzRVUVi3q36!ELlo+a_nOMgq9v!}kzBmju2Y40eJeAT1`gvMdqf7T;R2qg#< z_Rw+D=ueTMoPP{~YH@=I-`S466o#06AL@;g{MSC1I)26WR2Sm={cICJ#2eiASO!;Ni?88vx`PEB5s* zH=TW*h8}8f0&Wy2(IJ7R+g)HM=16FU5=(-~2!?|qJ1MaVZ9!Af&S15fu;sj!e0s=X zRyvp`5)7wocA%AxfZ9N;N^GaK+pRSd20De{b#yrHO|;QI07{vLK?4L`%JE}>pv;Z7 z3d51|ER<8}+CP(w9Ypx1R}2hx6iVInwpBpG)gD!B*^7AFQc+0WnK=HSVF05Fn1iH$ z44Txwolr7014KuJTCBx$ew8=Yc-O)5jlMyR* z77>DD43ry4Bkes;=J#>IQwN2C6bnOQg%`pDD#)Gf_?eTyJ)AM*h zAw7-<-1eF4Q5K8`-in_X4>lnQh)VFSdpvj?P#O=YHgbM5eAakCPB~A(JRXpP#{+Wo zFdk6qG#=c5bpE69;Fn0?r^W-yU*-yVLgXr*yDfxesywopm~)i*@=PD8*jZ>0T*m(;Gc_hFEpcGRj$YQQhq|hu5c6 z%-XTai)oW$udfb8e40bxK(OU0Wa({)da8z?pzKq~*GKVA_Ny&h5IQX?lcF>X3n&d< zrB;boc@o*EM-hP_3CrQbG1narIUL79DAvojq5OV0l38|Q&zlyP1P#JjCY&&bqt)Gx z1b8uAiHRLn#J5vS4U1#p$HH7>gnds37Ssg{+p-RjBZjn?SC9F0wK1p}n3)&ia4>Yg z3+c&)OgIoXFk%0|N*LPQenW4>^-*6Vl=8h$SGHH*qmIViez|Lrc_IB5*CiN>*7f(wWGgPCjVP*Nu>7w2pRbvTf zSgH$7D%=T)lfaPRq|rHCj6cI`S8zQPwrN27K}vFntPD)}1)EK=*llX4YKUS?2`a|a zs0SuSCTB%iaN&5EtPV7kDM3S-8p6ql9Rh9dVcQZ~gTNE>ReMdUoN7afFMZM@;L8b2 z!Jh~r%T-@zZ~;t#s~gdZZ+fJ8%O%xhpMvz&UtsTG`RM*?iV3T*CV z>33YXkZeWn6r)RS|CQ3YGH?~tWgcqODPU};WdBFXxH9uUCZ6fzb60!+SE<%zZ{|+w zBeLbl{GNO)hdh$K2gLgNtt7wF9_){_lAIGbvNQ;|^b@NM>~=nlK-t^;41IjfTltgQ z6SvM2o1b;X-A_dQAH~H9O7k{X8vX1vl;-CsFK_d9&a(M=`h>mn9>w~!c?ZWJIdBnp z_(@R|GTOk7y8L)em<- zLlnkosBnYE$vBOyn3Byr0CL8>mIe;3!4o(fR`=P3+%t3KFJ~YvKdEPMJdw0j z$rmV1sK`*owA^=SBH^ZJKR7;8-N5Ot3nJ&K5#zZZfiuAC%aY9=P?CVq;K{s$-GACD z6%f|3z_5K-%BGmGVQ~T4VdCD~Ar9(0EkTPTChN%{D{Q*ibj4v~p;d(Hkl%-aP$eqk zTo2bC+aMEErZSe~v?)wf_HiPD7Ik+J^KxD;N^79BRx!nu7wAMqNDw&?!jWC1_T_#A z*+T{|dB_$VA%l?EG0v%I0xU4F5F#KgG;)4`=*lNx4qI6jF#WjBiq(?o=V1sZ^;SW; zw;h&5UE5BL8?Kfz193CZsqIulG@I4Og*_G8ANJadHR5@Nd0y~8HpY;`dh~$-6sZ(_ zXeLN@6xvSCb7#*}kIQ`p3>!dwFZT@qs2`!^zJ^=Pd;`uvnW>)+!XV)FX_-Hue^fyv zlly+SgRcjK8s+b?NBt@k2|QSd$kKjNpOd73)zzI3&HZU!x{l5j_z-DOY14EtTF<*k z;&6#nX8sBCXC7loM`;{}G{k<=%T%<4ocR;Nux<1gcr*87-PHUFTykFgB_!KQ4Y_G4 zt@B?pD6J(PL7M-=wZw69{wGUh8<}yJt6*fNd)b7YncHpo?wp(5 z2byuYWhyiOQ2SR=aEnS}Ub+x{_GoH%rJ2Iy{GX|6QMu(se8n<@AcAh4;Y3MnmO=ZD zFu*7TP;r;jhrzvrx63${+Sg@SCUEoLfMEK_^%A?9|B4S*FjOnd(eQuqG|^>3O57lw zFzzqN1lydPdUB>=S)PHx8NUjR+S+$oUO;p%Dzp>*RUsHiNk4SKhz_d=6k7Ws0)jG( zv#m#qanVX@cLO#bTgqo(PB_@4ogi!lh+SnhQHx=Ns)ZSGJD8bsCwEp%7&*_{r|lGx zLN5p3^y=+ytamlWrkOPn71KUyvt;dJizgG!#7-8ERiZtPq4ucE6OHg8qQS^Th^c2} znRM}B-Ir)mk)_`5#|}2#hddNZLpn*|6Pls;LbqJ1It7U^q4{qrG^3H}UNx>0ylj>Q z9@Ghp8-4;i-U*BakAOQ+B9@+RMTY1)_&cpVE1H+d2vN&SV((&MTZW2+eLbor*?JNr z##JFfc5Ikf$*5F!!ZIwP5)nsvFc%X%?_+ywSZ13_r5{4J9R^ZxR@vAAZ?Rh3&URDa zPN<1?wwY3JCucEMiCRLDvJ@k!CfnJfO2Lh*j}%g>mOAk{T{5=u0-foqQYi7mgbjeZ-uq=1V z5Q%ZstOP7NvH2FrHd%_H$>>+nO8tcywsb}-k($;I!Uh+wAv5C#%tVqb1I5WI^FWa>jwceInKIvQJH%Z8**O8f}10E7;l9mQIPAeX# z+29*gnmnN$xS5KXC&0WX5Cq+ZFEJ|$Kv^7@_WjE+_;{LkA{3oy8BjGnhe@k{-fSO~ zW{g}7Dbpb-!ob2dqeIhTjpe;jCKp}-gOB``CoH+^dEbL5dLp~yIWF>?Eo z3v)S6=0-L5F@kZ|J@+Z0k-}b%Q!%Y6jOnd?m{+2rkfTl~_U^7bFH1vEV)}`?RzvDg zMRT7ZS<;P6Gz_#LoDu1M0*I4OYU3_(AyYYSXUy&iBCb!m6LRTTY735o$=|Cq`Ktsa zF7(N{Cm>Z5S!iVrNCRqVWm01dDzZW`!ET{2o?turk`SzfRUN_r{uI&()RE46Mgz?u zf1M^ovrrSV@_8MdqGHNJ^k(gIr}3EPMuEbla!%woeK*=I0Vgv-mx$EngD);)qkS}k zi#P2-S=YeuZ4ZdTb|38MHr4iFq~f1IDrs6NkV>7hZ~^Q@gylab3Qg#9kAa|MjJ!}RCRW`F3eqe+Hw&l%I%D-olfWy7kj_dEZEa5v znG1+PvD7JW1T(2fDXwC^h`p2s{NoXs=KDVBE~I@N^8`0yAB@*>?nxA)CV*9ga1O0* z+U?YX5r|hT1ag9D3J3{hZV}4vPk8wYqXDeM3X1@)f{_BQ#T}xtZ7%2fgmkVx4To_9 z^8-?nZ=gS1aKj!msO-nnm_Y@lavX9E^(uDyMbQIsoF^b$MF-L*bK*EJI8MjGAP$Ey zW75^!7R03ev}_QH*-)HZex}}F1K9)nE57O&?P3_LR|~T@SWtzk0!`!lI?W5r+S{yk z2AG=eNEl+JfK|NEji-!6*}XguJppBB5#(o?gtAt_G?+`2G2sF%Qxs;C+MPHZnWPv6 zX-CF+yh2hzX2E$ND2oLZmRB5`w47xZz6GRv0wn1CypLri{u?wEHH;{u>wL6`WvwIZ zNeE?~*%1`_&jy-h&5;cRIId0tqb`&3fo(?>S@g&Oc#u zT#;x`x6_(pA>#JDrodGAeabn(d3IT0{Ml&-mCu?f6FEOKZ|r9-%8lrK>$4(nTFhZr*`@+M$?%jHeN z`j*REOxCy9&vb(tF{J5<+=r;<33npa*8Y|Cn!CAA-*h*XBXCWT9OR#HhlNiHD+eQcwTx~hVqA<>@T z+&h#cv;*5qEl)9Y2irxtI(SSa-9Gw>IH{C7QmRv|l&BYSqw_4N0`m|35lT=>D(!8s zwCE(M6(KlZV4GEE<3m(E5qRzas zzRMwej3e(=_lu@T;Q2=k)O>od%ZU;=c%$- zrih{WW7Mk(M_@coe*zELQ}Y(|VudjzoB>;%G0L5BCe&7$hL2*h5+@mj#?3PmE3*O2izrNEpFdRu#_pjCzMrT9 zmPkKQ1)MtnL=}AQD&Sn6I!!9`pH-n6`vg5yLH&s;U;^|LRZxGj3aYyb*ea!Cl2koE zq5#=v>{x}riL612SC6De4BVXB;CFLzL%_}94M8{eH-u6d*hc)RnlKaYy(Y}Td#?$z|K4kYo`ahB zP!nS9qW`QW(U|&^HDO-ddrg>;_g)k31$(avIuL52q9$}ZWF)*0=Hl1> z@Nwqv-(N6c^-I5cqGiOQs-GXfe8$9COU7OK&ozk~8@{^i-eY2ohn};{SkPSi=vDO} zUiv^ju)Doa-&4*ydf^FwIrW-nr{7aH_oVejzgha(tG&*DI(5)vyPh9&@QXFKjJ$t9 z?oZ*D4?9ykd7sbAfBDGDvC6mRlV7j+^pN+|O@AJ;<+O^w>hFK>dh2nYe6#rWraSjL zYWBcuOLm+$x%UzCj=X96&%DXCA8p(@`rOE|&us1A_WMaUe>vxX8!kHVl70`~ci|p+ z|0$IxUN>~m)bFl;`--c7=X+z{=;>!a{L~B5yU)GZaa;AwxMx)Mt;>HKsvBN<$FLvQ z{c(J7+Cz758~peeuN?l)t*d_F|8@F|A1>Z-7tQ%--blYRjlR4GQn`JjGt;A~4b2OB zn&)|?cMy;6w_~pG1rX)AyU`Z7|qT0&U& zz`h%-rV48iK}?zALviXx1=G1qdR#+?2b?#JWG(X*jq8Yn{V&V>h8OAtP_(tT!Qc_W zVw(vR5&K)%1&UjiC7cjBPp!qaLZ+aX0oMhYN}EJojE4|9l#ID4gpCfpYM=>e=%m9> ztC0_TO>79-GCYCpD%$-t)!OZLOYwf0C>(Z+sY&Q{F*{Tg5~eV$FzokXe@#IBcBKMj zc{M?1lwp<`P%^#>>kstdEA#->zA5LaSzErsA7N+&+6r6|+?E%W2%{3=PL+rV9~q9O ze^w>JNEVjzX=}gsSu;TWLnXZkX^O)GKVf$S`VS77rdFrf>WB-(8^@Uh_QY)aBb|#4 zI#Beu>astANhA1)iGsCD-%br-)lxGw%PNUDh3M4AQ);(@SwtJK{g>Xf<4wwSq~}7E z#D_)_Kx%indylYCB4X0UrqzH2BPP&^px)>hG3lvmSv7Jo6fH?aqS!MRnle_Sljif@ zSgo^p7@O5lW*2#<)NUk$F}A%Ezh&o}E=Y|! zk&Z5z53o1GzfMgE2(6WG!FQ^d8*nSfMXSV{3&baFlW##}=Kp3Y0Jd%*fXSs|F~S?f zj8XeRoDXZNj#MHLsaOIIJuCjXc{cGzXiH^nM0fZQqJL zmdt3#esAti_*;$b6ata@QvmxdoQZQZZvUKUpoAX2DJD0{4Zsba_$88oPwAd*mV$G|E&6{kUC zDDDoRWrBKQ$kTRcd}TwS2qK{bgSwUlGavr()|$Q5jjz4iO|E zvr*P*`)s;vXN|1uyLR1h&tL50d8K|o*5C4si3I=STn;W~1mm=M6J)Tl{v_aql!OG9cDa)C>m zXvp$+$}*fx@NMrJmJkAHNr`J6DKWc3;}D37QPXB*Z{qVB5*1IAsG#DKsGy{peN^^5 z{f)P%_`goa7Eni25X$m1JBbPbf~c4cSuxu!EKU=VSy&L3 zsa|Udi`khH5ChWUCYQ9Z0)@12g ztP7sF)-5wAPl1n4N-sl_79j@X)eo%6j z{Gh6`{J0kKqZCP5^235(3;99NF7ksy>A(EGiIByw~+UEnIyuVqb1iyujmtdaR1ze~>|-t>7- z5(Ya$QAFvYTQLA_Yt#8etL}2HFQAx!2Z4{3)tJh{agEyPh)*pX@yU5g-4R9^O4kxb z`#5<(E?6|P^E?88nU*}F8j(Dr?-bZnkrRH17WQTn4FW8V0|CZhR@GP21=RlH5Y0Iw zr1=L1JXo5MlgX9<(wv-4X2mpyDkiEIZwbNOkqFT=hQQb|<_}F{U}+1}7*@FvP?Al& zcqJ6bCZia>$dn!X_Sso16h*qfXz z0CbOl0mT*|gt-Nk8q=SEMH9?=LJ3s%B2hstsbShN8MpdPUn!R~<};E8!&KQ+Etm@B zrbbMcO_gzQq|fOlO)t%ru?jWQ*JK z5ZZONlM<~c6f&Ds3QSuWR7-HBEq60zfjt0IZS#-jG zOxJEDYzTI%M}wcskAs)R$XAftz*YB<7F4k>g4ciwq;G*`MsE+~cfoP_(oI(E>=VHU zqIN;1znwod2@VaYsVLCTEk}0&iR_7y^FVTk6&eZ*f`f$r3WE6Kx4uHr2i$$cW!qY5{fzx3C@V{J_*KuJth$Q6vhP7-=JSA z-AYB^a$rm#Bs^P5Qb^21N$QB1C<&R;R%%2c6BS1<+?tOnV*B1?3@Q)JEv-HN7=YHE zer12)dt>w!=aFi3nsuXD2=h=_{KXiAm0M6JZg^0gmlyJ~XskO2PhCPSdAlt3_s zO&_Rzs*|e}I7J}u$!pMwYddYnDh;Y|IBzExbl`9d4;QvsODt>Ld8(0ysE~@jhLVQd zZCIaU^R-B1uj$Y_XS3O)I;sPy_FZUa+M&*7ESretP}_d>eDwKQBun#DSL`F76YX4A z-lzBbk}B%ebTy5Z;!dNegJl7>upz8?T_)_A&e)`7V$qq2&RgM3H}$8BheG1~q2b?5 z%%TFc1O*j@-_BWVw|lEFi>HQ%>I~_r3M=E#+aUo!GtcGkKPcX}&$(Cg6v;%xpaY|9+XiRC=3N-h#iLVVHR1(O zYu&-k(7MiaSQ>V_ULEpjDEi|8n#`$(e!%V7z zd$eeQQUAbQ2HB#sCK_KC%w}}rvA^|1!wvxdPtnly4N`hn6>%4ac{M&sus8`vU#cq* zmZpeab|B`;u0XAGAm-SvK)rLIXtz46-S($;Bhrr$4n4CUIYbn@aYP%6C|bsfqT5k? zJw*}iDWd3h6rUYM?J0_ATM@-)M^Wu4T2E2Bw)2VqRy!NgDk$>fNn$e|#5${Da;T&w z4hEmQ9^2nBZ%c2u6WL|hG%Mu|m@1Q&DkZ$>v&Oz#WntCsGGe{W-s#n7oSGsyTHzR+ zu^@x{RSku6J;BQ0*h!8A9JERt+^edn#9vif>aR+a`Kw~(P$8}G;|@pB0F1AgCi*YL zT(l1gQ;X?mS++S1XH^tJfuvo<6boYQCBv$esh3Q}zbOh{8pT3FYs+jvBK9UQYFhgW zPBgGwJ1LHbO~>G5)lO>4jg>JRMOMZVX536*>j=k=MrI>oTa2JpOcuCPS-jnZV?(}` zUQ+vzSewx{nQ5pat8vVLWT~jMDJ@DmxpsM73<2~k>LGL|HfaWsSKLgRi8yD|Qj7@5 z7Vn&vOodfeSKhdjFX~~vfm%}gC?^p|^tctf6tQ*GIcOuRWi`hqa6UgS9t%|s7g>g= zdcn$AF=cBOa~8-lgcEy_pPf+%b;JAgCACl5hxuyl19dbXOvJ*JWW-J~LP>_ZB?%Mw zU6PC-Njz>(Nm>W_CAAO4W6`QQQMM=&Dxq?fbRtJol+x`eadYQebJSLo`3FQcsCq}GM)B|f2QNk8$6qzws^UUtX8bwI3 z$Sfk(h`||S)`+P?ihAISw(hV|f5Gd`JSUQ+AZSiMnY&eH3`7&gbwxT6-G}zD#QH(; ztD^t)Rz>$4Cj5gZ*OdcN<^Fe2E7DQ92Oe}AJE;#Iv>nd6Z}3M>rJIRc<=*Eu(*#0p zDZ}6Rjm;VMlnc+k_|(0?=ox|D2TMkJrBrgoO1NXe!?EaXB{@~&j)iEhSV?y*cqkSu zs;25XMfuSkrPv(>9*#0XPSsmgne9rx#ElCN;|7{ebA%1H&q&zVYqY~rUix)A>`TD} zjLSTCJsPFCFCrrTJ`}%c4U+73?1wp}YyWQ#P-f^ zC9Xg*x}P zDQ2h1bWh=&oi(}cDV(#mCfhxQQ!!lA*!nr(b8a)AG~KB;roxj%@x>I0=fqgFa)M%x z*#$(|b^&otG(E+-w=i!W_8ac&ry(!y>q`8_%mHYTguiN_%mYT|U}_*aPhB)~5VuK&T#T{2g)ral#!Jw^&gR`80{LUSa!~GW)u~q z=Li_z==#(ST*7p6MTSzbr&ca`;>agU&lvW}8_F#2&hYSM3qGBAp1$SVGs`wKZ!G`A zKOWj=_EEcj-E`wq#{5%dhDcJ;-4{^#_&FFokEo6o-e#C?Bt-94ABXngF|J&&|Mw{66zDbF8&z~Ygk z*PL^B(ZG(WCw>0H9plWa|JE-(`11QMdT_umZg~6F(j==^ZXePzHsh6+a|tv`fqn0bktvG{Q5IJnVG+2QO85u&wBLLix*sf@3Tj| z^79-2u=(VFL~ADP4wUb6<{$skc*_sPRn3=Oeb+}r&b#J!e@{31&F7)S0Y|=e(c4i@)G^ZQk6o7O+@{WSyjAN9@F;kUl?*?BJw?d^TC-=^fX zz8ke(t#5s}&pqcGi>gaX&z-#bxP$(3@4jyjS$zES(#PpNcTbu9%wq>kn3#QT`=_`6 zbL>&WE;;lc^2L)z-gMisx71&C^{?u_dgT6>`$T{IV#l^%?4xPdjZ19)P0PWvrWVhg zzTlWw`wm>Ol~>F;KfOEVjL|m?imW@~kMZM-*?+Ft|JJ%c)!)*w;ETWh^P;y8Soq5! zKVCL``PgxrU;q0vC*)Vw{(57-gFl(r9vJi8rla-2H=maITmO50K4r}j=Un-GWz)A` z&${%C>*Fu3J!R|EQ}4g}>^b8negE-8FaNCfVJH7)*{>F_ch|i2tDYVekvIJQQN-*ka`(5(ZKSsP? zcK#dZ9{yR$dFA^)etGVJ8R6TLkCpB@>5wCz*l|Jn##h$=Fn`eJQeoWC3R)w(So{&D1@<8Nq8RC!w-{>5Jg zym@BP%oF{GV_V+_M83Uz0Kc!`gj|}qaIC?lH^Uu5e&q4pJxe935{%7_6YDyW? z(n5eZ0$@1pXL<^22~IyZ6{&MsoHd4k|4hKW5^bHG!F%GA5$2mmJM&H1Dxxnp4cItF zCXDm9qfiI@4zYxP9{GcMt^|AZA>)8c5uoRK!-E}$*I?xZ$9(kR$Kd2V6*TiL8N`Fe zGtN2Lnu{=)01v+ohgmC824)l*kt_C+9pehH{Dv3e=pi`^7bY(3G;&n{589_`ahKAI zR06Q*%&A&l;n8x_i3&tFS+d^rbHl}w(pI z+dvq9mF5)=IX?(V;@O`NXv2+;g+vYIB0$Z9g*%Mk<{@x%x!mnZ@q21dhCA&^x>*YAUhj3@}5t<1Pr~CSYlL-q+V$EoS~GE(p*a)IZr<3Sn=B9FnBGVsG!90lkZEwAQ0JyXxxCT?sOwoQ3n)v` z)34zAlb?G!3__Kn=>ux644*=xgJogsbB{#ac9m$av^-@;0qOaodGyp(glPq0sLGgD*!TXWMx|p zL^bigPDAGBh|s|S*e1p2=Y{j6US-o zjV*QLhfc8A9tPk51|%H-<~OQD;|$J>aU&OX_504mSpw7pGZzr;FxHWKKHPXUdUh&3 zL!XT!RZB0?S9t#qx>Jqdn#M+M9C$=43Eoj9M`i$zHqI!)&QS{Zx7~dCzKa)J;(Kw& z6Y=dYY>J&QX9mwy)wZmB=g#%%oo{XIyJh_ry$GAlYj3`!a_OS0B9fvg^XDFU z(1Z70c~CT_#J2C)*z2RWo*g`APJPYN)}_Ib!y=<@TfHPxQ!CfL`uw)?FF$``|9Nx9 z4gYB8*6NjQm-NPqpMevOKRj{Dq={wOf7;u>EE+7EGk5H;>sKsE zMx#=6>-w$1-Jfr)ed+n9imTJX>RoR?xzC)YF}1CW7AeRT4|d;jfcs)C+S=)QX{-G9~9%PS_1JtlJBy_b#19yg(6^TsFC`E$nC ztzC2JfM_qd*PXXqHRQ$TAMZWAade;cn>H!;ty?_2e)MS1q~pf)y6C*44qm!o8D1vU z^|Dwbb$#3AY`QyX8pU3mj88g#Z0yS~o*c3B%?*9_e75c2c}<7yU)?V!?)dXW!3663;Uiu2EF>ibE(xgFX&TKBh?Harj59B&GNy+Yt{XW zOkeMGU%78xjb8WV?#;v3-g4PK<3=Cqn^-?F*t%eW=lwUI+IMm5V(-dpE=vp_>f3M2 zre^|MH$EF4SrZ&N=e*HFqo&8)yy;18$%4y`dFLIv-?v{pbI?mWo-X-z_m;YqD;5`J zk3FKeb>TvJ^ZL!+JzqRGYW(OUjJl!50kdWvzR&vg>!q!mo{PNr!jp*y*Da|FDv`+2 zh0DYBW5&qoeoDU;Z41n^r%$YY>4j%X*REdNe|U{|`0md(3>{xTUSGd)qkQ(vV}^_z z8alYTPiRnmeZBO^JV0=# zvR|fOplVj*p_Si${`7%6-`>>k!MiU%VBOsdhOWBis?;gR9bNJ5XHOll>#ZjSth;An zZOu^6(D&bZdf?fOM-4jV_+wJLc5d#!d-wX9tsAz5mb5O>i+ZW?x?2B%*-7J*FK*vl zG=0XHzL`G8zR-uzYKAGp-ru<;lZ*vQy&j)${&`0nuwq4P^o$u324?#D2VQ^m6(wk* zI-tCd>Q;lb*Mf9g!7{Ic1=fLl4}#6_L>HNks-A!**^I6}4kS7o>~jXXVHT{v9$8LD zRyC;FeaJe4>aK_}wd^beG9I!<_$o3+-Zar9MJ;cZyu+c1t zzdO+lm!O+|30A)oEZ>T*Tn4eX1tO&yY;YS`XE?;zc8De&qU_RumLX^G= zkv$2`z5;CeDw_Oyh`QAfEw`b2Z%21*MHdO8i;shNNP-=ALgan~@wF79rIl@QzW zA$CuJD5CDZ8e)Gsx>6eAXd=Y?7Kln>`&D4WI*5-T#7#B2$b%4DXM?3zL40N*j(0=E ztbmx>jqW-gqI5pQ^j3(9B6RO>F$~N>SD%M2bP+_taES3Jh71WJY!+DmY>3~@7!Kw^ zJ(I_E*GCL!+jpu5&XG)HL&!tn42Sl){+_AQ1930-D4SU!X9bqa>O z+t4*nz_3=2p>Hw7Wf4Tp5)2L3L;S9TnA-($Fdp4yK19??40n4l^p!#6v_f>IF z3q=1Oh|U@eZz~}VW(lMh17UxZ;Gh~a4x#9JLiZ+{GrH4vSPF$|o6 zAz=l??r;omyD$v)hd5gcQMv`g%Ong9I);M97y@5{*qw->uNA}aQi$2D5LtB)PvbGP z-3L35>*zXi5fkFFd;cf1+dE<#f(V57OH*1hNgF?5?9=rV7i+2??qt?1Un z(EV4VdbMEL=h2-%M{~~sEA9k&+R()mbfx3LhLa$6jz{y}jb`mhCyKuo>~7H&n?x&~c+C|GtA*m5J-zXl@hJPZ{khMG<2k_#Xb&VzXP0$pYY#OZE` z))f$I$D%7P#4xcQ;`0lLlhNoNLm{?jLWHl!5Vi^8@&ycE>mb?`3>6C@=Ep!}^}|rq zhM{IUMCJ?VE~_EJYcLdihVEXEp=KiuZ5UpLVmRyraZ(RadJl$`S`1n1Afh)w?5}}n zy9Yzg7z~NWqALx9SlteBJRPEIF2vvp3_07;y~aSq90&0*7sKIdh=DgD4#r@Jyc@$& zKXms-h^EgWZr{c*K%)L`h{|gqo{q!t^%=zXTM#MtU`QAWQTG-^U?arM@emC=Af=Vi1KMh_mxB46MM=G6SNp zFNT7v(L_2>wxGHpu=b@O-E&}>XTbuCK)xkl^Q)+fpsI(WNuESk9|sa01NNbAcqCYV z6S5qGtQ1u35@cIs^q6Tqu z3CQ;px^W2X`5c;J3&N4ZS{u;R9(2XW(G9Oa6HNe1EP$xm z0MROeou5QkrEVpAz1W?`gcDt5G@4lhD?bC#y9{FHa)_hRVAup#77X~CX6m}1;p0TVCkzMJ|{pNZ-j_h z2r;z@-Sr5F((w?}TOlfZ=-$s@7^p{AKNMZ)7>EQP#5neR6a^w|99aJ-6$>y72jd`e zABU)2j4tssM4$oDc^Jg10de;%x@$c|vy35VJ%)#6V0j<9*wYv$Jm@m(Y0``Cbu@;& z%h5Ft!>~3ML*FG3mtKgP%P}-u3Gv$sG50vc!FY6+BOszK!*I71LthvoXCXwV2gB7; zbg2Nk<1y&ohhxYbhpxI1!)6FWrVqmgU73*3-48>z--fO^9>c;I3@^_>tR4+f_W!W= zCUA09RsQ(Pd#~QBwYy)cQ`Jk-)d4yb>CV<+32RtoS3#EU1n6`Uf(ejppXERqYW_TQ16}BzPKJ8RK=pd) z9&M=3=b;-o8(qT9P`f_5xBJlzx=?4&gDU+ebT6l&YsjK2cp5z2(c_{pjF6 zBsc*Ho`nRzMS>q9!F@<@3la<>0q1IVvatBm^)+}Ioip;4uZ9avJ2`2RjQLs=!x@xh z%)?O(=Ted}Uyouqse;4b6v;QDV9sR8`ceB_WMbdiY#lQp)o+*F=0-cIVBcjU2MQ+xdD8@E?KMc=I3=XXBS8Gkya%vk{;7R_GfcB% zHFN14)m54ebH4;d-_t@y+d0RQr)jU1hQu4K>Lf9AZCSe=)P=4sYkToxkhae|#y)4w zx$TukP)xg*fiS_BY|&!NzF}hIjQ%(~VQ{sPkN|H4(zz1ZSGlI2O$F*G=bB zII_@2b^+#LmUU{HbD?&fzyo*6fOFDQ*w0JIz)Osn_T>#Lb<+k7%Xfjn;X0c@zvHcg zw*$ab=q^wKBUY6N8)!3r8t{ewG_fkks0dsJM0~OgU}W(V3Q+J_%(}p8A!-Pv5I86k zt4B#&#~O*C3Gtiw?SRldjk6HAGg{&Ei@N~CNi7(D+6Y`*x%RRtOLV!EH-%YaAR<9% zn*u=b5tOr{02#ByrgG3?L28}GXV#$*(o|UWA?|6d0I3bFUdWd#eue*xwwJPbn{rMH ztphY}hE2;8B?YtNuPb7j5~z60uD1>cIbc7%;>~R0NoOQVF|ETHUHFU#tt&i%T4BX_|ru+kUs^C_*BSLqqMA2 zFh$&OFlBI~RO_(T1Jta7kSA*q?sZug=VpTa@(wsMl|ik-D`H{;|Y1r5Qo4X=U=(_OPB+_NiWkxBN7PghDJe%%cLyJz!=O zK$$xf6LJtlmw~`9ZIQ;>{dB})!s6shLqNvJwzhT3nhwhkc|z%_7SPsH1sBa}Xdr7u ztebLzR8)LoCu0_Ue)Wph=B@$5bf}7{45TF%UuoY>Vf&)Ylwab5$}`m+)iw%B;IU9~ zL1zjK#=?o*GJq(JP7Kio?j}}u#L%qgu#C_d)Ujl!l(((`PG%WJhKURhtYVhL18~Z) zvU5`fppda-kwJkjY*dtu_-0MJLUzzyM3p)XjDSk*OufWL5e)$4pk?(OD3zq*&=QJz zQV|lZAx#>jHz}7zEKMHZT2#tn9kahmIquZDY!|wxbyHZQG3uzx-IPbI7tnLCU}=0x zh!y&f&20!d8BQoNO$i3$D_Dp)urADeQ*ohL<`)7d*Mu|;yxKkweKMBDNo>EoV2P4Y zylGUwg7Bxk{`KrP%aTCVVP=885C^^P7|eW~9@HpOK{q}UrYRPzpRSZNmKa$NNtzgj z_~(PB)@-1W@CHp}5*;WeiUkq{ni*G?7toAyfOyqs8I;6mRIgtWn63r&K%64Rq-l<& z8_BRQsb{BHNnB6k!P_;ii}vWcs5l9On}3}1hE-a}uRh3QGyDOp{teLY*Z5E1cWOyr zb98!W84e6C@59$VpX4&~VE}vM@bl0tg^YkLxRGyH{4*ZD2{L{Jhu|psI0_+u0LL5Q@lJreCm?z;JSl^ zU44nn?&=E!NCgaI$f&^fF?3Ym7tRn;fmhD39F-pC4S1Q$OL2E~w?gTOp+L4m zC^$|lgi=gE>1Ez|ys%m;<=xd+DinOM9nyl+v_dHOjyZ&adX8veQ&jqSVf9u9cUNDb zP|yS+6tqDI1=SrwL48M1*d&z&yht@yc2{pzC}@fh3fdxsf;tbOR1#2z31A^FhwyS} z$RU;C7|OyJ${{h7LlaOAW8M*77V&a;$SIY>VkjdqltnR=!xK=d%zFeci+LFh*`-pA zp&SuISsX(dO+XoA-X**&_&c?@Mm3}rlq zvN8eXNaj6?m!o+(CgPVPV<<<(P>znF9Fu^uig}Oaqa#9Rsbpp!C%zFwir}A=I#4jhuP)>=VoEk$pEdk|p<~@U# zC-HJ-#4o4EP|k>d2$Q|ha5%H_*CY-fR_t-d0NCTPmQ5m5JR~zhVrxol#7`6VqPxc< zE{dUC97DMzhH_~F$^`SW!>Fv`Wo^VS__{OH43jYwd?p%dhP4SOmoe|zMa?US@cijrird7|QiAl$jXHYy!$Q=H1TAGkAGs#4p=oDBEKw&xoNsGXdpU z%zFbbH}X=C_~ltKlpA6wH^xxv2`JBI-Ucr_c)2O!muJUN8Znd|F_fEPD8oBpPa*s8 zbIkp@=6*Bp#(I%N5l~4Q!5wCX2=p+s8R&uWUkY20f7t6JW}ldjco~?`SN4~99Wt+! z47^tI=ADd+RhF23ou)&%rf;kqFM6<356pXH>vcdjphSk*qt2=^41G5=cPYbM| z1=idaSj7ky4Vq?Hy)CfjwZLMVBx)TNT3AM!Sk185LR5#Qg}R77R}IRSi>!_7Pi1Tqy^TY5iA{Y3@z&fG@*5VdeqYf zwZJ;M1=cYUtakod)dK6-7Ffr%z&bvH)y`ihw7@#C1=dL|uvSN~+WG6`7FegWz&f=B z)@c!}cK$lO1=blYu%6Tc>&ysNJAa+k0_*G+Sm(6BIyZvV&R^%Xz&gJL){|RcJtczG z&R8Uuz>+?fi9F z3#`jqU|rDyYbt`(&R^?VU`@BcTHgX|Lj*+19Hn+gq z(gN%12v$3PUDE>V+7?(_TVT~9Snd3ET??%1TVTz!z?zLgc#hw_xd^gKk;V5%<~y#N9667j?vaaYx*jbi{q>0pf0#@27Ue zeL+Xu7k0$`v;)N5F5l;M#C?88+)wU^`zZ&AyIsD|>WKU7j=0b1i2K|F#N966r+37C zMn~LF>WKTy1H|1f-zRs(eM(2%r*_1B+5zHjm+uog;y$q>?vpy=UVVVL+vR&zN8HDD z#C=>x+{Ygv?soY;vLo)JI^sUMBkp4k5O=$LFYkzZMMvD@9dWNbK-}%}J=PKTl8(5S zcEr8x0CBg=ceNw#BRb+<+!6Qa0pf0#@54Ic9_fgCQAgZ|A0X~_`5x|wdtpc1hjhe! z=mFwxm+$!M#NE{qclQC}Zj*1akBl3e%(YBM)Y*=xa|ejJ zO}xoHZK%mSZG%wCL)#dX;vgf^zcBLi|9B7# znP?vSC;e44Fd)!7c!8TntcEg!@A(63D%s18r^^4AaMLCjjpvB&)lEvhF%r2aPx(*soah;SxT)kXZQ3g zafXWoVf!EJi$U0xCqdYC#HwNtw_r;c_nxwz7>Ip~*o!)}9{w*vyg3k}`-OMG+XRn% zP_z@+@`zI(7}g(!;h^0C4I7NY@{T)S!xltg=6J!;r{jRZ(ZkJQD%kYoRqsX}#tZ)2PsBw=6)Zvbk zE#%%e;hT{D31316CekKka3U=s^CvPUWWhw{p*zq(+yfZ3hgL^6YL}=z!b(lFM_BoZ z_6VD(sXfU3QG2A&9&Xeg`Tv#ns8r;nB-0>i>~qe;SqhGssJ;~qg0p8#W#>@kJb35N@R!CDI0z0LZTHDo;*9)3=@s@Nv^J;?j(ac<&ot#$CIIu~A)ZnQpQ z{S2PfPPCqeb9A3)U2T2X`kl4G+6zx3&$ix;v)%vQ`h!)%KK{FK=GQ-1b(~!IDeG0% zbFf?WSJnrt0qf`1SFByuGV33$i>(h?-?pA_t+r0FK4Cp(t-;qBJFO|~r_EX4v|a(f zPY+w4wBBN^v^?udaMl@+>)r57cCGaq>$TQ1tXErqvEFBW+Io-mSL-|0u=RcG7uMIU zA6buBXIkgrl(bW=f3@~mTdlKkn(%|xY1ZM^LzZuS&3e?j-@3}`vtDfdleHXPhi&HAqOfOWZbnYF@tlXac-BJ5=zv+jiV+EMJdeX8|b>mq9-&gW_1JF}Cm zBdv3B=Ep4j3Vqi4FY9>gi`Jj5o2++OKY^FAwbq-hcUe3O@(!HCae;M+^&6ZmcY}4k zwZnScdYRQ_{Q&;#erh zP3JJ{bJnCuY5E51d1wB_sMqp2C577%|G=wWtSQkOLFN4u!~myX5Mq4eS?h} zv#j^<+m5im{KroHCHlxqfX6Nix|XBh-Vd?ET)c-8>YrUFQT)#7U5J`#`_AbJx*TGO z&Vsv_fVIP^et^#a-~MfrgBCD&;Y;a5SQuzrKw6yveYsFxhV0p`+eLVjKGa34 zTGn;^rpA>h^cXNs2uu$vK0PhFf^o2zKY%Wu2qygW#I!$%?M=imF^%(|JjM~lgoikf zaYTVQJ*BuZyz+x`;?=zXY))_GqtVm#{n9Wzj8FOUICbds{o|O#2S@v(Z8EF$Pv+%N zy1zjOeDOiLuowHOvT1tfG|I4p7o6lyr&T-Gw+3uz4cLeP9EG@a2a|eUCAfT_K)_=L zk4*1*gLq;>&+ET@AJjAsN>nW4pO^1aK5po+2XDC?Xd6#QTEq9w(Avh8e6{Pm;cb(? z@usP-VgR=5G6aXhY2aqO(6K#jmZfuXhwZfV5Zqnd$4AcsJSMU0#5MZ>n69w}Pm7zw zzqp_9FGt}s>BZsxbMkD;a)I!A+C0@JwzLA3I9T=t=d{c-NEa595}2trV#d zm^Z1>UVIG-0wytkQ_g@+9M{{O7?e?DGL_P~Y+Q+=-P)Hm<*C8i#kvK|+Kv{z%y7eDm(q zH|z^nMqnV%+~8eKq|$N5_25nZfv&!#gEOB334Kb<_nN6uRx073CO{@vm2pOsc?5Sd zq_oGx?3p$Z*jla;<{hPwtb6WM9q6E^)W4Zu1Dz3qH9|nOj3!1Mw~q^={zN!~<$zQf zI0`p~zFd9p^ZOSv(?kl#Rpw?=V_;`-6&Z%3;0Qk|3Wu~~13iV#>)(J6ASblxy&;IT zf*OAeQY2C-*XpOx#*5HIs0D`l{Tuec-1R4_pFxE2SWgnhzo+?8CP%(2BFV|-*;CrG zGB>kPZgV_r!T2<>G!C|Ml4PWBtacLWR{vrf$AF!pCQ6U9Qf zs-<#D?XZU1VGXy!Vu?tyv{Q2#*jiEsloDl&N;RORDsPd3rTZr6B(^el_3=0h%Pj@& zoo+cu-H8Kdy*u6hz&Cms-;(~%@>eAQ<9xA|aZGtQx<$X8Xp>3dzGQhOg$IL7T%Jju zmsmlyRX<0b0}BVfKth+Q;iwFUWhe#trATD88Lvl8jV7VGMjE%0o-3%0o-2%0tW6zXyfdKflF(R546y z(sK)8&~9tjbF{A$dM*fc+uzc2&cL2x+8Nwa%sBJ+6tm8PJw;5HBy?Y>_YyiUNP7d2 zIef3{4I15;39{aNqZ_k9&Rc-^98MHlb-F{{nBQG2WO(fY=TS+ti2q@&;-9G$=|upF zFsf(;W;lce?X~?49m{AQ$ypr~L2h3-o3ARU2Ccos5e*GRmHH zWb{1w)hKxKE0sH07j;Axn!#gSN0Wwm<2sszeMRPt>u8evi?$85G$c4ZcAXu^N`6=n{u0nXsj#(IO=iwv;qlq-2CxZ8T9bVLK&Tu1U#ABT+3X<`hLy zTZyv=Vz4Ay35qeKI%*|oMhycIVJksphw!3Sg3b=pMXdy-9m0!R30hmja#R%BN|C{m zXeIO~VY;Z5(4mCzqE&Mt%(wGw(e4U1YS4;urDpnSq^ z=z%61BeXBHvBb8JPFkBuJ85kq?WCpV(Mh9KI@uum*C+e8OTLdui0$om38x7YcFDs3 zj$Psm?J4G+N@h>7;8e1Eid{}6x2M?cRPuX@Jx-;trx-Yuu06%MPNjQKvG{kHG1^Pc zhngnaiun@cy&=5kg97F@@lXi5JfNL`5!3AfGmj|k@qnDiiv}L>>o_q8=6WDQ2a0op zq6cblu4lQ}yJ`wE`RSl{cX3{Z*Af&1JdUh+0qYo0N?3-{BGkXaKpg=}3Cd7fK%tj` z23n4Wh7_u1K4@SO4GlCCdq4w=XlU?JHT@_LtHzXvR(voIj0g6@gIFt~)aS*PjcCkP5VCtB5RX z7m=}c5gBS1k)C!DIRtdIh{&pT5g~gvi^xE`gdEi_A&c837$|nP6L;UXsDEkXo$I^qM=fvqQUM1EG?p8#6(2Hh>3`X5fg|; zBqm9zFoFW9faK^n!3au^3W^LAia{?13OGr+(!2UKe>(7if{T9RPPhsR3b80#^hM3MFa`cq?N7AR6IB`25X zD!deBifA(x$WmyHqT^u!edyON4THH)>lkm?mVlv;Jrv-f5;0CRv~*K}v;K+|C~n13qy}gG<)FDWCTr^r ziAm0YWK=2Y8XcPct2iJ#_hmNp#SE*9blwy{qiV$X&*# zDm56NYTtwLsmcq+rz$KMpNiHD$EPYKW_(JamhmYB<3J|@{(spEiT%xQ#&SLuZMm=P zuUO1&^$m%I>w(Fne@O1tf`7=#oL^f0b3gJ7sXM~<9rO$t`s2b@l2b9+0#9D>RLBka zc!E1Z?!d>>0{x1eULD0{;X%)kba{r2EoZQPP%D*#o*^S zGS&h4rk5YKeJI^KT3>t>+6S$;>kz81fYR~tub^N zB=0nRunYAR+~|jpuLpfY(qp%AuOyAs?4R(UZ%DfDR@D~zp*-jtvPpK}%iB2iGH$F6 z`i5+lp@Y65=>WW0h7S6MY?h&ez9H!~JnV-K`i6vQ0>9zSdiDQm-;iPjn)Xe>HzdD& z)c!&ZMWY@Ng-kV7O5J;vf&p?2SpLV&RwBR7sT1r>i} zL^k_>6!eirY5Zjvx&?b|UK$S@D%TzSGq(Gld3GnS9B|Rz!7T@Tws-K$anLv9-*8CM z?tA8-Z^)z{(u2Mslm1r^`i4yUojvFq@`?TJw)>Vk=o>PrTMqh$OzM_{z9Eyk<)ClK zC)O=(zTem9V1b)1?Z$t^`z49@aMO4e6i)QYyO9O)0MwkH1xI{oH?k1E<|i2D zH_i`TsmaxU#mDWkcgulCI{l0Mi`|QTU2Q&$;04GAd^_RssF7uWUFYrA&2aFPiQlV_ zqQ>YiB(Yztuw*~}FjEl?3Jm@)7a(ou|FY84#z$}i;P6p0!u7#C#U1Jco) zd3g*kl^)WN@JAxVj^z#2hDxqm&Vg?_{nI>YYZJb=eI|HuK)Fb7IlblWN>#bjXPN6P zd3jlG=6sTE95^v-01kL=j>1axR5^NlW@ruEL1lQFb@f*ua-T2H5GQ$qr%eGjnVH04 z^1J=a?&=SiO8kOp-1tZ7x$^2DJ#6D|4UXx?r$N>4BNdK(4^qQ(@HgRW09;AH<)dHe z+lZsWu`Sxi$L4mOWC!WKH33deZVf9>;2XHidR)pI!8gX)Vx@QdRR%D~DYtfFS5wqrzfDw2%-rJIGZ31?8OH4S@+$)AguoV#1{{JbsC91w^+6f%>irzOuXG|#Fbq%=vINzW_k#X?6y^Hm|V*kxjyNy=A+ zq+)kRb#x~tpciBPi3GwEd@N#o(b6$ftZj5BpnUXZuLRP71g7Y^U z)s(B5@~l$c0_gyn+tAfq!&xn93$z1Z1VdYM&1AJjTA&#g2?98x4T3;*@k96s*zBX7 zrZ}+w!yGu3feI=-G{Xln=iK8k^t4oTm}-y1&@I#ZFK5`}Ky=}SA^KzWSG^qqXM5FO z0x(pDU;S4;c=&iE@W9!k5?uI~D!RKTrt|6Y#&o5!ejWS~uE&=o8`lLXxYAkEmJo-` zhY&LcB0iJv05R*8;VB9b;o5Dz{{#^6T`9hQq6?g!)#pF{_~SM-B8h{4Y#0~SU$b7| zdzeA+j*TExj0BqM!iYeP5DA1YW2S@!gg{meLs8wbZ+U&k`Uax5`Ua-9`Uax*`Uavx z7SR*Ec4K>KZJr& z_muhA(FQbF=^`vmL`4GDQ}8Yy_3pv%wf?E;(PvQbyiVGMKI=!1{PU{9eMh~f?+?Gc z=Ctj{Ec(yl?z4XPm6tAm-bLR#w14f1lfQrWUC-Sx=jNr~y5P0XzWWz%{&*?>!|6}H z?6`lQ9UIAgO>8Gq>LRvoC+*!#{uK zvG=TeVEy&axgqne!yf$8H-G%O51oH{`UO9I!-BW}t9RY|9y+D|`e4PU4}Zn*f2@0a z&t>m@$G$r*9GrSp_Sd_ffA+7IJmuxbpZUUTpY-*UHg8<~rGHxXmsh85eCJIM51iZe zmNnJh)knPOg!Alw{Pugw7gt`=xb*&8wteukch2mXcgWlc|MnxdKK0S3U-{AR{PFW| z9XXqKMua|KfTpgeE8jKUt)dqb=Q9CyL2gEdHC@=pZS?D zI<@pCPX6iW4{pf6{kf+c_wx_^Xz!a|z2nwkXQNiScy zXzG{GSbX+#Ui7PlpB?zcw?235?GL_d#Y^Y(9r{S+$xHrp)>D3W<*m=UY@+{`AHU|( zt8Pkdyl2Bd{Po{Ic*2{%^s}d*{@D4aZ9Zb@JLgTlHM?)?ncq9|s4ZXq?ja9+^0hDi z+P}VI?p=ioKVmO?+c&0%KJZlcKR#U=dBG(YXFk4*ay{ShOP^Sxv!BFN$jDc|6*)TR z6bWQDF^2y{IEHuN$KJA@1zXkKem~Fg$jv+u4RqaY49a@7KlWRmx-HMm^e+v^#u~nj z$A9E(ul5HdYIFgWUFUTS-#_tw>*n$}oWAPgFo)+DOmB{W*uMB=ZgexFU6-3AuKivO zJnD!iL3!Rld%DypFr7{#9dE%^bsq2Vh}&h?`Q+gQ2k~z$DaL;eRsJkMWt3f)tn%!u z0PdP_e0<(^`K}4`uF#v3Dl9^K^@TLXHE+_GTRE)qT$nNe&(wJmN0^FjXh3u*bNUXDNo1hPh1gx=ZbK=>4#8c>5oI5VYtHX6;TQ$OeS8Nb;doAS;ITuhCDv|pgjIJ z%fbrrpoJhZAem z&wgnnCyw)3Z=U1JS4wgghCeWo^9II$ED4UW>#R!;(@jk1_fOq6vCr2dNuZ5cwNYFp zw?U%C;K0#gpG7^pIKjuVmPo(ae!j`*Ql1=wqfDlKOu!LQ`ZjZ%3C=K?=JXvgFfb=0 zOhA3`3C=OuKdwq8Kf07hn6$vvvrAeiz@a7O$$YxB>`VK_l~{XG&T<-kpcKB~`*92V zluJjk;o{zBwKGW{2vV)TE0AoaJwyV@^>>Z9&J%l(l&Q&iwEeLdiXj1SOOq91w`dij+hVc<4zlA1dVL)y)!dT?MEt!Q>z71OdH&smG%(7MQ1XRsz z*I87YY{A>Dn`?bQtue?wU|v}RG?IzUuJa8Ucx%d#Db@Osdr`_?QOcAY9KMA^#t<#`#S82az5kb!rXh9KsQu;+*obo|z43shPL1xnNu1>=UO^L1yKRWV>l7 z@kDbM7n%#1Xe8Opw~OB2kmZaBjq|3&uL}RQDoJo31VhwagRFmtY#D zOW`;;kxKs%#$wq5XbcnJ1h`;j+8)v(XuuFofhjDdFA0x0yHUKK}qnFA(KE(d3&X+0?H{Z|G~oT&P!mL)$x#bog?_AS$I*gS_x{%mL4 zolr)NVU$XF*Tq?CmUR>K%Z`NzM2Q(!3y>ctL76x5WbF`CAP%ld*AB%)A>+>;jnK3| zyBxRKhxxTciw-k_)zUU79PKCvr@&d(PU^MVC?I6Lv5MEXA?LZXrBSqPd9pf#dp=#= zTg5pp<3CL=-huUcx8T$kBRL%H;JB3?k068x^wlmyT0~VD1zoTt?bH^TXUSGuj|A|< zG4u`wKj``p0pEVwO~p1pfHXF=5JnuBg>zIkm$9#Z_RnlaZCQ&xz&%XBVO_ zcCz9a-d@j#JV8A(F0N;J`)}5>4WmQr|c=TY0@s?_gC?Op0oromQLA~2`Nm7>- zbtb5ep)_FGy_m$^oA#HF6G)d9>%`o^qsU2nSB#*TrXZmKbJ0V!lE2Lt&RLqR7pi4A4h9$^e z4o`i#F*s@qvgHjc1AoUNq*NfQX3-b%_z<`lhYu(e{{C>Yi@>{e^Xf^Y@P$3oC!fIQ zKDS&u3WOfJly4pCAdK%qywkU$$9MWB!?6Fv<{3}eIONtICrwLc6^gh ztU;;9>L`VV?a`{Y4G-DT*@jMY-|1|-o7!uXSs`yO&Vsb8=Ls(}tach$6Ek{G!_BTs z2qmgI4tzPUb|Id<+C{kf)s+a!r@h%L_~y+{;uh;L2WLWB)`hGSqb{;L76ZO5S5YO7 zsE(X3HSCQ)hMJ&G3(pI3T&=FKe!}$usl1(p#q^!z$Hv)_`e)BBm~@SbAwIMtJpd`ZvD4d_Z{9>K+!E2YK?7QksNkz4gtBx@|?v)fq4TdJ`fH>DTn zfY6IG^i8DI0Lc;VVjCP{!q$ z)r?{;AM2UOKhjETY= zazbBj=C-yRpdbQk5`8O?h;=JQ^$_;?5I4-L?(xvPlJJq;lmolZ+M4FL{9D;h-}oaDL31NnF(6M*uuw;=F+I`#R@DO3CR;zR4g3Pzcgj zg^_A43C>$m+M%igqf~3hvM_lBu2L)CETcLIW zic7Db0X#0k<=^ZENWkm`xGWC!{xHsdwO0QY+IZEexPVWoGgjmN0`Q0v<92IDfP$8oda6>Buvv&=vyV(`i7zi?+wv1}p&j zclcv-7GqQb^LW|Mgs!Ncp7|N8?+i4Qgf9$nNIy*r<_HHJhmQW8>dovJSE9j{Cf}L^ zrhhTzfBU;RUv!wWjd#u~-N2+rAt|1p#pfgOyy{-S*QtR*X86~5Sw4`F!R6Ai%E?v7Xi;-aMez|^Lt`Erd3%Jf+8&Vz)xQ}Lu z>bx$=*)l`X;EUEr3g>2Hd@eeS#jRb3>`-JnY|HC|=9YmX3{nmYYsy5A`JO&4`?{KD z>G22c+F791t_!ppp!u~e7*aw9vTDZ`+jX`ECf5N$ks$XQWU^P@PK_!J}YMzPoFJ;+l4ZzAuR0d=p=nI|K3dPmfOxHI59f?yP6GJC zu|MN#uLiW7Uwb`a*WQ3@Z^^ISMHGkPlJ}sRBwaLGEqLjS%nEQ+?$5phsW3foH*-AU zyg<`nlB&kb^Iuo>yS0&VpS7-Nu08{UnN0PsAvX5{v z&0^gma`!>X9rovM<3r-=DpY(f;gbqCoIU=kZ8n z=Q@oOP$;y~iM*v6C$XYv!=$Wxp;TUuazkU*8C-ii<`9RiotCw>XO2@E|CuvPmA?G@ zqx0Gllrh_je)6ZP^_PFo?OQwcZC3}9+2MQ7wJd$km1PKvseDHR?kdZU{z3-b(>@IJ zc?R{_uwQXXH_sO@dKnxsSweuCg0P1*Jp&PA!cm#!30!vft=%U}hFEDt$C_eLC0KS3 z`y?GZ!?X$9nc_+wUp?D{2D^(>PcjX#>TWb9#`XBxWi38DFf$+c`k)l#N_bTYV9;t2 z7>F1XUMl8Cm*CjK@&qn>{o45e?a8!(sJ2Q^?LvfzCBl)roX-|y#~)NnNz9}LK_MM< z?d3@=YZ8VG>>VWUg6H+@_#^33I>_$5OL~8jYRoni3ac@D#S#b#?Gb>PH85$E3SF?h zx=XbhUdP}rUF``mvk)G_V=3U-y+`DPU{Cxp3>3x&J#mh^q=Vhv)1zOjl$H6*t`$N!fzo9ZyEoY8z*|i?c1`pv}NhT zuFQIYlT%+ywQ;h}i2d&~^1^mTUhu?>Jp4b;$ioND$ix2&j6D4R03#m_x#+~m60Usw zJMic${wH;@P90`@bG`ZAf>F%qzhcdd2?`w5E*)C+V%SCk8j6LHtKNraR7!t#}c2`(^e0)Gz^H0hC$35Gi}K`itwOfVcW!SMfM zOhDWA5_D57b4po^yUD#dM|e^@Ffl(d!OwLxwLDimmX3x{X+NB1iW7`|5>rj+FFlLP zF1w&-n)t%5(>N@j{5%kl=p#9!8FiSP&!imWt8k(-11|*&RLPP_qqO)xsuNT-Qr zfRu@%tZqKZm9Q;^cxv3G0p?(W6<4uUr%@*wXV*y|Hj(faPVY!Azk~@Zv+aaXJTvEm z9>&E`mB9E#An!V7Rh}5h8!T(bZx55CmR?wVF_nmfNAKV77f!*pVA)t=y8VS>Vb61*%- zkljy$tHT7j{UkUC2~f=e&W#eLp8X}{Eb)%xbZ38yAe~L2ZVcCbVe`tC1 zSN=%)9;hHIg`bZf*Q}|p0{pliri>r=v{mp!*C+5taR-^QM+w^rWpBx8xSxsN+4wyL zKi0t{e$)6}iQiTDU5($h_+5|RP59l6-;42kDSo%%$8Tm|hu<6VdkcQ=!jE%nocl&U zW_=33&*67JeqY7!d-(kjzaQiGGyFLH{agJ0j34LM`Q2>+KYRme&BL!Bzd`&)@LP%B zG58&e---C0i{AzKt;O$h{HF1{3O_d6cKqu2-Gtxs@#7}1UHILO-y89JGk*8r_g?%y zh~G!>`xJf;;P)VYU&imN_a)f z?aEqR;|xBh8cz!GMe84Rrjj($$N2`nUAqR_U-vo0X$hrM+O1LAD1Tj0i9JFd{M9=kMt1EZxB>|0$)kDB)-?O#G}vb#e|D)_ zC&9FXk3k4%4(u_H%SOuz4nK;W(`V@9d}QAmwRftYCDIa-!AJrBW*15QB=%v>zJZq9 znXKyS7O4`ky|N)*d~aF3`fr7&tT!P2tHqWesCa2E>j)uYaS0M>J6Kh0!pMr!7`7B* zcx#FY?JEZ}sLLH^ly`U~^0Csl8AVEGCh|^Z60>Gw!**TJ)2!1+kGm4YR$Il7w#@#a znDDqWG^bpfHNHa$hI_`ufh5a}CpV%Mj zK_~wQw6*d|%BrGnUW2-kLE7oGOSjv?kegQbNF^iWz z99ws|m-3@L{)Bm)U~+%LB=yTY%Wm1jtS{f%1buS5@CAubrqml)Vl?BWVZ&oUjSU9a z2J%~N{ISW93C6I$mHEPVeFLTXuvWQT90<+FKunW`cYX$VN4UVtT_%r=8d=6l9NBN| zvXBkOE)4M~TXx2y=IsLP9szSPVR%t9vAR9?rQ>t+0-xjsF^2^vDF**-M91okvPYbP^9B^DH3jIUwpXj$S9fh4% zY_>JnMe_m(QM4!kdNgM3%5TE{&a4~(O_+CLgR)?2kRb7<1DVmjmPEuYwS}a*At7_p zA7MdJxG6id8)DhPfcAwHt$EdMA8U7o3fT5%}G%830V(;*?pQL7ee*1 z|1&A`+@H9&S?1f2F@7Ae{ydgl{RGm$*4Y4eolqd*gw=6n9#)< zpuF3vf|*q1r&R?rCRD-Y+~^?+CCP5d6l&cG%Zxv)`xBx*%!zgF>SX-`aYX5g!I>|^ zDsXk9e(uPojrw-=)($$EHeb}_L z?1--tT3&heq$KT560p{T^F&}nl1+aQ**vs`l6`N=-#1Ty|wUQ$B&cpz87~XDkrmlLXXY~MCQSa!GEGO zW$b2rQa`3GFztr*SU-(bz`!5DGz7M0>(@frJA&-k_ffxM#ELkidARu=WQV&$xRVO! zL;Mx@%3ityvq@f!{0C^0NYao+Vy@P<-H%Pu3_iiFootdO1j2((Voy}!yQ0c);(MYw zRyW##@@iN4SrERhxf3_BuUuY+RMR)#OW_-)Xu z490I2czBB6dc8{TuHnA`w#nM(Rr;C&=6jX-QGk&r7?<(~>lxqOHqjzvRNnx)ZK1(D zk^u8a?B>y+Hg5*6c{51mP5Cron>(AP#&R?7h^j#7N{+F@Z=@XAS5pCRJKH~xX}+;V z&NkjT)%stsM7MpJbAL|*2P5Dw2xwe{=g~5Dpu{n{F^Um(ok?rGNC^D?QK9IYHl9YU z+#zzrWKa(0GQ|i?acqy4obxdIZMIO+8no+#YNq}@ne-~8We3XG56x15%r$*IlbFzX z0G@=%tI6_WH=TUT<3-=^I@`a*@^UW?9~x_cXtBLx4Q{%lMz_&aHqLf~CXFsG&st|- z?E5+?19RxyC-g<%T6}{vnfLnF7WmB$YC@uWIGYdWaFGAEqRla}5C3rb$UPdmb+^`s z=_5`>$`np!{5!A(b#DdN9VF0OT9CkFn9>{lQ1~5?yR47^KKcepBpb|@?Zym;sZ=K#C-(=a!(-uzwll=L6E9OxQeugVksI5g2Z_61%H`_S%O!bp^qW2~fIx z?v6`v!yFQDR3F6%e{@bM>)>EwsaH-jn=fu$nFrJY2{U{fY$J&R;4w3<_hE~Mn<%x; zpGuW5&)D5EzN64O_@(gUIGyt`bMTLSVdx)e&`fK5Cz{qEokFZ!I6B(B^HPTKqT48> zTsv7V;nST&JWR+My^~zmCZjRWM&E(TXVzV*>N~+pNIwXBly!F}>Mk|B6Hja40}gIB z)>Pkx6j%j^S&VO#GV*nL9y?;IU&7aK!l2xO#FoJ~tM5iyG?6Rcre?-}p7u-Ce?mIj z2Py(8dXEnD-2%&Z4(HTM_#nqGr*Wyi50O})ro8DKU&%UWU9|LrQ2k>cz%;K1owKX) zsmLr%j4Z6ra*b02o;$QgEIf5$qpoPAd@1W&$oB@8uQI$QTj`OK75ZaESd~_^GNzDvsm0=wpdGErSJ}NHThlNli|cO8+WAgv%v4!)qb+$k-Uiw4u|w&ZbV~4EzzK{JK3L;K&W3znm%FAgI_lW? z5{g6)xsEtya7rn7GLytH*A>9- z1$8oR2WyT4QfEDF%bYDM!LGuR23I#OgN(RiUD(ujIiBDrWeT^{n2(9RD^z@%Vbz(e z1%6#qk{@aNvz)f1gFAyd5!5at`F5SKX|ArrUEe@$)~FJEUt%~p+z^Ae|*FBqS=7RNxp zL_K2=h4n|a?UF=YLu%NR3})5;4q$RV8>%6v3%ok$_VBwU*ex z(2;Be!;bua8D4rCvO+SXAf_Hmpt~*I#U>poO{9zcfarGviGA8we8}ENx(_tWwN61@ z#pN5rEDq7t{+%UKdgJ04`X_)zAFDl>p|-1+B0yz-PW+^YzInDq7Fj&UJr60 z+#7gHH8$cV@IbTt*>%RW%CjVs_T&1F$}<6lvIhE@ZEUVrS^<{gGo(hQb!FUOTZcF0 z6ZsD_VdvF2nva>hhiYX^h)Nze)=hQdADf#J;Cv=t^)eAsVb}vS+SWoX3gl4oLFY&w z0d3bMhw>ZJF?}>Hm$(}FN%*HFocz-%{G$DYgN%;phr@8xqx^+5UBU>2uzh1c45YW2 zF&N)Mo8b$`ifkAyr(459TezOliVwDy!PkLLt^``}$tK=XjjM2L;S~JObLT zOOE~UiO|-8Pb9nppGbHIK9TSad?Mk)?R>&;r`DNI823bcA}~AfiNM?spD4a3h!>+*)bG0_Pe=5mtz9trf34hc4qGdipI4lBe-!ZZbkbl+dVsB;nh2BE#~_Ld~u3n8asrsrFhx zT4YGkFj$$)C+036JO{hz2p2ZLt__y(?fJ*zLJLt+%NXlP-pL#sC~bt#0YRc+#)Or` zPe6mXSrUg!qZK7M1Y>B0$=pMe7#^9t<&T7sibEYUnF6FHqWVo)A2hTpNF~;;vw@Z@ z!kU!QX$p>2BgyHP;Pg^zVEob1Q_bT6RiiX~qU^OVV3HVf+`<=H@umt){c9Kt!)BC` zTG--YyEgBOPj->&#n{Rt(%t(;cOsz4nq(*iJug5v=qjgL?&FF z-C~u!I#<}9RF_?4d*F|KHrsVZiM-6Dj<&C}>nzvM8d(+*7f!5)*v2jk{YklDdZzKL zPoqqf8?*ugC$Lu(Zp+T6r>waP@s(*;7=iH#B6yyTMko<>ofU?1u$m0BVhq?1mw9wG z$53wNE{?I=av# zC#0C*iCmM${Z2EUNaKbu9aQ`=%ABl;!>ufF6xk9a}0P0-k6`jim4?4F` zQzy$6YSR4_3p!R~NPn#;%_v17)oeARTD5_-89{4Ow~{Kfm^NgnTS<{&EGi_ny-VL2 z@)z3})nVloM|>MFQhB=7PJnTwM#+i=Gu_Zy;j3ybtnV9lYbJc@JbkG2V3p}&q&L21 zjJ5F`5=S%RxqQ&1%KAH618!;!XfUAE*ohltI4K*18rmW1L+eeP6S{RX-DlAcLEga( z-+CY3SJDeMmZ#vNYjPx8TJ~eJhsu+=h&O8i?-^U)?Z+SMbpeUrL?mENig zSeLKiTf=mI|cZM#dFh>S$Li&9ZL2Hv15W6eJ5orMu0WH9r*2(M9UU$n}Voa>k>cL;3RC;c7X!c>)N2V5p=;~M1 zU}95nRvBJdhz$$+hDH1|dr_HTRw^;Y_?@u9nY5*%wInPO+skMHwx$M%t<5@3kbn&ybw1{*=uyA9m?OCH`xkTOyp=SwxWW96Ozx<7eHj?z~kl$GyFWAQ38$1k`n`&oue%x>QT!fa`AQ8y!B z`EIyQ*myak^lK<}6xw(hL(KC_`CMwe1UIpnRstsWcvG*+9)ewip>`jV70Ad};lP^e zao{bSm^qR2hgSYl`XI-;1^M5`I#nwts;u-zPfTct;yJGQmLdN@4_hH5Vac z7huVs53(pHr$bba1gOTXB+;l^ZUo@L6RpuR-y1;ZRV}T=;w||~`z7U-c#e4HMDQH~ zlXm!kyr-;>fPUl*T!(Y}Bo6+;r*?5q0ADIS-oOR~Ozaw1k8+#9VQ)wShZ2Fyy-Hp~ zEBQq5$yf?A!99uKr((y43GPh@UJ0GPDCR zXU=`|Sfh|;%DO2W_r(Uw;XsN-Ji)Th%lo#6CClB_RS2KXrgP!u)1mPn%Ha`x<6rl< z1FCvF68L-q5Iz%!Yr%(v{MkE#S?KR_<4soV_kKa8!Ex2CVg5SV-mX&y5Wg{eG9V?q^*9oGDRyUnD0 zVFmWB9hk)Vji#@rdV|uStse5P!5)$n+Ulg#sAx_96f_|JqB)RPGKKj@^;P;T``~x; z*{<`ZR^+SW0K3kVx=Xw98axtq;v0=Rf!2DldNgxs+|43Q(pF>|=1W;i=Y)H3B_BUX zNT}E>cDqyCk&+dQZGnvs8qAuLkY6WlX1})5Mll5UNqA`V@x{RLC$)k!fn8@Aken#A ziX}n=Do0n(p$thP6LgsgBKGYch2zJum8dJeZR1;QkY5t)!K+>8b=yY}*o38>dL=g6 zT^>U&wL`uQFhypQ^~omDc8F~jLUClRE!20h%_4DT?T-0e>tXN(@?x!o#!YHupB;|eCo5~H-TwLwjLvE*YI3KNV}wOwbB z5D;<8doHPCS2p+HTd)8VSb;r~^G2`-eU}?fTsh;vFzKT2 zoT7R5-s+RVI$_Z0Cg<5rM#?z!k^FTYKReq4SR+evGaDdk&4b}PSc$2| z>v-dscpo2C$?WsjChkA((1xxJDuxRtx6jA9}Ih-yH$wxu(88DOBS4gy9z25GmO|_zoHO#6;V5a-hz02^3QS@RlWc)9h2FCUk8< z9=W!#pK@^8kZBaI*1rM>XT^k|Xb}`=2BS^W!;!h%Mk&jK67Nj-zc0A0Df`m$m18BeK9E)tC43rPO#I zZ#uH-ZQO+y(LuI#+TWEoF_pGAk`)Zj6(DubCct|q+OrornW1A#jhy$){0cb|6GAFd zaH2<{%K9SY_|7mqyzjDOBUu#D&)aE{eXlynN~^9@MM)cs-}Syrct|kL!D`#~(-h#8}s1p9s0%$czY+`q+*w(91M(>nP%p0Y8JlCjgO)e zMJH*Xi@lYhV&Sh`CQs$+*UQaL=e@3Ob2QLC467Q1}X( z0@(yQ!WDr|B2&;wWC}V)#^c2mG^M)4W@*>usM8S zBR+P(rw;g%)(*TdlH3L7X%gu((#J=pVI-S5@HG9x-y;wQ4v;vx5#9lxU9MvYl zCCUZ_QVMsXA+jQGVOoZmv=XU;gsrs=n$bNPm>@6V^9S-Js@;q#Xq={@JB1jZXp&aDGZ}pXM#}9`=uX zaT_1PjW`_H)BX~S&j;w(L{6{5Se&O<*>$Fs1ydeh_1?)j2*m^zvzpKn@zvhTrR+nUerGVcY32jayk@h4sw5pgGpY$1`7}4f0`9><{V7NBB~^ zIx4sBH2e~d@k31ZAJ5oG`R z{OFMpNEmwQ%Ic~03M73co;Mo0mBx$|!l3*7=<5BUgK9IyEV_aYjxJgXYAE`c>eOA} zljF#jih6-k#}#3apfwkkEcs^F$x8honCK?9#PzK7j?_Pna5?F9%XEX!KtOh>T`LyC zM;TK87_K-ffzh~qf;V_&VUwCU4M)C*5&CMI5sbAYxB3uRfvhDw8_iwVb#lkT?N`oT zcjdLU+3AL$uqk-pYfT3aw9HKKe|1g$?H-=Imzxt^m;8~U=3_9q!_ zUK)lSr- z*MRQ#i!SJYEEtnm}`dngqxVjAQwWDy!j+SOV4+7fO;Jn%*L}O;^ zu;arqs4eC3YWqM1%KQJZ_abX-m~k% z5{5a}_em(_nw$yHu<-pFk!{ea7{7c1d9Rn(@|tT@gBwBHiM}Df`hEl6?FG%|*^+RJ ze48NOir;BJz7$-57K33<^sOw004)Z?oamM;h5#)F!<4a9Dhm9j1YM6`Y+7-m%;%g^ z#nfp!pg!G(DFEOy$u``--R!G$#<3+9u~EUstnpCVb)yX z>>(?ym>#>njAQ|p-0lUOx+y%?ylpz&T}nl-jT(}h62uqwQfT8oQS`? zc$ZJ?@tVTXJ$;peSiPvZ^6*S*xR#jnU#tZWf0C5wWlj)cwUo|RQm{f$UA zr?z7oz=d6SFqhiTO?xFsrz;N@h4W)%!hG);6IE}AY%Nf&r;9U4k9AUXp_tnW3CR6I zP9y@CvI#DN5^*%Z@jyk;3wY9m@JX}7CruTfw1EY+CAcB|F!a+~tivb|R8zjib55gE zzmar(6fOJ~vMkftuj*qF!Y!PWXz^l5|W-D$kz>?x%@c zyR_`oFNK@8OM9FpmvS5hcO7tLQB(gE+uUmL(tf!@;#ru79N7$)E~WZ8^i|n$p z{a?w)Wyr^6aHHK*+bW~M_1NZinYu$f8nd=X;dX1>VRTM^9&Wh{8=-@k?Ay4hw=i-P zc`OP?M;VTaR%3)K)OMLQTsQS;I~E+AdY4lxUg^|JS5kNKvRC2hBKs>)4~I8nwWNY` zMVF%am%Lpex{{YWdi*^q2Urj2_d=vHmH*C72XSPm7a0K|vS!r2Be2*6+(umpf52|)6brRQepx$X4a zc6x3*y?ky1`1_3EZ)DV+!4VM*q+v9!@S!;y&*?Fo3akib4OH1}hbqrmsFqhpI`HDs zk&ahaST-GRumg&8yd`Z=P3LsvNB6MAJ6K$~T9!@7KMlfu(y5O^|5Z=mGr7tgGUYrr z$rNzBD=){p@;J+|$gNHOT=gWMI|jV4eXEtRQ5na;Vm=*=nr1%4(j_7f61lpl2~u^v2Oz`&zsm@9mOkgy+K$ciRmqYUCP8; zf_%_EYPy%XwaYeLsp($k*70uh%XWZ&q_0?{pT{<7P}}SiFq47_3OXx))~}UhX*XhWoWlo6ly` zH1oqwA-D$o7|Q0(0ii6dKek`TP5(`C(=Tlb_lKXsG7+A{hdO4WRvm1T$Mt3hB0u7q z2={bL-@WifkmNB%Sat+$1u^ud@qlkqibZ^>nQ;c&Xxqxe^H3qdlb9vQIbAfg!*pW(_?#r%% zuc*yzbZV<^SbH!UK)argZH~6z1BH2l(kxu=7Upo{%2+S%@Vm6gdWiRWseWmZ^$_oa zrNK*!tcQ4CQd)9pk@Zlv@go`Wp8c%F(o*bt$M>+&gCS7^Au*pCn7~90EX{gK>OI9kl}4Dme7JbkP;X<> z@OnAQI)zIG$Y4V`t}4|x_m=9DH>0;Sh|)d14p*B`)cDnWTM45ZlY|tkqA_Jbtrn)M z^l=7NgDzD4ssDuv!2KpyDi=+?mp3nt^}{I{)D7>e-(+cJWe8HX0uA?<8V6deLFijX z>(Rk7`er%6s`FLo)orF@z}l+o);6GUup`vDkKmcoxsipHwQmGSi5Cjf)I6MxcXEFokBExp^m)M-!PN@${sq2Mj}D7*B`;1yNt&G5dBcdp z1dI>6RZo+&d-VL=^FZh09HXnGx((DZ&qv~8w1@D$+jiQWg*$bZ6`61Wro{z91urpU z3^9zU&+fe3$MGeU<$P&#Q=-WNQ!zW*DKim_q`}egviw+YANEn1V}zPya&AR)HuXb= z_dp>@v_*!TVvFw>@p0^Pww38Dc7v5$_Y*;1f5lh3p8ZpPY`X`)s?bBdu7eMcVcW~+GAn$xWv70aa6X#HW zjv&1Mk?;5E`ycR*ZPCBLS0Vg8KFW>bOqE!pRf4+|W&T!T4`@UuBI|H7sZonE|69i8 zXP*N9%Bv42eSYhgOeSK~ajenvdC8V#Qi#|iJCmeSs(>j(3x_2Vf= zX6r{%9|XtLht!?Y5sSk3bAybsYf}=2wJG(k!!(n%DVCeYv-h`i9LPUtQ1ifX@KJ#m z2qzLmLxiYE!xvxh`-!b#aCkkG0*j^cK8p7(xUs!fz*hesA-g@AYvaGx$tC;qB~Pqy zj%1^@HKb1)rDHxsR<7KCL*BGpP;ptH!M*76Q9qLX4w@H7{NZx^VR%|jp5(|KwP(D9 z1W90eg?X8>kQv-&&-}4(%XuLuk_d~?d6NjD*5$@N<{Qom9@hhfSWJHz1{NO~!@k9u z2w;EOr2_Bj%Y9j7My0`8Q19-KwlN_FGwf>ND*6;z#_3C(~LG09T058mtd`|{j!#Oxh%D{^ad*bmFphu&)Q zJ5Q9RpDnugAt|xXtWKHCN1An?`_lz*pyV7F^iu#1wXtQ(|pst#oDTS zef4-LPUnQ3Lw-Rk5!?mNIOdW=p_5DC2pESv)rnm-uP=ibs~wAtdBE3z(OvN?Ch>4i z)Z+7`sD1Asvp3hN*w~COhLHFI>%>Rw{GV1h9EDzDrhR|4bYd{MBpQcp=`U~yhDyV{ zaKUwYWYJly!Q)G+xT&*&8-9cbJ6VbD`UBXCqYn2_-SlDsElW4$lTlI-`)AmMiYj|> zJw2`XPOgls^G_vL+vOmDcD1PB+{mKsti-TmZtg?_i(CDN5F&?<9^^~<@X@c^0S~kT zegl9>3-(t2oQMRqPx~xDzN+p1Zviwd_Y<=2mz;>{T(SjfG6Q$e`dP%6=@u~*PNF}G zB1jx9{Sq4D(T^z;o5$A@gS1`F!{vYzF@KN6*AnrW4?j1mSws89Y{dQ7Uw{eQf4z_I z#Qh3z*>*v%NT8$N$)2MGboynIl87i|NP(g?#sX_f)-MyG9e$Zej)z^Pc!apVg9B98PY+;9Oqp>VfcTam}H*J%hh<6H|Zqq-|Fdm6mN_o&`5;vv51N!*tcIHLIs z(LUhg2fBcnxCet(O40I@ zKBwig$MWfm4-M(3$*=`XFb`;L$dErBmhpvs4cf=EJn2nR+kZz5%ZwM|HOSQXI9Mo& zvF}Tn@Xrw#Z{ItJtsuI+aCPIh{s?**E}E$jsoPQ+-CjW{zz9P)1Sq=9k(5HuaRkLmZY0oVe-^dSQ$B0tzO z!5bL_$F2oh92C9i=O#QwrV;}?BS}GyBJu@C5tXJTxaJ^qm6UdeGMelwcZyYmLa_sa zjW{MSS9jnb>Fat9i|x+B9a^o3gJ0Nw*<#r2{;*CCFtyGD9 zD4k|#v2>1!ODA8SbOu&9`R??+JW`gUkRh_Z;JOOhwd!ihpjfOJtsYS`|s8kNTleXduc zAF@${>v~MBIBgIUUkGvetom*?srZy83l=^O_-HHKeL5M5Q!uP>V8;I6v5@^?SnJrv zngtJw;Uka+rO;3h=r~PRlNu?v(@icl<>)8nSZ?^L>oh~4S;#%RYk5M#q+OPjaA(-+ zbw*k8P@P%>I+K)X(J2(w4)m}|kCRQSk4?6)Vkz>`M4GDql*c%_^-^Cihtk67d-G{f ztDuZ=4P{A;=Bo*jkxshIjJj)Y+kDt4#>g{vd1pcM%qwBdeG$3bmMt{**+2H3lD2~i zgXUGW$@+580u*+Ww&SUWj1w$^lDijN%w20m_ks&J1yX5#ht*`iP9xU(6H>s84j<invgu4n&`M%?viDlrtiQ**TvH4sLhLcNmfVW*R4(;c{TEq zt!s}~ttB@`Ugnk#Ob?OKR8>DYOH&=I?5>7(p_;M_{;H2=33f9GX5Ph@J8{1*<2!O? z`<1Vzz|8qAQ9N<5rX`5E2(6efdu-YcxdCFy6s8^Z8+;VNEh&0Trx(k`l8aKY6M z_B^Xrxb+yLuzmD%4C7~S44Xd6)yf=Z7J!W%ymnbkQ&{sIP5y$WR093rIGn7XPhj{d zSQcGwqt>u9BID&E_Kn($CDw8asOF4=Fvfi}f>!}a$y%rDlgrxK<~mXtY+{1Wao4vywYx1oyL&{*%V4vHuL?6^yM3$4F`5d1KY zAlI$G@!g3C()rh23Lrdnsog)iLjO*vD-%bpKjU5c7-%cy&xr^MUkwAK1ESFbNiqTzE1l~e*sZ5m%Cc$a(gft3&b)eWn~)IT?np_GK`2b zjiw|eKlpz`BN5A!Lw!;$$UF!KXbh^)(76HOye>yT#tS}SdjEua#pkyZQPA-rxzxYl29@lDfoA{J*%FXoj!M&)kMa7S-Bga~s& zJD+7uQdn+marfci;ALIoh}1t>a`#3}-IfS`t&YX*sO2`)Yny|MEK zPCb~=a`)s;am|P5(k0BN7E%t%i_XXb$rNP{PWdn^GwwJ9MDhS@D#lez!gHKi9syUe zr!ouLDllrs_+nHMzJMAZn5UT(VY6);6>X=H6IoZ9=TTM6U2df7$|MZ(=;ii#R9rN5 zEO=9n*s~yiPOySmM;|9RNM+;8JyL8tHHHHpUF4ZKnAAFMITnEbv9)Wg=N_zCoFLrN#x&{$dpaGc8Sez zr;ygV38caj)kp?2B~esJW>E})4lJ3^157@pHgIy4MZrC1s1%#d)~cWpr|x0T9^#R9 z(vFKAcOW+;DPg3u&d- z@EE8~;}(ion?~TI+eYGO+Zdlo5g!}*+_SMZbiKBTJxpbw)sKg18qaQ9=IkSeS>{}b z_kuK!Jvc=;)mxN3K&$daxD~H8XTeHQG8WX)R+~1jhy~GJiKh#qN1K*(m1#*GZAx2` z&OnPvV9%9A(Kb{aJE0-HhBZpY9vHCGy9dcmH-L?%vT8aZdog}QV&gbz#V5|iz$E-O zj_i*=#fd1Kx_W7fJ>e{ps3P}>@2H0Iu!Axdg@VFYvJDw%RRE#aM53X}j~#6pjA>RS zj+sg~Sa1lwfDO|o z8t%?J8K^N617yNPY%NZI)Y2bA{HV2-%42J5Z}VKnr}Cql-Rg=rXu_B98L`}?vEvIe z#s?ZZabTOBd!nuhA!)l)wuuC3*Qk?Xo1}bcoA@HOi7(bRxpL8;v1{qLViSpJY@$Sh zO~euh?V&4sWpvCgS&o=v7_u>WkrU&D0DsK^$hZhBBBn~!NN6mgfJPQ=ofb)H9o2gV zbzIsw-H}+1(&sVpR2mhLGcFc<3~89t8Sl4gy;Lj=`wwKLw)G&mxFWX@KMU4gafm!H zyd?!G%+yv-04RkoEFuDP96W_uGZrO?&zm-}2topj4P_^yPT2&k%{vJEs9d!cvQR{> zd=a_w1?9 zWkgAEG0lZmMESv}G&o61R_e5rHA+@L^q1v(^t&Mo)r8vWC5WA9envq=KcEcg$14UE zDY%LzQN#v=G;;CQ>1F5gj?u#~O@#qHE#<`C&g@5kC1z7W#+<%X;t~hbZ!eP%QZ5E> zlXtOSl9r@msA4sZyd$+zO|73zy%bwR#w3SB8xeYmbZqGwDPDaDVqC&rm^os;$+O+DT>-xkZ59NaCPWCT22F|Oi%~4 zhOigmhOYt}QfBBW$)7Aq33pDELXmvD1{gQOX4K128n(V83+LES>MPIV4#NkX`R+@C z`r3kelc3(Vpq?bC2SG+r(1X&-!jw2xlgTZ!e&Qr^MD^Af5bRV@Yd?ONt*86)J>u^$ zHf_Eu=^>?8?njddTH}_t1NH#`@=Et_nTn33c)VQJ?F}Eb*8YrNYdsDR)7^Ygb`>9! z`%c7UG0A@Lh(Rjp~`k7v`M2I0`HUcDT|IdIf z%i2E~PObf?`|}La{``HAP`W>l=0g5D?^dErnSVdG5#w^UyGGDm*YJrw-MNO(avMJ$ zqLKoPq~sz>AGx8-O_AfUvVI2B$c>8EfQA%AQKKQI;71qWZ(5PYA_k0l0udZXa2!n} zm;pHuk`Mt6DQI3!QfuhsuVZro^U2KxqCui}CMkWe*ok5W@R})$%{VcF;+dYgm32O~ zreez62upRspi6PuHI>A-Jbl7ve9O}{e9E`Hi%wGFTi*5N^DXb?mrTPgB^=3n`9ZwV zx4ehV^e%nNdwExV%e%Q7jqbn%uSVA3j$UimlzbTfpKH<|hx0>Lwz($yFl(!-8 zQ<)i_07gkhzT71>vTkZ&)ziT*wohU7TbI#qRlQ@ShrbBj&>EN69RK2Ii!n$m)gW>4 zK<1Krzz0)7i!Jy7CoUl{`n@d?ifzUpPjoXDW)dhmyt2LTh0gXOWcwbncj z;nRxx(DcV){7{CRh*ie&6{8;^7%Wa16Y~W!;sayibCFZDWq$5!sGr}2KAJ>uI^M?? z7mR#n@V}T6_6=FGL+7B8$F};Bg$%`^8SdGet0OPC(PIw&nBYX5p-|0*bEDUSuI$uh ztsn10&wwv-W^LjOlUNVd3&kji7AQu|t~T*#2IX$^1^*iG{zk~iqS7?Z9uy%#&c=)T z3*4|#khVEH&y?P8!V1=P%uk`SE5nK?V}8+N4s`e;V}8DL9rLH-%9x*+X3Q^<(qn!* zf9gb1Ya$l9j7|9>V^h8$T?S)pidB*4XgTF`>mX0l=fio!RD3(8H#91uN?5tb(lEpJ zuR}&|E*T@UiaHT9A$;&f_}~lpV6Yh@hv$J4_!YEsvRtF#7}*YpQctw!xJ z)a-y*D0U2p*=HVxjeHAqlKz=lC=;hBk6Iv^ktdpaCZi!UT7RV2!~`LJ!k5)!(>_vO zwbk%Fm&h`BKJtj30PRTlJiZI@+L50?W{rOAlP0MVBCTmmDZmjC#F8dV$OyowI}Cy} zBwAfb9Sk;LTk3r91t6|2V z;d3Em-NTa}g9=#myAQ?1KX)AFjAo1*VP!n#<({TNxyDK-N;d|4mlM7A6tBm##%w;c zb-Cf{GSK>^P+WQEA2r|-LOC7p=vqm4za z)%UJ#r1CEaIz6EJyt~E{JhO~XhL}g_OJ9o9O0vW}knK-ch%sfgV|H2QG;kTeJZEi{EJ)y4HIW z`<|FobVt^$z`mtQqsXQK4mv6Yb%XPu&I#-XdhZc_xHP-_>mVr?o~5EMhLMG3VA~5t ztQ&+G?2(-OrSj2bKmE~=hU}+*B45&@@}t@T>)HWN06_FA-6tnOty`CYFOJK1GX!TE zb_g!%MGEO0f)kz$!4oVy1SbULtpQ@uk|B76(v%@Md5eeO(5duY#|+bP!z*C$oQU#x zEc@??uj6r^A2j1}0=tgKC7^RWE~ODs(8vqL+qtKn(2ij*$#K{#MI@~2JE#!EQ7uvI zuvaKs>mN5gOR0n5*mxHgd-W?_EH%QRxM8lnWGI64)^$e;goGk}3ZmQE@ zxiO}MaApiNu&)FYxYKj^N>Y-3yHcIHeeE%rWOE|&JaM)PC@$a>Vc2Ud!jZ!Q$QDQz zOH_q~sM){7Tu!X;GfFcT$m3;C0^=zKnr8U@NrB)QFq5sHE8l>GN=ND?)bSAp*y$yOLPaC zg7HS87=trDW#K@TO@^sIxOWl5)(m1@5url{)#wk@Y+fl;8e>wbhETyIhQjvou3}FY z^X+S&ndlBY*v>~7Q_Z8AiK2*gN4{v}t2EP+{azQzuKiQH>im4Ssso|*ibVS9-oU{s zng~gC2s>f*Q#tCYKv{{mS50`woIkIFSPok$=V0f!62_9N<_Blsf)&a0bS(C|;#*mu zqY&L>D_V6!m%JOT(tR=~BisCo7bH#sdE4$hneR@-hqgN>w*#Ki4tOd6o$U^Zvfc4= zUqV{niu*a@@BV#gc2Ztmjn`J)KS6TJfD`c@Mt!vT2kCQ=E8QA&(s5|Fj)}L?3~PkJ z4Q9DX__xt#3aj^NZa@S@D$H~xq1~bJy_|@gWAh8A7j^P4^E7w_jQ4Nm9SrB@gD91Tlgg4{W^`z@_%TMTxdr}wJ1%yrJGqV3s7ud~&q4$<9BlpBk*cf4}vv?c2z*>Yo9a@qq z^GmzHt|9D{tPE}>4DQ;~aqlJUv@C4FNr0W6g)Jj&GMnxpU0`PrwkC^r0b!5N!Y(E3 zz%1;OgdLQHeV4GGEy(cvNEg`TlYw_{7VoSsuuHQrsZ5fseNnfz$)|9id;ElHYy&;4Gh~62nb+NNDgTlw$KnsH!%ICe9SAhQ!&| z4-Twg;SftHhv9ktX&7>9r2E<;DQg@*4pY$hbGH40(h%iwXJ_1;Uzgw6jYwX~#T8#T zf*UMEGqfltZHp70gJx#DYChoCw=4;-aAr@7^Y6*|3&xeo~Xd^5&PLIz^r~Cp1rvewtu&1LG zB!3Iydyi&sK+uIOw{9>m_R*8Ct%hTI62K0c@E+XDq5T-lzsR2n3x6UZO3(IRbUmeW zPM|&9u4~n{l6E(Ky1}sV&G4Z5*A1r|%uD=Z@ZR3{OV>>Fmupy{iE|s+RYW()2%`9& zj@)C3{26@YThn}C@6=ln+ByRt*>Z>k1bTV#nfq<&pOHfF)>R}IF+QAs!Z(T#l<(QU zu&;PGWC+(FCPY5{*^gNMlDq_$T9_;TgDHl%FFr%|+}XF0yY=Kw%LMzh~5%3^0;xz9@Xf_(yHFeQrdzFlOc^8?z4eSp&`U$1o* zD8&*z)28L*tRGgxhe32(21Rrw$(KTz4o>*wRPKZYb6`k?&t)jWW*E4P1LGop zah{(^ri>gnTAot%EmB}sj*K+><$2|JwxyHy`9+``{w%IP`P?Wtp)B*d(1&H~Se8zd zLho8un`|0x4rWFE-1F~+f;bU_W-vKG`_f_fVL_Efj( zW^8NS*?SNFjWOzKXawKhx`l}cytH+A*ns@#UI7o@M_3u1LS!nZK!DRjL2C^b2 zW@Aql%=;mr$@O@9CY*a8$rk-p6eh4ooyUjAlk?>8yv7sd7Af{aM7hsTCyAe&N7pqd z#_2eBzPB=}iCDiCaBT2shswbNeHYw;Cx+PVej@%q;U$9W#Y>ULzZ!X~r0fOcrnp{W zPIa$27=Fmt%RDkVYQ4|^@rW_IbUD1?1)Msnu3(2Lz@Inmn%mnv+~P1c2G}}4ZjI?;o3b;O6C+|pAFnN zy8xXfCwEhB>>--a>|Z}BHQFEf11j_)WzQ~6>;>C`v^|53@H=gUEA9JtQ1^`eDx)V` zpYnMh5B7p3h5^&MONdgOne#IiLna&xtFgOBd9e&@8`{x@)wDS~gWG)4`ZZD3@s(3UycX4c&YY12Uzw94|RG(7d1ySnJ& z1=)EJaN|p&yWNZT(Yvj4*@|Rj{sEgOS8PsN=KDAi@h5P&qPC;4kSz+oyR;~Gm=;BC z<^Oq`lG2G!TK+m^&UI;NyF}()n-Q_kusIeF9!Fg?BXbj2mS$tJ>LCaZO@`=UXW8d- z6~yHqW~uW7!NX$pX`lB~aMI^{79@k7>A&;gwVusKpV#^~JhSalM8vlABBHm$Bx;tg zh}4OfPx_6zsa_Z(U(^}?ss3_@>nZ2uVxLUvcpcMyOIurnl+Zd;qjZhq)uw!Q8&I3R zi;|ede%tbe`Px(wCzllb(-`b%XGus?S(pS48gLy(WWc*$_@^NWFKP!IxnD!V-QX_} zv>QBvUpQoWh$%qe@wwQ3dxT5d1FNW^6i~8OGkO$){Li*k(OZ zt6)W9$SJzhbKA}XySRH1i#;p7IyNqdX&9cmr!e8vSI9ycHapyc0TtyO*QuH$jr_Ud zdrR)at#87%yrFaXJ1D<({?<3b;SZJ+g)iDS>ModAh;chVUBly?1pzrQockg-#{|x#9ppO8(&!8^=x7TU^r8*Y)J?A@YaaD^T6Q16uHR=#A>1ms`j{ z{IRa5Ls{Ojt&#Flb)#DFvRrTK0S>dJT$6sHXk1W0A{yo1H0P93apW5Z1`Ux)Q9>PT8MYwt3R)uFulVEn!njj3`!n6#!JyB-#Lj&9 z6$|XH`1<6c=H^MP4*iHlAfo0gGy7%e` z5c{cWAPzg=BzhDvjw`=BO;38%u_2VBBhd0*x!|=lkD@y8@e!Rl%-f(U)yz(6o2F)71hJcq~nO(!5Wm|-ka{xM9rk@IsJow{_O>9i*L z{;PVd?`UOz8-KaAFocHT8q5cv{Y^oWD&TF~xfr5&90F@o1D>m&=ipOexXNA;E5B2VnlB*2!%RyM`Y>xjbwyP6h|EQzk z)3Q*1e5B7$aS4o#e$>n91e!$`dyM#}9lrrr)CC+#rh#@2x!r0T#`={m4dm459kY`tZ!v;h? zj?Fb>*_B@fVcnS=yYeeF#n{VaE<@>rD?vfy%PX!3mpD>kNWwsAPuxUr>s~Mj)=&r+ z0S95JHm!~}i}u0>g72*Tk|<(JSpR>R%KN+1d4GJ8_oV(at{d@JGs^leh9a*2ygQqJ zj$%pvf??3w#4>P`K3h%mz@F*8gSG~N=@xTDo;|T8LJLz2lBao)v-wj3wrqdMag(uc z?@8zH&~Eu-TsPwHqvubs+VYp4TY@Dili`i2+$DY8);1)9>T|JXSIQ{q7c(%y?W{K% z%jWS%sWQZRRniizOY+EmgUB*sTvvYAKu?*HE5CAPCe~9sR&oTB?bG9sAH@%D#&KsU zPfz-#LKia>ry@BqL)chkn&$1yUbcJ$B>I>1vus=TQlg72;xSlcVcK5ZnabT0$vllBF| z#6U08vLSb`0deH+wS44Tuj2!`d%Yyt#v4)Fd1JhG7>TsQl%Un~yHaKUfppnFBPsjD zPBUFM;%{uHnXDV}H@4GE)s6TopjiLoalKMdJ1sH!y2;Tf@-DVHUe|mtU$~2k5fEhT+nS@&seiM64dTzvD+GD2f%I|#kn3#z@ zCVpa%^U0V4{nu@Gp`RI?Cy8io^gV0m3h`V>DSU0ERQw2 zPn#cmxw=U%a_Te&l=5=e}Tkz2?N5*Z3kw!a=1lwUGuCQcX zlxZYqF;qPs-+O6$Sb*qBWI9A))DEs@*B<~yvukv=?@b(ynxb{p|P>Si5(yxyf%YRclJe0 z&d~&BSw@n!m&47UxsPDZ48HcUC#JmZ9l&;K^1xiuH_%wuCTqgG7=* z`TDtOJnun0a8N`k@djJ43kS0pM>@d?aIT5v#YN2xAfz}#q7YtJ#?9s7_40dz{N5

B^^C1e~aP1f&!zw;(m~e8GI|R6uvR^-SMr==EYCTO-RIT z=+9De`|q^e-fHucmK)=`5r5Svb6h%~+yslp)d^y`rR|~@yd6o{0nC*Y1ca8gfeNLb z+qrHhyb7^6xA;yx#rk4ykuchz)LdXZZ}(22oTY1Fsyp|lWbpB{40Z@vp_}vv8P|>Y zyT@Z4BFk8ZFX7doYQ{R5epW5GGD&YO6$pPxKOsA2NcstARNe)$=xbfYN51uLJfyFc zjO~cfZlj6a4wI;{Zu~qYmrtbS@}7jxxNVA%0P)7TfRpQu+F1I$s}1@@320 zjTqOF-^5mkVsx<;#8v)-{{pRco?!|s&zb)J)!lejpyl}&DV{%-=J_L?JUbENy7K$z zJQKH_=j?pL=aEF)e8YRmG3#YKw~XfE6Tk~Th9BtS`!q`^-*h=hv^JPx(gv8}EJ>aYjq5$rbtC?&zM^N(WL^1H5PJ4Z)sB5G5670C)*}$t$E!XM$QEr%7HQ+kIrx6%_fj_#4u&8R(1Tt#g_f>)jDH53nieJj85ErL}Coj%D>X`2t-`UJuur%&>cZ+!|6;HBk2g!ViW zyB#J`!JilJkCip|+n}Vh1)r8E2v5^iAoCRWb#3|mZ#R4eb}jGE0w4MKj7Doqhk@<< zDkk}j=NNPk!Cl}OGSKyT3d_jK?1cFoXmKYDpLQpV_9>HjCx*4pJ7xM|1Hs))Ma#3J zOg@k3$jcY_$hW?TM_ZW?p*=suZih)!(V33=@g)-XTGvXf_C7HK+i58#>+)f$LR?ps zu63U`cvgK)rTHyb0NvBm=Z$b*&hpbN0NMC56NDms#nA59?{uHaJ*^*%)6R#DpPYYS zCy6={&)eEIxAj$~nQwi~B>iFxsnk_4(l7%sW?(%vhrmOy#5_v&i^|19#6XW2uZet?Zd<+6FfqKzU&=*iRDzZtHds0JGojq{EQ*@(?u8 zcI6I9DQ{#+);ZnQcSs63`)(&K2DQ@?G~sh42>n{x`dgCTXvA<|ez_(<3cmbi`TW(50A;UvEptwh1pDB-&y!Wr zW)uVRvhk+*x)|U$|C2I#R}3gLKTg1BVnDI^O#;4a0T9~v!9O+T2lC9fekf1B^&@!} zT6fB`*t!c(X{*wx-qDD#+UwDV zF9>0L%jd(WFJ;-b;|zDj85C(jUP5Q2ryYrO+HmxOpHyO9a0WW*I7y#h^4_`+jBA%e z@~L}Qe+#{H+QZ#&9dZ_8I9x8{ric(mwEPn0_(YsXA(?_C=juZ^lhf#aI0?*&TMYd( zk=O3@CG+V-Cg)E?aOX+sM$wD2j7({G7oTCfx9<27cW8Cl9XV<;?~bfOUw9@78(Oop z`Bi)lNk*DK#cRq#ie}Q4Fm;7?*tX?(FSp z9*mg9*%t$LVF`@!d=UROZ_f4l_|z}`r4E%1z!~X@na;u&%>y4u!PEU>>c(tb$2$5| zzn}(stzY7ya!cD>g=YI3jKI33^S5NzjQiZyuY{H^b>FW9vvG;gZgUlp{j_(27Us$6 zL$UQIlB%`-%!hPm@}m?M`a?4isP!I>D|;a4JcdyB$Iw3bmo>nPpAn;?)p?M#+}1;U zc&*>@k#GH8zSJ$^@cQZ2!~904;mIIjQa={2IK9y4_vM3ic!z#_xfg)fhoD1C-auQ^ zTdKKNmFnJArNR7FrQkQ%D~1?2CkAT4afpLD%5>#STn~=IGWBKC!yB~M{0AngHz2qE z$akDN6IjHr;0Yk$)Kw;0M)}+|NdI?ipDx*=r*u;Z2mm|ZQy{FdGW|N1oSy<}v+T2q zZyaTyn^ywtr*lo97rKHoBzw6ypFD?M zy*M2LpVe}VggpI1W##5Zfx8m2s`C_Cg>KIaxDLZDm^(7m=MY?IvYrLN72YDMOZZ$c zScU*_h7g}DG3eS)sa9jG(K`QeITZ6@&`-%*Qi5yvp5elDeY&^gPs0=027f)h%S-X# z3Ysde8V{aC(O2`uA$fCaxav!9b>++S=ytFJH(OMf;SK(@Mm4vg_ZQ5qvqgAIw>XMX z-u4&7s8!4O&j`P9f>SM4;RH-mEWmSm5f_OakMyg^V7270pYc~!;&xb8Cia0bhJ$1EVqz9MXq|-!PBwy{RReKB<-k_>{zb`ziPFBn9O8G<; zrNlI@q+-U}nd~K>Gb4B;!ndqN?*pxE}z*{C!(FDd!bln|!z3;(E_Wz4n-~g7kG@rW&`nR9ti{^6t2;6p!=eA$tXSK6<8NiAA@%C z7gpi3tyc5)6=I0q@=7aOysS;D1Ik!!N&;7mJcU<48AEd~*|KU8zbt|EGYuEOp5pkV zA)2ysid4g`v~uAMoJ9zgqNtC!_5&%z-mv5{oS{iqmKWyG`+yS1a359nU@ap5#vi`x8@^X@0 z_`)><_`=mA-rTZt#F^me-wCd7#@z%6!Sy8cxwtpNaMj7^pBXl2!f=TRflCpFdr?Lo zWY`iDHiR$$hY&V|u)7&HWWtsr48SD_TZ*u28Mf4f?Ts)12NAY6!nQMPZxgl*VF1=~ zmjXB&4jfKbvHxM$XGVd&{dwD2FP7sKANY@oKFVVT+gT+>al2`5JN3Ky0TfJdJN>@V zmfE)Dvy6v7>7H-@D?+yMr}--QL=twSUZ@`^33v+wu0@RYfOj*1eVX=wkIxtI)%gO( zXPoY79K(QY8lo%7xJbBn!htIK0~|W(kV5SW^NevY4#ocsd!x#NiW{h#g#oDSEkF)2 z!(GlqgC6?yxsdw<>`~IgktQ@;j6^n6>ew&BH>vTxG@;v^;_YD_AV=(=eT5-3udsyX z%{;}BhJ%b!s)bAN+#l7o>Xm2<@UyBX`E0lV^yf=8+~mS=G{E z_q-fAjNciyPK6q-WDjs7`&@qszqo3|$3-LORtvbMofnOqBNvU}E)x*KT_!~&xaKw; z$HwDZcwfTN+g%Pu=9zx5bZ9AKH}_M>igmUw;=rD<`VN2l-=I;6hW;I2qoSApz?&-G zF1&5yk1F2(X4OanMDe->h~jk%5N+ueAo|rUKvea`ZbpYCaZ%N5fa=sQkl#PDtr8i) z$@{4=K$%{BUb^od`dO*&yW4sMnMHpcHI==045K_p1b}Hy6n{zyTMom54WL`r-Z?v6 zHUBD{kjk-rO!(D8%8C1zh|V0~kT`RS2Fb!q7Oy;7oiWvn1dL zXXC>NBo+{_vlsFZv%VQpko}S!xW88j%FT;JLoG~^bRr5(AVb=N)q4|}P3am{>6J>p z*gdNH@K?((c9E(+yoK`P_8o>nT(2m!#{|rFn!y;N#oaH~({x{-T9xYSQ@gtM^}XCl z&|kE2EHB7v1}BX1=xNjou8+g>UU6=E8eSHP(*;~*KYVVb2!EzMwaK6OJ&lD07oiom zm<_@acDCK`i0g$Y?vM;CMRB*$8c=yvs#IX=@)8$6k5!3FwVKs}$EwKSk22%@yY?}t z_lY5gpE5t#2)&R!GO2THqVp+xE#L4DD@I%MekElp{nwagnZun86-Zgsp~uDDMfgyK zHN$3TV2rOy(*f2Onk+`Uk z^-Nq?{XtCLF#qobuYXC~uhWpwp4hJnbP9&6hmU-#%t!Dn#5Fbw4h8+IiZoC~+NYu^ zSvUMUnqJ9WtH?M`#D@_}t3*)5-@1CfEd=L)Caq5|fTpb<0MGnGKQP#gV3&Kg>+*_v z;7Oh&JQ5})1)U-ID-y>|u5l{xU&h36$pTl5P-7XH>dDEJyZDIp*q^&+J1W>e<2=C-EhTE7choG0dICpi69(ldSnl zp9E8ci0S}F_e5jP#2DdJEQ$Ext>9kgSJL?uk`h1e3rjwOi^&w}#(g3y^Fc`xags@KE#vm@ zwC_Sja)k%Q&F4;m?8vWI!vX$tA-3jwC_7oUMZMKK$3I5Ue&GB+D~J3r}0(m3$}UGlvyQ#R0*y}<$^$0M57Faa>YOWOmMnSdcYS1bjs)u8oPwk2cb z0D6ojG6QGzhhFen1VZQ)ucxs;ni9$Y1Erz{z@ZE54`Kcood3+}1-yl+J9ZXI zCaX4|hac0KPx3+;9!fiu5!zTp>5r9Zzxd_{>C97@sxO}Ci^d;|STGugZ*d&*mnjTW zNCGDpLUY^IIPtMouu1F8G~wru{2szj$&EYQvM7iH0d)buWqvE z#Du5&P*X_f?~uK#>Bv1LVre-Nb_+A&V5AqF3`mx}oI+{3QgEk!)KPb(KB{dy+^Cg~ z)o6!?)>}K|4WfRn#Aow7!lZtoHjE%!j@b(|ig(fTG0^!(TF+~(<;07K?S>aZTwQg0 z@v_b`r*1zAz38#f>!Qz>vG@ot+x*iA2oy^_(DU;E-zE8}7(H*GC1#fDlY!<6mq_Ci ztv(+p7*x&NDeF29eu{}Nn{69kegT3ey*q?9)R`|0o2a6SVe0d>w8{WcK;-?V2 z9lzML02P%6Eqn!`s*mayn!0Ut4mK0BMRFD{H5XbBb|4Pqna`a;dAdwj&hh!pmqB%c z#aK2SZ=f!O$0D}Cf#L$O7n;Knf*5Sy0Eswb?Y-5 zC*TE>PH_2-vsrvqI&gD)Rs~K|5inhwy4RGcn_G)~lCI~j!vAX=cSSR|!M2v3D^6(3 zE{giANM+iPq$T-7!JB-D_r!MQ_o6sYUdo0^e&N%bRYUt4aT$dl0xb9rQrI>IiETip zS%$Q63!pzbMSwLz)wkMQr7(O>rQp}+&Ngp@@!Jx`)1>w@os$?as)q(R%nKW9L+3;Gct5Z$!{_{g{R z=L3t;kJBiyC+fG*VZE^ZfQWI%F|^=Q^)GE8ZJSsd?z9DaLhs$k)SlDxa?fIZGW@Lo zUlUxHk?cgwTlgkWZ85-!`0Ebf+IPZ_0K7Iis?dS(NPKp|*gwUP&EGRNcIJqOt#F{f=|R@p40&?!`1}zGs+qC*2?5{lCQSo+Te%l z&29yS);K<-4p3M3l*T|yX=rSMDh}3334^V#gnphUa)crd1#K$h*6oG3Iwa+sY==YfYvprA$i*4zr_QhIp zuVMzg)@nZTttmcGoz~z9x%;W}i-H(20DhzeFJh$GX~`Y!6h;8bo2C7DQuA5|@{w;H z#0O{}jAt8dL5vsx+JYA`((I;~_INw(wWQ{?4&fu;I+PF4K1`nZ*5P;}je_)T7}bd+ zLL~SRgOQS8M~pjrl%%9~(dzQ-^#J0m!Pn!k)R-*QuVbH-e~rDIv0eSq5ujI}-qqjY zivz%sc#i*U1#FX>!{)J^i@G1cfpt0j9)8O5Iv9Q*@6h|;I;2+F*&|S2pm)OHY8|fR zYRls$S<>XsQqlQ$F&vR~%mc z*~2^b-}kf||Kn}P{r5Z0UHzi(F1zE!UwG!nUc1lQKR>&%;_Ki3)91qZ!h`#^*6upiD%t+ z=;JS36)c=x@R!?eU-HYj&#Zso3D5n+SFiZe=D&`tIs5q6Jb2mA#PZynD^`bOg?0l+~Q zpXOoLv(jiMw8uLU02Cnm7C%9)U{h(K)ZSaUdT-NWlBcMEKl{WPQS@SY34jp7^M zARA(2|G+#m%NiGvZCsGixVp+W$|=pRaXBj$orI((Rzv@oSsBo`2+{z~LsJ&Atq`u= zpUj>*dZ03|Wpl8BmrTR^z6i~Vh9WS#UqG8##hs)v-QYIl4RB2<301hDW6O+905jDp zD_uTO@dvkqgckeMe_)mkeLh86KZB)?)zACa^OK~Y`*^@V^*|WG@S5eo=^#GAkFBqV zLcjR;m?dnLQuHR(&PqXXJdw{a4cG(jQCz5d6#euD#WlZDAz-4%6ot@I|06!^0oa72 z_D0>cSAO#zMBI@(z5p({ITD+^SNfWE%}RH z&<4e05aMzS!skCX2H73G$2JCW<$Q3K9y5VH5i=3q0%faB;u1{)!*5Z0%sAsmK%mUoMvmgizj!F|G;j|^G-*4N-9VvB6wn-jLjq{`0#26*)(lUIQy&2ib&wfWUMIPGt^jfDO4ovpxc-VX|kNIJs?B8ha`2n%n&H#eBVWwYin30QR&KGCYje@5y?s&hRslt@yt7#LD z!aUc7?u3EjOx)LEs1rVb^fYPs^L$9NBJzyOE+U_YiYI13-!x`-;gEtnV$~2rI;>qanT;r zb%WmuNs+Lxgu{mc>e-p!zt*!e$2(kDCvuo&S@zUi-tXxDE{HqwCKE%PxTYR+&I7tv z9ee|JK*AGi&7EBj2Ow~K<(Ze+Z&y&JgE%Io^2^JfyfSTE@HRltzZR#I%Y$#&n&*{4 z+?Xks>s<(P;h7{=sQdK}n9_2RdNj~_288Jhw5IvcQQhndmSSA~bO59tVWL|8fYgbL ztJV}RnKx~gu;~s7F`utMOx|@gPc@WE&&i1@s&V zgy5_c0%6LRBMa(eCwv?-08jUg1(+iJ8;VSFr+N2sUja`Q(FtZJJQjN%%YJwo9?%~* z{40wXH@zWDQV-W71REz}!d$lJN1^0~2OuGg3H2Kn#gQP6Z=rGs`U<>a92K4p5*SRW z>)Unk)=>x#!7pxb_6p&lcq?K@MR+n^!Xf_fjXPNkny;eCl~Y?`4r>CKR}UcqREBzsCE>zw;CY$Pyk?~z6WyA%svk02 z+|eY0W2uB2nd`g_LS9WC0b%Y9X=KVA#zQ{X2jG4g_5sk9RF5WD8r~natz5^JwAsao zsdJA~^?>VQx9@~6jl~LY#enGSDB%2q&Tc@N;Bh7&Y5iUgK)Zf-;<_z^m(p*#ru%2~ z`(vuU7pB#hFkzAUO%GBNb9$JI}wGb`W?DdZRoi~6Fo0fp$<68e z7jfL@8QzJP@JjqxZK|q1j$d0X#QN{G>A%6vLuu&WX8f(D5|nTvql(>Kr8=vE>@mU~ zvjw?aUpCK@hPp*+~G`?p~dQ926X|4aY9O_0w617PoXIMsH*mQ=`U(| zELzDi_UNfVSz6(nAp>la%47d4wpD!^qF~Jp?}q@!krZCPXCyQJVo2vaejr!l KS z%}~O^)v7ab`XqcV0ujNZw9D1<`0>?pcnx3^M*_N&F)NM7Rf}HubRw3+s|o6<_Ean3 zC-FLt8yk>e8kI#L=Y`JzaN=9S1dAsr8qH{bZ?)IfM%wQHx^ybWb{y8NM+KZ60Humn zOMh}<0aD|I0yE)8!nu~QAYMP4Z6fDVPn_IQ)JfE77x&uC9E+J~jt6D6uxy?@nMxS{ zZ!E@0>u#{O!aT$G^JC!A>ivSa?>M|QI1e0cr#Q7L0eTnATc6Kjs=KMq5-zsx*GPXM^cLfmcoljP?jyqr zbbY2UGq*#>gINE+zwV3hQFR$zs&#Kkl$`oVSW=z)^8@__C#+Cwu(eOh$cdPh*&4(` zZPQBi(<93mwVl9znhr{nPoDT=#n7xY$(TG8(A3GOJ5t8R6(eNqtF;jpI4! z1h2W*Gvj+Q(cKgMML&NdN_T!W-h|K&H70O3YJ4_=cc;b@uKhgB|3Ha32Shf|hV2a= zbzTMcp8}-1$+k%CvU=pJ)Lm8TqNpfZp%}N{D;2Ow^mNjZYXt|W)c))-*c8b|1tmpl zxFQwQ#r17?9D-mnk0%DT@D2>i&Sy!9zSAlvML}a)6uW2)U);|87bvqy<|_+B5A7ug>((LGr2sboKJ(bn0v3f(kqs#Js9+N-z$?=O0gFmrC2 zXQ+BfT`3^1-SoC&e2cqjQDT@<*^GzUW>4;A{4i8#Y3v91CI|_`A>2v}wD8&e92^bG zIU0Ba#toB%@)*Na{!kO!sDK+_qd5n_oI^;Bf6oQxV;leOWchTAe}^_&s1q)MVO7pB z{@nuJG#}}8d@?xS_*cR*<6n&3WqlS`CL$i{&oh~t%uAZQ#=GS({$>1R{7V7pzNqtr z6OMad0($+TbEF5IyXCRb)16eLSHZ4Xv__N5@FPuBPoY*U;@BXz^5cJ*z${`XLGU#k zN$%y)xOZm`y|QF%ysnwcW2_4ck^E6t;yE}iOfxp_qA&lBEI?oW4G*g?%MB?fA~Zc8 zLgd}fhdc`ik4+yQeLiHl=mV3UcRqxC&ZiF&7V883ExZx=8<6rNyU>U6vlD%gET{E> zfJ7h2hM5l;S!avv^6=kKX?rm_A}?Y~Mn>7Mn+ZRQdQ&QntixV^{V4YPJF6I+=EEZq zRL#%6j*~$=6l~`^PKa{V_A;g3ao@w@nD4gvmfiAQcSlA?MrC-1R-tBIdv^BrHb02G zmy`!5lH8$l&Y75mpCu>ddfWNQ>X;;MbS%}De$tNR_M|VkMI`$Vn9fB`+!rL!yWq1h z;V7p2Sxk2Bg0R-J5sXIka~gi+rc^j#8ZLdo>mj=uWcQf*f+Qc((I*;-FW_OidSptw zdT2CEh;)x8zh4T!2s}c?$0mpE2Ek5AXz$L6Nc((dBK$gIq$ViR5p3IsCL=pJ!G7M} zsP*-KK2K)aVrro#Xh%lL+=UHEO<*ej@4jiL^A!mU^ZKn1n+sYgQ7D-3 z<|8~70IA@u^SVNx11S3-i9bUgnC6_b-TT;l6BSb08PUO=D6c`*U$^yKl8i{$9F&Pj zt|o_Obkvt@ZTEsd!uoR>60JnKWoSd}f#-}>u$8@-I@8{I5pNWGZ%IhV@hvtlVww1( zD`b*iM>xli^b|XCWVTK+qH@)Bt1Sk@1 zudU=8Pim4n(vO&;_MPqlEpa<0y5Z*5KsSb<8>XYQpH7NkT=EZCy7R>k zpF93yr=W8rF9w~)R_}rvVGGAkc5xwya}IbDmz=_zcRqu9is1sZ+8W&{hB?m6zXWle zh`(H#XNFgfHlL2@dfLRZiP@Nb2fR_q>kFoo-cM;aNsxdR|$-oJ}`@jwMBtwftu z=eB}Ac+&9-bNDXH+z!Il{Mw8kk~@F(n8-(EK*PN~-$Z#VmAWc9=fTd9y>oT6W3xNi zXv=!VuNAcaPIn(_O8wwauvx%m)0|_P)4eSsm`xL2y{B;|0|srt@HrX0voS=c$W#X_ z%{Rvdg(@ro)WMat=B)@QC3`fqi5Y}Rpk|AFIcvojICo@L@|cn$%oI@^#7skiV?eq; zU+ec9d;4RU1Hey-ZU*K!5yfo+IPyG=iC46}5bB-8sa1=$xsi+ElLPJv8aI}QiZ!1{&z}1HU z)ud02M)W^O$Zx%zk7}Xy3OfVTXjrauZ7kD4cq|k&4q^}TiAxR$jR4d7PZGV!^G zEw{Jmx}?j>S=Me2wxbbLFbbmwgvbS%8eYG(7#z(q6eMln#ovW|n}ShX^@CxEp@Nui zTA^_$GM~K-9GGXxOTk0!X?RMqeO?nN)i7R45lU95J2ZQcy~V`-xOIM83q;=OfWv6~ zOf?S+#FZ5yK%=qQOjIfc;QR~YNNp}b2MwM9PlJ?JbW|*MppukWp-5gUl6dP_uAyU? z4l9mf#;aVd%wa;aD7DGB>8L_LYrY3+irYy~tE%a!CE0}h$eP8k&xn!P(U{7@2a$0` z8a@}^2-;$3h=qeo`pVM!tZjfsFq|2i2+v+=y;KxcGgV(K8gYz$8*J(_(X-elVQz&A zX2;Ss6uZ==y|Dk|FsRnfefEbFuDjljm>S~BC2bh^J$|$8N2^*xRax0VfR(++>imG1 z0##h7i8Ub5U91!(%4>?wXqOrpR2-wo{Elr;N&}O_ajL@Od)pXPXvEM~R$??v7*9_t zedrI>Jw-32(a={4rkXcZ4=PcFDnV=e{kl4S!Ezk*28)1Icy(Cm!rodxFJg{=f^*Jl zVe|5=7A6*3!;mr=Scwzu9zVboq6s?$(x2!{7c4N1HAgpK4O8#6D7fwWY0m#yDrj3RH9aNIeJ|<$@Y{^s-Q1Iq zfBwb&;Wr@&{oyy_k&pYnbHsnNzONv$Ei5ZZoWa3}^*9Ji`n66j>HCtp_I=-rs+;cn zz8P`pZ`yP{orwH&>ukOmaA+hSNoVsd1V&^;JDd9ggD@ImNmDwTw%_*wF>8)Ov9eVxeD}BTMB?<7GM5 z0DWEaE56}{eZHiqI3-beH^c~+$%6{t|dvjcJDY6!Jp|{o(!#Q?^~voa_R>rL2IOxXg(&&e&%K+X?U~!Od+Ez1t*EM zW7ee4$rptUv?RYqt`Q|B{Yw#@6H#;)k?*wgc^OL$OS>NzG6rV!{hHL;Lx<6TYqj;! z9WyGYprYM)s8wCD;@-^}Ba2c|2lpTUz;i@b;@(@| zxk>Mhic&^@O>}5Ls-K@WZbb|gPo*`^TDBPcf6c7z#;B$2nHhVFnUhIYuJh2o#Th_u zVcZV=G|JlAH_;ZNt&Xt_N$HS?b@H)=u{2})BCJ{Qz`icd0UHer$Sde17N*CrkY1_w z%wb1hLALh`bZ#7-MhvbwK*tyac5}_m(6S^&(tk87yY^*d+Zu#6Ht6*?W}}p5qh#4A zO$!^CRR9}U+%{|!A0r!Dlh6UTMpbOqiBOvqp|n0@^%{ZbzLr<$8e1{fzqDK5HMKsP zj_*o*bEjjvpT+ixcF&c42-`6yCGHT*e)Bn4`Wn3nr*5TWJF@zLZVT# zxc}at=Q;P*t(qRdB(L8e-+H}noqNynoaa2}Ioord^Bn#57vh{l4~gQi%~i8GQ1UQp z<}yVR9SgM0b#v-SGW{2IK83gPx}n~;so?R-l^Kry=Hcc3S^v1~ zmg15}Sz?V_x&Ay;egmAG9m48)S(xu~ix3uiJc2=%Ol2y=kF*m$Gff`nXc=DlyqNSv zxbplgQjS}-lq0d%GOY^}fSC zUHtuS_w$cGv5!jcJ?2(tezS%e>b+NAUHxM~d7|2TKW|t@o(NZ|=`-3iQDLMMFgNMg z`+$5WYP}EQQpd&hfU@`Xz+e4daXnBryYcgkD?a5+t6d|s{cGK$0x-!D{(G{?lRnxfcnvPHLUD4b+JcPDYH$dULy*3L1GUkBcjF<8 z%WOw^=aM;vWa1nyKjh2*g_c2^1u?@9!9Noc&vlh}c`O(0nyjS{DnLk{OqhgXvZmor~M?=sf^}6{w9RiO#TK@3i&xM17RwU z*qgFgJF`HjqV!=ZH4e+@GkF5oHmv@xW=?d}?^J)r*!{WH5Qa=IT$N-HarPS=yKNHX z_)vs_@?jCn&kcYNA@_u&kTdkcgbY;qw~j-|h&HsU$=^EU>| z+N$$To|oj?-pGO%CPYti^e`9TVN;c>9>-G5Ka9}^D?Hed#(cl#pBcR6j~*%oiVKqK z+<6&Yt%RwAA-S4H66-RGay9GtHH}@kk7QmK&?cg;Jo}P0eHA5Z`pzY5TI~z)S*}N= zt1Bc@lh-4cn5KAOCQ|#I!JFXD;M1luXqiaO`ed4}{j$3%^Zq;TeF!8NX+Ml3`W;H| zgZ*A0NY6j&Dv9X=j6en@G&Lf2ex=hryYxf$zATDw)&C=Fuhr*7ap`*jFE_va7l7KY zKbv>%Z&%2MTu0nb)6V@1gMQCqe!72g&`&eb{kK*J(rO~Qe`h@4r+Mi9ZG(QAhVI`! z=%-oee&)tST>b-VR{MW3==XTx^2f)`b68km&f)f>&2DN}=(5-H zv%+fKiYbw5HWiRZKHyiA9@rp{5jwS|cKZ4{vOk6nN86YuxCkwu^n|_?;P&Afyn>D_ zA^~MIcA$ZTp?>pgfUF%7hWR?mFVc+N>fekMUEVZ2&g~f|g1^}`fdfsA*{kOE+;k0N zS!4ZFW4(P~pjlhq>$&@e14X;9Li1hDhz-HMThY3HKM|nLc081v^_e4$97p zb8g{(DE_yw0{<85!^$1%qf&YzWw;dGq$qhIS)(a$H0}x;rW0}kyW0_q5zv-j@*E=5 zwOb)ou&U|brMu|fnMvo~xjtAm`7iOWuMNIVo^I>IaIwAlsH-Zn1?TdvEMrMcX?Kd{ zUbSp8VblufU%+hQ6tB}mU*}CAG8d6wof+&Z&%PVs}q+#MkqB7xfE)A@WIXPXG>7Y2xJr&-A37DUq$3?!d7vj^#3o zy3GYTI(ZL@q753Ww+!)`kr|n-Vd>iR#VU*HR&$N5Q|jzpMue^=my+G?{$?(tD9SBf zY7Ig20ZyOWul3;0t6J>VtUi|a^+&TgMz#)&7wfIWlfwIbC4V1}?&!OS6Ve#7zuC7( z8FhYoI0NDby#G+So#`#m>NO7?uGFurvW zM|wu8?ZYCJZfzM zl}#418Qz+qsR?-c6_StEl1o6Uy(vnbj@$bZ0Zaraf#zWPO1k(*=_iStoQ{9{0nywQ zh{@Jq7^XFQZGE;icWu3QBQc}(HV}?CW@oQy%*|cX=zVzrn&KqK0|LkjN$#e1D`PeA z!v3da_(%QwLer0vcbtCv2qW0NGlGdW@So8(yN_k{x*wqH-;gtT4*1>Ve*L|wxP4p{ zx5m>ClQSP-q!_aruX;me8Zi8kYnw8Lvn>OcdN6$z=>-vMsXvx zy{{>5SO3Z1fk!Hvso`6eI}6`6GcFA8|E-d6YctN!9N*v!`ziXc-)d=96vZ2;d-ELV zd%7y?LGjFUFrJ8UP(1S-j3;Ux6wf?0Z~seZoj_~04;eL+osbhP*1u;qv9k0;W`(X{ zoBji|gUqw=!e}*}!x{5=-R|*nyWW^1?QYh8Rt3|#T7x4ID9sSZ7UA~Bf)}+!e3|_P zU*7O7w-eGUBsq=zr?}7#Pm3y?w0SpGQ4Y3agYBvZ3Nt?=#>L4X6Hj4v`8lMu_MFW_ z60^-J=2H2KeQtjo7_vbV_x_RS)c!XumG^mCj~r|5-({i$G6x;z#XOnT|3VpTSJhMCzLIsU^zY5ZvK! zh3PpnJc=h%`Fix8rBk@l>RazzLzt|9hLZcWR|aBW@CLAj}K>1w!T{g)-OuJcznQ_rC2UMZ!%oY*lZqY zFNzt?k4R;M-R6;=-gDZlKCTqT*_CXZD)<$~E;fg(e~uTc$!Y4tF)DUcTzw_O?HAzL z_F=W;ujSTj$-Ok3U@9TAPq_5=RLD>t^(~cd$nTcSuVs{wEs~8-@%9X{d)gr zy?6EBTw*n#mz$Em1e^YJhp5k0)bDz-OU3iwvt;^juk#{UQyoaOONoBqiEQ}&A@9}( z;?f>)TTpvXkM0velZN))oi2=!B23k05?C7X&&{K~+wiSz%|eZCqfs>vXoV>U@YSZC zgxgj=QP(i(3WxMAr6<$^oeY8t2|F6&qd{#9I1TlzJRW3rdqoy`KG{+N4#Q={@?JdZ_P|M zEPW$`BHYWRj{!$>(Wt8mYtKjN5x{HDMO|f|Tqk_6LEgeMc{;Sts&Ua@lI@BxU#wFm zvlcz`d#0sQy`qnuZW8ni;H4HMYPIhgGPJqWF=66}eGabEW8zrt{R@#YxO%s#qPJHY zU$VZ-`=)*yU;Vq^j||SoR_}AxL!*r*YY;85kF{L&d05sl5k5EvGumAZY2Yw>4|6be zN>Nvhw?7B#_sPw@`=2v|=dNdLIiAujFIF zOq|}&qZ{8A{qLXq7surOIw%{zSMGIQHqHa17`H!uf1dp}qt{5ab@Dx~fjZUJ$Z<2( z=1KqV?o4}XzB*eO-M;*~?d9LMoE6+Q5 z-pBJ{9x?c*cr>ZHk>_hXpmowsxVylTkB1+(rP{jp9-C@^9PdwCln0-5gSiiPY=3MY zXPxu`bI(0V@T;v0_ncAXic|6lfh%=wD{Ap5`A{@-Z-pSJ&R*#Cdn|JuEZxnTdlZ~q z-2T5||G%{VV=hqqJ@((T|Bu`MPwoGRCoA;+`Zr$LK|x+ZKe6EoNVbMH5G4b8cLf~=w`1aCum04 zx}kT3VW|GCQhGXZ#RHu8D(|UmKXqfq3o92>Rj>j9rfMVO7_Tv}^_AeUVdX6gij#;d zg04VU*-Z%4=*r&^JuDx(%9HDWERZ{a^9!7WgPQhjHeMOZ24c4qE0hRb{oLDlvUyLR&yB$-MRUHK*=T@I1 zoSo6mbKH4i-jG(-JjIEZldfeR>pf=hb-MZb%HhX*yt+0UrQ+RIhtzAOuUBsRHOYAp z0-Y8}a=vQb>v9@=H16kjzi|6PvX^io476D*i?@NpNTXkrJcLS&I!_>aZ=Ql1%>J0l zl{k2&PgZVsJpb;G)jmHTZa@9`bmygHdx_((^`B&Hg}mTCH_hjMx->gg*~3`68l2Vq z4zlz8NbkogrK1ndvoesQ_Ih#}7WT~g^jM76F|8DNW}E2+AlD3M9wDL8U89M9{j#ox zqub0JE`Jdhj-y)9HDAcrVV1G)6g^3mLp}=6_h>zwxr2u)Yy)w8erQNrryvWV*KpHu zhz5*;JhZt~$0k450;~!0&ei&{;XC_uH`P7i`uvW(yNIg>_%MC3VXVCJc}rK(;@4-i z8}#qnh|c>zi+|<$!cBK0XvAh)79J8DxTj8^&Q#jJeWxqYan9F|)mOd}m!6u=GUktC zIpMCb#FiR|+tzbkY_{>GlSNBksU=(IInf#?r{h#pM#~ZQ!kU!xZK-2>K_HK{g-l~M*=-4rL;dQ>{6boBFc)4X8qKehF%cx4-zb-*Km z$6Zj>{YQ&-)hIa!53C?`7`jHrk{V?jUue~nC*my(k_+{MUBF6mO9M%Om8qW26B`3q z{4agAksgnG#S3Vnt~EO+rIrR*qbfPFPyVw1X)3ZFcj>@Xwey^ux0o~sT%D%rsY=Iu zZ==^)Uq;ZhTrBBjRshnet`E=Bhf%4wnbIK(+9IdYJ4R(4;FGQ*4EJG*J?v*m*<*=I z(^L`;e4w;w@R@t%`HNgRoSXuc7LX??C{7;87q{jp8jCr(M0u8Z3La`YUAacL+3nnU zo197@O+NSSGnsiAe^eHZ#h{7t2Qwg!rXPaa=EQ9kXPFyenToRv>hG`&`#uo&o3$h% zNBB<}2mY(Te*u1<|IQ>l11A1k4H*1K1w^GwO2@y?`7bK{L+R*WAIyuPn#@tZL04Tu z4FdbXk077y$SmvN@mk&e{IbC6(vN1wqvT{FwMDMWco{clorc^`;7bBVXJR&%$YTl{<|mIRp4Hf-AG@IP^ejeK-lY!CM{x7scO#_D+QBKrUosvP zY-c;}kK!E}qYuI0m9So*;=+f!D-L_%ksL&8va<_sFpks?T*of zdTYsLLDgF4DsQw(KMyY1+$J|1)PKEsjy*sdc+}m$}_PnMpsS{^gvJf?|V|YPtToM8M=a<(NpgT6_zoQoTrG> zztehqU@ae;5cjSH8jjUxmm5*?b)pW^?X`!doA6nkZmW%nekUAghqH&Y1t;b6Dd)=B zjf^!p6rS}jlPjN9*pG^2UZjYSc^i)NRw1vh0*C4BF?EN)!^!(N<3Yu9nsxpNB*r}WPUrs~!wjW^m1lhz@zQTH~dk&k7YO084!VL`>U zpLpphyd6*eS)btq$eA=w_K*|JVSDaHH>XjKjYk{hvW|lTVU6S+-gmHr;X_-)`UR{P z!n#Y}!sb-xI!9}8{vs>qBdl(%-}W&`eTLmJYH8>8a&<#;EYPFo-V~aRRL}S5oXh?u zpHVW&SZh39u{p-wjE}VTjjf|YfEgs|G>h#bb?da`MF3=Cg{iS$u#G-iH3MXN9gA8s zod?V?)!sqW{9~umrC*j{zE&TvO_vucwek9NIUMIki&4>M8Qwepfti%_WFSOcrLs+& zzNh#hDpkB1N}LSd<9t&s?Z$5xxKC7Cle?v|VG!f=JcG`LW_6a?O>uSr`+)>@OH5-~CJODZsVBQ`)~pI`H}Hsw8u zJUS1@wi6wAYFD&Z%T36Vz7GOKRU@XoSCccbbqAfwb}yQ(*Mzy<-ab*@n|wt~6Z=tn zUD>X3#HHiOLvdT+ZEHLe*^DSTaDytcvY&cQQPQqzAf|_x$MF9 z`E1QG!X=dCv8`U67txm4tnfXf)zbZM{G$GSa6bQ=waw+;Lk^=Q%=!C6dG~T_k43*s zg3I0^vh}w4y)jwxW6M-Hcc)DC_{~|!oIl~ zb+_ofrmr*NW%Uz+Mm|$rBTl*WK+51cox&@iYoo9PC!*Tw_;^_a-ac;9X`X7i>Gg)3J-@jQL`!9R>+-c2)0;-P? ze|h|YIGyX*!u0;FUWEB0gK7VRG-!6_>F!kCdg+(~%pWTOwu0r*(HNP7Tba$%4B-9m zmWTZh;MAJT@h->?-!dKQs^ItEnO{M6n|=?loewcPv9V$-;26387Z2gTi+Rpa{O=3S zq5O0B+1S@PmuZw|3vCKGLV4%0BF~&eWbaS%^j#fGFtDVLN)G~W%~iPL!FK30h9mp1 zv0HL%jc@Zj3!7)Q`lMp3&nLFJ{@T`!HoMq*xI0KfExC$*S$Gut`9BSQ#kqv* zjV@e|jz3R>XFJa^JkvaHE|p5B@htJEKRSn7;QxBr9Edf2sw%89y~`6xf{c`T;{HO&JdYIB6XRWyKoFAOaGf1 zn~Ob8}o*wexT*avUE}RM%y-* zhG^84dS&Oa7WvM_-5cT-c-+wGd{hCV>q|p^QSyE2P9tc4oGl+>oUIV+1^GBzIm9?y zxk%?}7k%8U9BSNr9D^I<<~edIy~pDW@l;nq@{0>|H%rx3Y&*0YCtvjP6nSx@s)Td{ zyqN1uA#1c>zs~yces{lqo8ABR5usb!alP|-f-7F1;Ss;TvE+Py0j_xc1RnAG8+gR? zr|^jHkK;Lr_YVuaf6E~6KaIG~`=)PE;C;1LCg&xs4#eYfk1c%XJg-KgXA{pP52r8F zNTQ)AjoqoZQT~-9GwX%m+l8W zPL|B1tK=>_--rcprS2*%hUxjoN+6kx9%yAj?s=klj*PS(Te zh#=rRu!?}QxfKe!Y;&x%Wob3pX4(2Nkt;55JC+5*E>zyj_MdK09#}_B?`D4bH$Oxw zcFwq84${`q_*&q2kAkenP{z(Sp!J?Yks>?k+PhG%>w2k5uJL1OF#gOzabt@c zb(JtSl^#Ei8uH7=40!j+4l^n}448K}TFT4T&*=<9J-d;cJD(K0aZcBQZV=aZg|Ji)#%IGrZg zmS4b|wW|SHSGAdAfEkL*w(Oy^xB8LH^=i{K>{mb^O(?o?<;|2nPW}u$R<7sOL_kiB zxN7CdPzdFy8mX%$wlI2TbLN%Xayl9>{Vx96FL(sFo^G_Y60;#HH%=cTL6a9WWgHr@ z)-}2?9k#$lZ%IC95if-OZ}ts*`+Kb3W-o!^y1)0mrPMm(;5Max@R5W0uMPPlgL?Gp z7_1w_APB1h4*zsJI3%Sb?{_c`>SI=;*($VQUs$wZ!{DsdQ9En^HM3S`$ ztMT+XV6wPAwnhTO_PL!y93l~E)L*fNvtJZVoF z=zV1lt1HhzIp*3d9}f$x;V`vg($D)?%|VV|$s}y_gHHn(WB7_?G|&%q6(kr1T)SDk zg8rSwQ@5k|arzMY&dB1$$(bfCa9YfR!#!wkoY(U~pY5-Qs-N|Za)h3pC1_-AoQaVA z9B0W6&n)8H5n`gRXn9Xy#=e6#!Zt+JHAkw+4Z!9MjZTcSjgp z^M`G%*-i0oti_z8dkfDIMo#}@Nu#rEWjhtXX4lf;RZmLU7bn@x)@gxlwMy8q@p_KT zp45-YtD~(s!F(Zu27|NML~U>exczW6U;YZj3*lN%3fCyP+LpvY;dBk&dbY-%pY?(L z@h!QVFxMGe))l3DiAGTI+?|h4S?lT}{d-=MPbuuRB#ndbo3s-3_qf&UJPv?kwXWc$ZzhQS)uS8f4)DcwB!Be(hMsc(eVy{lG%QejYbr{ zr(!R>oniC$a_1sZEsA3=<~>y8^8S4gC4B<#wb^?5Ou1>7|M7*#l+(xaf|`hf`X*#S zS48{0;b3SuNn4&t&n03MH`15jruR{*sxC=b{? zHP(&;Ww9!L6=g}EXeq=aD=&c0yqLB0V!UUP&nn&Jurmh6Ypt2|5`4MnaaTXh+ioY# z2uZkB)5&>ho+j>!dD3r_dqCv1yp}s}C5FV@_p+Eh;-Eyg^Dt^k?=zhr!c@+8UN=s% z*6eaKC(ZAXG^@EW2R@U&M;V2j-phOMIe?41{%?)r2l&oRj|PCF%X2xv`vGtoOEAt1 zqn;}LA@Qe1+YPQowEdA<-0WQj&;X#hJd*>scORn=I#$5<{{7H}4ET=#9-@vfLyy2u zXINBKOWb`vd8Jp-JteQAZUS~8&BXFyp5n^$+mo5*O`ll=ApHxH27Bg!=-%-~1iv+ikk*`%QPfHQie3jZw|;gcs0F#GQLkvTAx5|H-}Vby`I| z!(MgFHoZ50u={{%mA`ajdO>kEZKgQSwZPYppn| zvfJqlY^)p{cTv4K4g%!kZl!bqqr$!E>wVlVr*DOOXt6gFtFHp%nT^%)Czu_-r-DY^ z4mV5FR;Qbr?w}x{dA*&HQm-%c+Vh2S*bs<5;FagM=6BXYJZ`#A?gvQw^w)CwM`Sf! zVJ-bOUV6_25btl-dspvW{m-xYEr%s86310%rmDYLGhK_jifXzKc7zW_V)S)u?G5Pc zHlb)g^fu;926w8`PC|fGB`n!u9@o6`xE>FKzT_FZ0Rvfm?OkFx>7OA>VTNCOEW9Lt z35^2TtzNXZ(Vq`_)2pWcLGiL!J|B~ORX?x)HqFe2q!R!a&p4MjkqI$g_`aBB#(2c% zX0h!kC@=4a`qRX6m`_3#wXtgQa$00hy_C-@vp&Z9t$znKn??4_m!OG;JiL&?Fwe$o1vYbZz`whf@5vb?!HO$r0+lUX5Y}kJv?>+C& z^bR!^r0O)qY zm1+%hvqo!satcIrEE?&%h*C3^VYP6vJgbFo`T`^*@u=L3{B9vzOFjpUdg|f4pKI?8 z{T!tqRYw(E3~SNqU{sLly64|M z4$4`RJP8=fYdJOGpC|LVEvF&3s|Wwn@t>|&8@)fI;?Z#Iy%Kk-e!?qYM3kg;E?XT+ zdtDe%uJb|%!ZLsCz0ne4-A6OJ>-6EM=o%iX>O`ulr|B&Bs`z>BYx#hE#RiLGQ}vBR zdInI%8fw5<&^XDDE`(_$rQ?KW#Q4mk{{$+Km-Q7s+I@k-^j@XBT4TLe;|4jyacl1R zj5X^h(ZElAfaHYgJF-3?>-l~x*w#qBuh81~{sZmu^W?=WPq<*Jgy^=e)K1aw-lr6&O60l;V-#lkh&4QWO>*I(m?3v4q+ zSDw$IB{v6*9ZM85n|?c?9c3ae?oCtWx@qmj1UD3LJ}eob)vk}-fM~b@Ml;1^{r~0U zsUPwgl?X><#Zf1YV=Kd%-ZT75jTTR}H5`q6IATK_bp#v>RPEx3U2#;eII2RTs29Ug ze}$uN8ArW3j^=ePfG}CZnT}Q|>bydH^g@L;_x4_r$BLWVCs#hlx@F}SEv#)b$HXnC z7Q`(tQuK1~#W-QiK*s3$xtqI!#m!`UcN?hFjE0=a< z<*<#9-W3D{@q65RsXpAUXYX>ocNN?$cOFHNeNzNl6!TIF!7bWLR2n-&(vD`3qzaIg zwNg5TIn@K|=iQe(do^`esEnYw|%)%&pZctz*CC{3h~TS{Pwnt-~7boYm{U2 zH`Be>W-qVP%M3oR&t9&!m)@J*d5auc+FRvj2dQ4Ek8|k)>_GSdTM!isCBVqFHou%shW$%bfbTCFtRfAD1GCYd3@_N^tQNO4w2<#L4 zOHXLZ(6o`$K13h4<7M%okI3e@rVpV&+^~R0`c>vst?@nSALCjZqin0CGeQ*7eeIxh z8`0alk$L5V=uc)wDp7hqxfsaS`0mkaTX%}ow%2N|MILoUkM>3*Ley39xv6nxfXBGu zbE2HA0EQzO+w1k|wKrc#2KCnX_UOR1(lI}aQEj~5AcJkufy+@$*N~`%+cd%i8H1=$ z`qiGBA4SWpt~UVFl^O2lK$BnfXqCN8%hd-*#5PZrTg_!Qy^Y{p1m|xaja@u>+l?`m zn;QbTF*#c(=m6crKpZLH%W&G2oB!oEgw7`CE0j~2zHY7D{58BY?rk@-H^OcBuiX4W z!ht2q5hRS(T#kWg$U z8L?iCdw-rAcy{Se(B_s;oN6?$;x|iB{%wou0SlZd|syFf_iq9 zyH_nOy5$w~@V>BM;{n9f$1fg{XAFe1R&HZ*l%|4URb}f#?XBpin3iT!G#AgzBu^vS zfq2USj6uLbHc)sX;=0bqNNKEDiic(RqS2^91m-M9U<{JDmr zr2Bp9lv~J1XZ8o0J0ISpYskM_<4Y|ELwk^KtvQFKMwtnyHLY(Mj9uMr{UP%sMUFAN zZU_A9TfH-O-2Rr-<8*0D+v9R;bhmd=<<>Y89y?#XlY^k1e5$gWsmvZbI6qYx=XOY~ z5k3dr4-wu_QA6A!^S81-tS`t9i%pbgw~xoISyq18@v;7B2in%*|339i(elop)wKE^ zNA&F=IwtAHxUV_J<3`g@1cjW{5jSS-L{PP{-VOxS8XJ>)(*=^O5zYwJn-rFBUx`>n z`~9;)az{TU2>Yecf0c^ z7LL4egc-}*^wHT!sd|5`*RKBK^dpwJ=1^#L*pDtrLFq>cv8aYyaek&?$4knt4>jJA zpANfO(vM|Hy3C_}ufQl#$`zMH!$!{$-$uG32` zE_Yr?OzKN!#O?A@yA9wK2jaWSh3uvXm7(`!LnZ&Pcl z>24y`40*$H>&)2v_hWWeqpoViCJ&en=QN`1Ms7zAYt5CWqhMK?Y@`nL7Z9*(qv9Ba56*=_aIvKfI*%agG{jI%gm_b9rs}{r zIfOx0iqo#wTw=_sXPV*mg!gGy5Sq&>bwpHE($sjrmZm2TZ1N6xl~U|FUGOJhw^BA< zN>ubb>ZS=lQMqBfjO^U}Bj7LD3O0_fJI61u^i+}BwWxCic@wPauBPYlVSHS)8E$PV z*bJ|gv=6!)m=opJ*!DGB%N1@DvI-sHa3+kfO@14^Ka~oZIDxe%qooGrF-~@Jv+u&1 zS-LTcI_s&Yxe@B{@XGQN#?Xq`(L9I^WIJKU6uZGBB1@tN9#El-2imkhF@OU|ROOUQ zIzDHB{~l{|ikzMXV+2*FrfbuD!MeP1J|RODq&h`iqCCbF5BoB#n1H$p1(7J%CQYIv+DP=|Q$s zUi!Ll5}c>v>U1+NNda*_^5j`eBPZ}(UM^{xd(4?`XXZ2HrOcAtQ~Hi z3Z}g)+tyx<6034!d;A!97zZ7pE6?X@;(B9G&6+6k zv=}Ks@;p-DVhFdsbgR>44=~T7-dbao-JO>Tq8Fi>oML#t1TU$j6cRo zciC|;e<;6`iSwwz{6-ft#j=p!Bf;Ag?PHz?as1kt@X?ke`MpCu(;Q3jG6fJKcDG!~|s6Q-ZX3%i;};+(Hjn6>oDlqoxO zuk?K#Fq<*Nz4u#oz^>$l;-(`!eOk0X)R}nwbn?+z|M*CHb$(nT9CNeoR`lpUNP-<( z+>NmT&^m4J5+PhcL%{6b>iMlxAA8PYn|l>q$Du91D{=pA7~bT{;T?pWyK|ck8T8Eq z(6>K=KE4S2?4G_dTxbJAVI-Q}YyMo_?9pq6iTULKJSp|1Qh=Q3lyx%Ey1nKt5s_tJ zxEJiL4}}MjuEEIl=4N{z1~O(`?`G5-tZxOWzKeBh@onw$N%DI%d@KE`;~`8qySkcw zRnzsW-a;PIulh6K=K57PYR}>$_~iOk`Y7mE`F2>>d>c&c(67>au3sf>sn-B`x_V#- z9Z6qTs&NSun@m-zdG)e)w{0LWu>vpOKV+MiubECT`At*{=4Z)eTD(} zF`|p39CW3Ga?q7>O$5vgs9&CyCPLj+oZiTHUlRe1jjQn(A5=v$GH6GG@e*n2xx|ob zs#bH2pw}S{rnoCIr_)eOb2s!+Dz1-Gl|D+k;ch!$=z%oS*HNlzbfB6+2P)+MZ^}U%d<1bPY*6}8=Iv)?=+6rMPg@T9XE3zN zNlw;S(Uq5}|MrniF*QD*BP1`UQKlng%#!QD!NP9_TzehLJErS4JwZ)Q zpbd2`-VSob^>_s8U@f_|eN~&aK}+s>BDN`+<+MQ@G6~Gd^z}fTo~mt_nhG2sh(V8M zb>N3dN$9XpH?F~BKnvP)>iZat3VIpLkzYopxxUOQ;jg-b@V^1mJbk5fALi_j9qKPk z_lB)a!)Gn<#@Jj|Dbk`AL^hAIkb2nMv{>pOYNnHer61if&~&G$j8iiOn~=vOdC;Ig zN*1fD0_0#bRe+FrqxE1@1qj>M0o)Yeqzdro!0W35ge2J(ccW(WvnezYYz7z79!A>U z$4D4=KfyoRa$S8D_UkL$QH2hVEdpqe3N`ERAyppR7LV2dZ9CtVZPl*!$J>V=B3*JZ z!;ynLK^wB+-HoH$HhbLtxZ(B}_OHC4K!1llpkr3i!!EnxFHU;EMj}6hPDeZK*5f(2 zMMet)b#x(IoQ{rw70;A~oCSgwz(E`B+>WGa7vpugv=`L%3%y3RKhpgyAp1Q*%w<}5 zgu}8~e{NmN(J|!DJMiR{pxpZmalN&d)1Sd$USF80uaYxsLJk$2&zDJyD4J4X8pE0fxPE#B+mv#_9FW#g0QBE*NLa6kQRND zWtY1jn9}HU$@EBTd1}Nb6qId^O|}?b{l*RXzn9Q4R2 z5Okq(&AXtW(3*Eme@JpJn2sYuFRDGc@0O}5_ed}}w?uoJeJr&etj2M}$J`^U$&*y2 zYVTE7+<_u8(Uqy|u%u4TQxr8}PAHkaj`O@KMszdcYHW|Y3g~N}OfiH>EzlXHmX1I* zfA=27%nzAPT{=q8RITnx^w!;Zlyt0+Mku7?<{^apntbgVT080_9D_m^A$y!s=~3WR zz265Mq|&1v);pS@(xalZX^tMCuXKW})vn@IbX7D3s;2)*Y44P-ilEkPKxci_x9Q`& z*Ic3vIupJc(z6^<9IfN^LxQB#IH~{~(E>-*!4al7>Mf8Ws?Whu@p07C;HX0(icrQ; z>&8(N;;5mrSUV=DWeqqX9y96Oz;k)(Vx;MB+IP1XLXu34x?TzARPv_HqkB`R}@wAod{|d<*$H~b)j+1xk<2ZTOJCCE*XhSr9ifBAg zU$fZrox3A@zJ;}YZZGW4`(=9tEB9jYciE4qt0CDy0cNHj(R#vVYorr4u+Gfm75Gi| zh&TMt@JC-avx9jC`%!i%TKS8YHJ8(#!8{KV;nKp^l@+kxx^k)gKhOTJwEt`D|DE># z5&L(u`qmHZAni+#Yvks@qvXTX!T->%zT2$?WRTCq$!7q@`S#C|?@D!Frc{L-;0RGq za)3fTb=_0-kKE9HSUD%6+kzxI@gp;kVD>?SZCB4E@A0dhkBW;FH@15r1<1RCIQf+0 zGYKjKHZ67VY+mhbX>#Q;3cNB$7BhgTg|#Ctl#zFfVp`@H>E^>X9OLwh>Xp+=bwJw%lu|^8_sS*h zz@Mu&p3%YznA0M1o0Xj#DE1h)CQhKr%6#B@KF1quw`_G&%Vti}U(aV4-ZNd6%(CpieMZ#2O!`&byItC0CJ;jylH3C9q4uByb1rwu``HX zVx20Pck*araM<$+I6B>VW1k-m(nGtz@#03|Rq#^aFkT*0Jp3v0dxDKqiYFV^a)S+P z*}#_Yd*N(9#=%WP$9jZd1^gx&_khLf24*WsU^fmGKrQ{1n`Aa#_t*1-mFi$OwJVes z3r4f`-8XlvIcR9WdhxW(LD^XhtI^QsJd5%?k@DDvGUVGM^3|Fxo!fG#GKJ z+_%vJsczn)ME`rJAA?k{Hh)u=Wqw?{J;28gjgNO41{Pa?gXwz!(8iGz6GU_8VjGvY>LM<^lK7#oS-*|`MugpV z`og8MIVK}o>T!zmg@rjI@>ajov`DWgUb&T_E&0B%BKiEUN$Pe7Cj$`czGjTpTeG#5 zom$}_;>r*6#97cF&KXaYOQ!-3JsJ9zEpU8n|Iwy%;|` z86hQ>psvTp6p!|yU(TaCJq%aB4Z+ORxBF(MtX)X=`)4+{7_hO1R-avCRn%OpwdR)V zoL2vl(8*MG#FzOTHi)sNcQgvN0L?gA)D@aDD9IgU`|MrFm7M;0n-Asw_tncSdta3M znO5%A^FP>jmuPTj=yU53eNM>fGhhd6m_C|Li#`oaV18005COumPv_f(BYJ0a{;wh! z(X>sVe!&J7#1svp^ru8DUey;2S{Y%Lx7xLStYV*|1e|Vg=Xvft-<=n@^Flf7oV_Tx zFP3X#W$z^(l*W_wr4u|a{U?6dSy?p-FQ(tEZXyJ5~Vj=IXfr`+j_VzcCD z_{FBB-7`d@uAH7> zoZxd6uS5N#iYZuqJ_nY04*7`?)=y{cfq0^d`Ssha*Fm`_sykfqn3cb)>S?3Xt1zT# z!9)c}E5HcGy8@jq)RJl^8yD{^9IO2R$7mgDJA?C}93P8mnR7n8YwY4*hkNxnkY#3A zR!@c+n?xDjIlpCPt(Xnk^O(zE-%H$)JdR!)D?p5*L3f%>;E`kk!F<#e@fMFnW%&Xk zjn((gm)O9*@UhlC@7;E{Y-k8N&FCVVYiB_w8hR!i%I@cJJa2$|cR>*G} z#cJ_w4KwPx`X+rNo?#wdHJg@C0&gOTM_SEfEy0ztO_`9=7#%lv)o3=4>%5NM8o{XY zJLs`Sxu-bliq%3|Zv|0TjViqbU^2<1k8N{x*CNrPte)=XKT5`l;2^}mtxc9aAafPU zAfA+Bg>*3QiiGEUn*)n2(ZGz6pNp($Vp1|GgW*2a|9eDL7(NhCx zbhJ9~67aooSpBoBLI=f9!ZX#+W@95?LCsUWlB;DD|ZnXkCIo8f0SG1#}- zs>{=vvyGQxm+4KG#*fI}Ln9t?)KB(hWP@eac|(^oSY@w=EYL;o!OoM7(~*ts;Xak@ zgoBNLo?Ia831(=#kIVCnch<_jNnmugEddgsQA|GAjWf5Ie2c|D1C>09SERQL(g~J7aZZ1oI^89M4~J7eYEm&;yD0HE-C4tDhH#vkk`(nB9GJL}^Vp zaY-@WtU{N2Z&7KKw#YjQ8?G;pDEe&nEYKhA%G0wLUD+oh5eAXWe;>MsT7nu~?v3kr z9|?ALSC8IVwX53{BukOBXx}3!=V^l}+XN26lkD5edJ-@P??7sDi;}JP)sq(Pkf|p} zXpw`aLjN+PBaLdJ**tJU+ohY2FB0DUJAL{@Q(Totzd+x1BMvf@$(0XM{*~{G2r!Uw z%3CSZL9}&G>GGWeoD1L;7rI30v0yZG|ISlc$Lju_%>>=v{W~TsJfzeG99-w`uu^Mh zt`cVD(4Wfn`?yaQ-`A1wMu&<_@Uo1BVUP9b>Bf=R_bA1 z7T{q&L6%=s+L__eRlGQ9Pn??j0t+~JRdd2n%o?^7DYbF;Za%jKj;*9y% zc(qnalf1p89&v5#8sy|`YMT!z?H zYT2KY>tl)ITQ5oeq8|$HO5e3SEnd{Myt;WJZDa%bDqYz@0yJ=Y#Hi z$ej<%$;O1b-HU55qOM@L9BZZebObv0Cnx4Lf*HIw6}**)Yl^MhH}^Iep5&&eYiM*0 zi>@KjH5|G^!71&1XfDT#y&PVD1$iM_uq4Uvn=8b(ELMqcnXck*XsqIIh-LoAKoHeI z%=%)cCu|qidtb%?Cmj?7BbqQ-5Ll_+G#}J2UTm(M13k(s*N7_jB$|&M03YBhuL4WU zMA?3!@3njB8QMMpfR$VM3&sQn{LPA^^~W*+eVd~8z35{8LIf-KK87>I&k7mlKZ|C# zsLfnR8;>t~23@q)YVkh3F`t)GNo4=aoTzz_ed!;$r{s(z%F1DpT9fBQ7K_tUUeD0X zehwszl@_JAM;F^2z+F^)!@iU|+Cz8%xfvY`aGdYE>m_ZpIxS9*r$pjT2@N3gP~t!^1x0LK@XF>v#r7v-j}IZ80ToR zu&95YK9`ez8o1f$@)^BzviomYW%NF)4Al;^aog|ya^8I!&aBB!vF|y*>3S^v2R`ui z-eop-{TTbHrf8?dv4AJ6Z0(|EwSmm0b=(>YCSw*Sqx5l<1Kp#rZb#AlGXOCjU{1EG zOm>~iWQAt-EJz@Go+#3vE*k%4GN{aZ$OitG?CuF8iQyY{MTO44Yg$hFLR$*5*z=9* z-ey@G*pH6z^CIL-?=R)VNs!Ebj<2kJAB;y|j+Wte)b-o}!gC~#C_K+|1ds5@*5QW- z`Sm{y$!BLu{v-FTk_*R41-!x4hp+oP^9Z_hH830wb6_fSYL zOIIaA0@v}Ss@KaY!1|eu!-F#1LcM64WRz!NQi9;UB3hJQuuA>(>-dnc2I}}}2f?W1 z`>#PB?1hL7_0CVMCJ!~fM0R5Yc=qR?e?x)eR2QakHoOtFlHN`DY>iqw{DrvcpR|{& zU({6szr*eDi)p(E57gNzPR<|kzN@i3@0SKzQ~N4uqVy7#1sG~`xm>{EDSvAN`Cfqe zAIi3|A)U)l)Gt0AxT)`F2tUEg`a4CYzgv$N{hhv|t`K5rCx;$S_ndi%-PlHeXi)I( zpXTytSlJV}Q7@Cr-pVEMiGG1ben;CK={gB;j&-z4?5vNf`=hpG9 z9Z46WUM485M`d4M;VXla&yBM=_tywyT>0BPPGOAfDsXr{;4xR9uT)E$kvFbrJTmyJ z+za}3H-b7@35(`9ryDjOL;b{FsO%`NHZqK@OfW4xry@VM1>((*wxc7 zfDjUL0cixx%Xxfs4m>D`MimQjIOYM;=fhUmi{!#)p?H>*0e(sWr;(j|v1?XV$;I_u zsXcVKK9S;th+Qj|HRE6?v&nXG+J^dNG{)5ztaR!oG_5TF>{yd@tuQbRp|+XE3*lYxj0>rbZ3O`}lb z_9*1_-=~niSD}!+52Db_?NP{O93^fZI_Vz{rjf?I{QHd^(*#kVV+MP0p{<{3lvi5jYJQRLWfseB{vy>Ih3 zH&H!{O#{2XlUgmIXef`90C8RFWj|OuX}Llo@&`A(CPtM@3`_$ zB%FQL54Rs57h&j71ZN*hG^X>qRZhA0PdHOpDzwXcQLwLI*IaiYV-Rwg$d-n*mZ(SJSW{f+aXc zBb|bn9+j;)yfG+uK9eN95D-eW=mfP5Gq~|;=qgJ?24`w4Y*xue5w;Ph8_ntQg=xXs z4Eo3-Z@LDXMZ0B60h<8dn;M;-SlHmTMWhKm>DA!1WeT2_EupE#(k-E$@{Ff2Wzq1A z*G{eVjMw%v=2cmF-PKF4qwbz=btiVo>P{@@JfTIO@d0X~yTt*h&6yp&0E;N3 z%?6A;;~FQI(#yqbRJ!uUXkTNG>{MC!1Exl6d{IYZu)`RYR-x9$YoW7X3q3E))EIOK zJ>@lGh_%@ASc`%4P^z;rfi==E7FYlgJ3XR`&n+sYSJ8Gark=_b^^dcAt{Sbm5}g_9 zZ2ItJOzrm-YjU-tHc@HpuIwx~#}_tN!5vD*Q&sU=^{U$AZaVuWMs&<2{-A;CVx=85 zX`1TJr)w}JUCdNjQOkK$*1&Mf(s!n6o2Oy2dh@EO%HwXj1}j0nPMF2jdMZxeiTp$t zVO$CMMr&m=c%bnnvU4Tdko&}oacdq`GSoH2QWzaQ7s35w+dpN}t?{le|0^e7*FxIz z7+%wt3wHSsCA@;{h$vaY_lU1wl zdqI)j?GCQd%StaWEn&TMZ=&P?wx zcc$g|RG(>F=fCMAd%qNpmENy#M6*h1g4+3iv&>B=N9QT3KO>318d(?~%&V)f0%_tv z8fe4(%1L8;Uzk&I8H(o+InQCFO${c^eaez~!mA(2kP+%UwQV6r>nuB^Rga;&H;W@~T6Rt|Qy z)CRUh>D!cDSNz(VT>c(wm~yF^@t2h|jTIwGUx{NgKl(_TkhK%QsNrB3PFCHl4S61z z;pCm487asBT@QlJW?H>K2VF&YxwvkL_Hm0 zuY^4MsV(YZ&Tc=+GE_S4)uKR~=~+nKRa8BbN8RVyJX@o#x+v4Kd6Hyc$(zYwtLnyx znzK;URkv1%_a=)ckK`@(+EoWvh;ZHNfQ%O_r5}*_GZzHM8+oLeBHM0fo6I02I#msWsTg2jBnEBlZ!BbT^b}b{mzsxsWm;O0k-ZL9#f?w*Y zPHK-Vh8zCLQZ{`pQD;Z0C(faI=Ivm(Z-`45gZDF`!@?82Cgz%kJp$va7^kip^Xiu| z4)U+fEpLm`4*=G9-3AUZy$vPaP(}&d|6iceIg0t>CH2Kx)J#976!r9Va;(0M+H>14 z_wnyMaCj8sBnFWl6El+ub{=J1FQ@@{hq8#~p18%W3GQIpkyk;JD*{4i6FDN0VcD}` zCw&bcW>cxMbghrgec7G(${@0CsF+PT&?#|j_SmNJp$dnv6^>MS+oOfj5h3&)Igs`j zncC%FHW`?tKa>xXJ-1j`p)zz<`XS_ViOoko z8^X$J`hFFLla!(VT3j2=wH|C?H4Cd<0{k^$GiKeo(tLJ)a@}#I!vj-QSRbJbpTiF8<8#>3?c<~RcqaJRSQSd!-n(i|th|WaoaGd* zj=8-qYGEvMHvMDJFVF6tj4HExCgVzT=P^`~QT!K7Ev$-0ENa!GGL?=hRg1dg1Kw^b zrmrJB7FJD+{nJ$v|1F6%56t#bee6L^sr-z-295@Y5bqh3)#bl7MvbogQ9oW*{Lz&o zpP84`<^plrqq|vH-e}zx-I*o`)pQ@8TY|pm#@+O0@=h88m^W89+i)Eqbv8iB##HzL>AX*oBokfX-rrO>=wr0(Unj1(@;L^ z@JClp?&jqKQ2O>P&nVx2%hP{SQ5`p%5LxlmzRM+gAN%ETAAadzT)}>1Cikz{`Cui; zTh-mHi&F!P=P;x))a!Y}_#n6iR#Lwg&tdwm&^@T`wO68_kF#y;scQsIb*~E(92<>o zFjk0-xw_Yd5WPF^xh*lt!@}s0Yg_rZPG3pyhnoj)FnlzR%5S*{Mh&cQTLcf;j`Kd< zi_o{_ir!FsO$}SFHCltLxms&*9ER-ArYd;9@9xrv#o;om$u+TC|GB#lZ0xgZOH+QTpYOr|a#g9B$DU zyk`yP8Qn;P0rj#_+5bYEu?)jH+1Bj> zIW&zLc8Q#iPubpMG;5=$)!#CC=$G?o68pepEvIjeSOkn_n=5m@=&3U{BnW14zsh>Q zF;PeU`T8?-G8x}VM{)3u$Ro2mBH=~NyjQ;{Qfu0y4O4LSIrABs3(N3@!8 zVFV|%n%RC_e$Q`g_8y*P{4t-GZ%NuvrUr@bnc8mEwW3Dty6CZm<#3r#EgX%kH{5XQ zIY5AzVfQ`wGT%dAWu#{GtEETszVyku^}F{6*UOZ5@GHx|!3X{cxBRe2R5wls41-lyaBRdUjFbA3 z7si}JR3B{CZbo8`j9jqep0(CVd(J=&z64cQeQK@q+#LTj5r&^#+wrW;UqkvmXQ=U> z#mekFo;z|;N-F6&R6K?43vup@D>%Q)Q=32fdf|KpIBVjeM*2T>Pa^H`BZa2SulSz% z{lDV=Pigjlolf-3=)9V%{QfVW+Whnvv$MIdUSG55$Z8wIpIHyd$K2otC$$-KQ72yTPG))AkentKj+a)Q5l2C2k2Dd$n07)qvUk;0U96j^`)z^ zJ(^hNFCoZtZ5&V!yVK_8>I6l?$9Y`=G5p1iD#kFQVeFrG?ZL7wm6Ei$! zdNT~h%o^9Z({yLnojG^byR$(K^5d(r@|62$82<-wDnSsfzU_qnIX=lBIy%s|T>3h2 zo(GL|qT`EHNjTBbRUuiC+#)ZZ^~YXtyYRVZl4+A4`pwVCUnDPfk(l53Z1k}xe(iJA zl~2Je>1!>4QPYFoq-lb!7DL>hGh>bI-e=6U&sY84XBOz+W!{e2_KB!!bN8s`ll$~$ zRobiz!_zldDMc%F)A~h;Bx+RM9o3ofUQy3Qm=Dc&4CP@z6-IvL(lLxM&xfv=Ei#|O zweJy|)|AOV=lVihwlw}!sI}Gxf&QQC!e+7F`Jj~C{9S`5~ z8-DPj4Kc*lL?jt9+g{l`rD4I#|_IukS# zCA%#zm!4vMz@?~es+8>t+mh&7oAHp_RP~W@UHU%Wd)AP;{%;c4HW~D-YDOE3B#1O6 zNfve+bn;Yi(Zrsl(3$!|HSEDlvTOByL*m+4bkJ zjT3JD_M9z@5F56$>Q;@Lxmy~c*R87W@a>39EJ!y^hnm_{B$JkIX7@F)i0+7{1E@u{ z^rI?wt6{OZsivzwcM*m&cxH+5j41Gtg3?9eb5YG)Ax7lpTt7_6Lh!HK{m;lzWqmhQ zNYol}jM4-4HCn{4ffspNuV{;~M#0LfFUveXv+{a}^;mD8SNHp%A6xgUpwWhu=$b9< ziy6SAFoh`6_ixtY&-G7hbyu9!?EN}uqGDgru7hSuj{?XNed%Ss-5;nd%$wpA(B^v8KE7aH{8hEE~K4XbD|@Acdc z-&SN8uioM@c%xOgdRLX6bwVFx@AjULZPei zCWl2wCuG)Bv?e@thC$f(LdJDH5%UJ-b0Fzr>E}!y+l8FbdatLz`0s^uJuim+TS?O& z;A>-+%RgVB@jSVS3eV+K8knlt9ler0bGBaVBjW9ap^zNO7)^hno5@Umh40Y0c<03Q zE9A+!ilO_2owcj!Z%7x}_Ey!b>N@&WyE4@Iwl(jfG(VXd`(?d0Fo%AtXp_^EdlzPx z^@i?@-fic+3-j8vTu*MIJ?*#Um-R|~65Am@ItXo}*UffjdsDr=u^uk#t%q{`4du!# z^kzEuHZIlelHSPeJwc>*mZ`#PB~W;KCs zvK;09r{k}*>LBZWYT4c!ep7Gl1g)nrac(#D%JS%BJ-N=yo!5cVPSyQ*vLz;deqC?q zd(r8swYI096ye{H&qs-vTN8$HOqez{RV&`vYZH{j`r-1B1$t}mj^W^-hrlfDIH zyt(=8Ntey{n{zlToHa$+l(o92|5P(+v&)w^7Y(SGJ)qs?aV!U28n0{a?87dOH%*k_ z@yCSr)EG$G+ZE&I(N8EsjQN`YU~Q@g|hz7=YT9^x}V)0*_Z4W{Mj&6Bnej z)Ngtte~5AK2b(yP7P!4UGlfkrS?Um~rqE>hOWg`(B`&VFt=>ZDZHOX!)-|+~kg9NR zJ*785{d?<;1m@XD9%3kXhw#80o%R^$stk7QFB7V3J)-SGlW|XaUHjA^+*DtXh39hV zb;+$1mNji;`nn{~&SP{wDZE?cf)z)R=G}a6iQIeMy!9WaAC$k15#`(_EqkR3obCKt z(6!zk2ot zX9`fsDKx>+&(C-be;4j&?Ir+$uZ(_c3g=$r-)8qO`B$*!93tf=j%20CYV8-LKO)G? zbR3wcZ&r#Z{WnGL3Rkn@!Ax22(gVr%b?bGv-60&Y=`runR{vN1+&u(ER$y$rL|xHW z1`kDn^rI^O0z;#Hz2B(e@1Niu1mth!E0=Bt*3WEzOrB9!72LaFy(>&!wG&Kr|PS~n%H|#?cD!&u6t@ku%oUBvZN4>=F*?=B{+S>51I|%ZVy;AmN@Xg z88Xq;TEEAvD=Wv%Jd%vcRjbb2g`;VG#{zp{bJY0)Q(FI+i#o^UAEPVRJ~0>4ReD>A zZEdx1MmSD>L6%WhkYw&aZfwT+ZA{6=nQXZ)oxJyg#f!B*@EzuQYpW|-$8P?g8HSAi zk48+bu>Id#0OEm>vDQL3uH$(u-UI3>Xy02o-)DwddfWJn@Rn<)VA4?)MQ9%w8EygA}4=6oyfuf`% zq-1mYK7sv`qXkLjDfev#%=ESk3A8Md-&zawHg{~m)kz57WV2zey#v!!9D`ld4WhLG zWOVr`>0V;Vqj=O^(Va?X?hf1FQG;^$zLjYC_eDQ^g$!AY%!58dcoMJOjU|f$29JB{%KF z=F{+nozMgnnXRPh0r(ZSB2E|!tahTKCFKSOlm}}yeJM6=2 zfJW&uW8dTt;HUx(1k>l(sFFt41RBJ)M|8RBpS_)XF@XwuJGnWSM*zm}lMJe#pnIN} z)umNB%0v0x2D^|Nf&+R5tthRQ!$B%%jXV+~8{)`=) zxC-&4o9*LX9z`b{_3Zj9^9_0g@8sj%;nBOE>ii4Abk7+Y^;h`Tvu~9r3(MT<{Oj^` z+}Ef(8%rk_o?*Z2d)M8FRGokJ^^oUEAXMi+#Q%=ts`KwOc$7TXEw9dh!2Bfe{mIa? z>qmH0=Ra-{l;|7bsm^~o_xmhwdaCo6Uavw{d4E%QR6%;O?_JmOQJsIy^#5Ga`ufc8$$aZscye|ATJsfOX)M%}gy+tFSLfG#5zEz^s`H0`M>(jxDpK)T z@U3g>2aX|3zsT*?`6#tOx58lOX6x)fm6z{#I}cw$d+7WULnmmnrT>k~u=Wca#)ki- z7pC2mtzBHHc=MQ9!8%CXnbd)^O?*|;7XQ}XBeU)MGPSQbnWs505Bt0MQq|^HsQSsA z9;c!RsHR_+|67=MS-;W-??a|DYkB3gMJGO(E;bun){k0g(dCkPzR~Jjx|2dO1O)M1 z&HB~!7(AOxGd1sK({uQAKYFiBkmr5sy}-w80@@tVMsoN2u>wpe_b%5%l z3uD0(D0pEkDA?#Rau@F$SW|kDDwN;;1M5oV%QQHwoK07G*-qZ}>n}MBYF?)PYUSwX z60ocQ{ds`8u$3(@Cg3;)=+6VxtF0V+6#;isfc`u{9oCf#K zOl`q?HM13=F*Ay1XBjpzo8xo6&d+4t|uPJA9( zk=}LbYtQqVVTQ;2qrbwOt z$m!58*PO*K*4xfNli0>Q0b%kO|et(~pv(CgV0dat zT=30DAA>s|eO&&2LjHbI{(cI77j~lkNuFM;+ax(b8jkB2q<%83?~S&r0b98?KhT zIT1L^JngfB4cCh=rwI@2cmksx#~2jv@(DJqy@NH!=`a1=hiUM!es-Dxe(^IWBY;0I z+6CtFQ`c`#duT$>P9WUh2h86>U8nh$z;N@AkpIVwoK+ zwXtI@Wym&5?O~f1XcVU#Ob@f~3_7-jVg2cuEEx5;4@RO_vft5a&4wpQ_v0^IhEi5; zE0tTD^C|%=h<-D`Gozzcmc=jqv3x{!AJSULV)*0Sat+>?TlyRggUG`xuQj55BG+Co zC;ag;$Mn60XOKZ2EOX3<*g2*zww7N(9JArcf}PGW--^Kzk^`xaTzCdT%w+K`oMa+x z_PhJ=ekJ0LU^3PKG4YFc_yCY0kZ9B_@mc;g^xkfSwRo8 ze4>{P9}TaH`%%qGR=Cz&0PDDPfaR&vtS&@1!NMod+;B@P4KN7X!8}DCwm%s3bTC4_ z`HiaN$P30yjvUJCMMacacHx^)hsm_RhM-3=kMc;pG6MS|rP0~p*s~J5s&o-y7#Fdw zL4)p)K@&&`x@(chp>>!tDZ>uQV69eLyYLkt-iD$Byecq;VZFb`^3?rWy*8xf8HRIM zVrY48J1#3)AN7&iNcia#<{o@VRJ_P?_2zAHi>^0Xn`;eigf(950P$4(;~len*zZxk zO#b2gi$8Cg%QEt8LLucjFEfPjXLBC6BYZllkLQ}UBVU~|xO`Nr|gy5>Ywmd5il0dRy-J@mgEL!kI9J=glC-U=8*Peo4AzC)NI@!0kX zX3eEXHvqMYPFjq)T1{KjV2nj8wvE3@Ha zk#hSu_)p9pY-3vg!l(f#j9JLW{9Px)7(2Si(na%|Z-Br`oI!LxkOdDSwIJFNyU~Sm z7?hzw>Eg>!s3r1c3{a?}) z(!;?D5WdZC+?Bb2cUT@N@6q{_c)#nTx*j4P{B`bk{S|1?d%sI%7L4O95^5$)@4~R&y+x8Y zT0)oL%W%K+K&FQ{z4pG)U^CaCf7DpA_r-AN3N=kVE1clO z9WUZ$@GyH}OpPJLP16n^j>Me3upk*fhL?^fn4A`d6|gf2DERxa9oE(CWib(rmy>;5 z?q&7byOP$k$hH%Nr;tC1tlhz4BL83PU@_fQ>|k*&c^S(7YN?}s`&Zs#Qiei!8p=>D zm`RY`)1s9(HZJU8>7LdFfWn*zlRMed!md`&JuOcN1KVlcmCyd=e!wl=E;hRDfSGUGo@u`R=$oYtYEWUJwIteHh2r=zjROaWHUo z!Zmw8d|{vP36uPb(&1|r{fsxR=>1(1EOo~@pUT_@9huup0F}t)SO$SKgoYQa zU-&nKQ~v1oQ#%q67eSs7OB~JBE;!JE8Mz)aPS*USSNC4#{?nO~eTy+O=h#2&HIVuy zc_w8`%Hi0hPRlnhJ3rBnH}}1{bDkFqA=2%{`uU>KgL622Wv1^1Eg&P|$#j~Bmb%+u z=-we`?XmBw>Az+_>9>(^I(?1v+Wo|NHE5NNvr>7%NoL-MwUPWhe>i-(vWT=x@+^Ot zmz{>>v*E>v0;RbVl(hik8v6?lvEgS283Fqd%CUcl?}^A?FP z+kjhkMxtLfvjnKWmvNAV7PB4@QqZgiBy-tTwT;aKQMax5g+};LOk=Wz$?zDw^E1Vu z&?<%(!VO!RSc#2p50Ar#Vyw62>9r3mfzVU0g;0R-BlL?=GOK|+Oi8m+Bs-{0ZLBml-w}sh9^FO4DqUf) z!rYOd>u3@Uy34GTIZfmYSw~a8#UBJpO7ktAKLtQiQg4aZb``G;Lc>cB2LM(WC+q7G zc*!2Yn~>IZq`ScJ#+n=+$Qtd|iNC~{!=>SJcKV6RFvbQkYC>!c!$v4ndmlOM)g&z{+P{KUqG#Ploe+AN9h}=>brZ z4l%uoQ_#YHf#_|EjT#A@8DRCJK^X&~8pX^-#b#=0AP22AwF*vSwfTlIRU0%=!w3?) zwRxf4ZqN>!&zN5m&+fG8E9fxM#P|q4woB4;2_{&y5n3?G3nI{<5*w!&Q;f-0LEYF$ zMgED5Pxtb=zvH$ib*t^HMCQTI^RZa{B02)0lWPkU3TCmtpP}Z0tfz*T9s>lyL66nf z+$+}0$-&kt$|tS0kdEZ zE=Gw?bsQOHH1A07_Kb-*I(rbhTt^vFsIo|!m}L$t#LfXIlYc(S00mX>s^mO~R%g!d zty24yb()p{&?g$kQWR4L+gkuDdhh-`CgIVIq!XC{g66aaD;VTeuA~ zB^)j_6~&^v?%0a01gOd@dFleB&7VPYVD><7kyS?di*UDmrFD^G{st^5Kv?Oiq6bB{wMSHqXt&co$66OVDx@I!Ebo!Ok{=e;w*hViLa(F2Lnuh9k&nD z6EXhX>7$t>+aLS41-#k6t+F>GZt32PK0SIfdTVd?A#x}S)76`4U*_uLlLGo9-R^xk zO48D`|H;PpAA#q{wca8zHI46VI2F#%Yyn!@|0K*^ROT+VaT)EC(QU9*lD05HLe7@x zEXRg8F1->QyhVPOP}h9xevj3~>CY>9*@Nw`@AV0`nZEj6#3j-1QrKSVT+}O@04#r^ z%hjb<#<-jxbn13lf0a=%zQ2dV+H}bmKH+&dz1NRxmwzJf?MK&ZP<6eUR?Q2hHbkSV z)NcASg@q5Whi_L@^Gj5*O8)dPw!3NVAbc4rWnnk!qTH@}(I@sKIQN`?AKk$yyL{6 zO6@C{D&@Td85k>vSHOu|PPYMmx|-Ex*AtLZ8+U(5C&!~NkF-Z$$dB4?j?GM+pDDcu zlP-A0KjO!+;!W&F1sCX77(`)2n1~hx(Sj_8tAb)-0e9S^lZHi_E-bMi5j%QBvnuBi z^V8K}`9iE;^?d(M*e=0xv)H&?bkWaz5-v^Tchi2K#RKNGT=N{`7`2XZbu`axZa=Rc zG;jsLM6s5~|I2H^d1qn+8t*gD!u=H3B;YL!tu0%>NyGnI{)01HPRsa^C19s5`K9ZO zYdD?50#1IMQ1`O!PoWL_(W5Nf@X|SGlxUmh>g&n+I!|9u;cH~+srq$3Ur4yOEvLJk zP9IxNcQ>7sEhp?n%8$037P)A`i}0ZF$SXky=akgX4EpQ%SZ3@@<) zI@+sbwHiN`R(a&H*yw_mCk!s$4oZ}K@~s$C`Ucc5azKRdm7W@!qYKkOoE;s04|me} z7T9;&zrjPzm#9th0oWuTy8n#~dJq0!F8&RWIyPVREq-*{3X;l<>Y%P`|0XsP!h%K( zPJM-ji}E)y5`w`?AchG+HmAiLzG*RsuwtC2eXxFLQ1nCeC&tO8UPmmz{Bxr$QvUmr>)ewwkIQ>kE zag!KJi(KU2=_jhW4$&I+#4Dol79C|0v574R9<=TG{h}iy%r&eFQ=-Y(r zZHs8C!-z{#xs$WFU5A7=#*{{ZnYB?A+kA1r^}qxBcs^|yPbedDtGF4p!(@gdNkNK< zsf9HzgHD;)8N)=q69&@>Ta&fSW!CKAvhMb76;)i9oS$e zD*&=H^*B)ND*Zc=guGI4RkKMwaK+)u4PNve0HsQJtHe@cMLlD6&~B$GTV*q@PGxEi zu7NSzWz4FnRWDxcDQ#jLl@$Favs0T$#&nO`Mv5)7^|tk8OU&`blX;}QkKvHn0}SD0 z@Sjl9LMoilW(sTct0-;a8gK`yhd)yVMjzhTQA^0~i;*=mp|@>U>gga45>Ga1k=uk< zV#=XIn6z&{`jxb1me`NRP-GbsRfp+%&eOz%o3$GRdqyA#K*War=kUIPa}H%hi<_{3 zA0B~D-NeI2A3ku~C2dwo6NQ>;(nw+F1z35D?9uay&8iCJKsjPglU8t(oAkJGwJ67p z*;B}QV_Np$xO_|a3Z%sTRP&NE%{9!rWJ|Y}D?~@5h+rslQt`GL=NK2^V!>HlZ^nIz z#D4z)nOD6xlT-WsaDTA-zC08^{&61hcj&hNMQFAISd?7bN1gVRthFO6GJz!CwQr=x ziK<2D%okmqd9OGMrP`;m4)Z9k8XqDR9A#E?oW2~}6Dus>rH_GnOGSVyHH{IHi&5C6 z*K#~IW|?RU#`IEAi5-+Q1J}?AHQA!F1hHE3OKP!^yrW=I#fevdcT^P*;wlqG)zr)z zyF*=OT2^h8NV6PZ4lfh5Sv+Xl8I<`I4Ipcd@!8CCO)Y8X??=Bz6l1X6booV+i0o%b zB#f#I*~4%f2gcPIZZl@VOc%m-!~UR&_Y(M|RgG=?yadPs%Gz0XU>Y&ZzD}3}OgdN; zS+Uu84E;s4xHv`Ti!}^JlQ$#ZQEO&K`nf?QTZYMXwoO?)SQB1WPAQ{eKDvvOG~*U? zUgB<=$=g1}&WmX;sK;CY1_dmcM2_oML$Ua1;$aY3i^#?>7kO&>KoykVf3?IlU(Q5$S2;zy1jC**}Rw~%VlbZsl*iKtdNy2PXR)(VE zKw~R-K?j7FBT*xJI00$#XYLxts_2XHstBn!x90H|-SE)-ci^vq*c;^fNcWLzRC+4LDT$ zPucXIPQTpJPQI|qwoBf*rHJo^PvYS25);<-1;dBW z4=D*gJbth|APDIl?{8b(R~Cr6uY5bYuU7v|1Cog{=}NgVWnj85#)!$Ze3f!!)Z<%|))(0R%p)yScR)o4eu##Ls(#TI`m7YcZXZRYLd z_eG)kqHxh7sXQuTM`u?t`U;i9j?iGG04(KZPGjq`ruWVHkfhoSkEMFkUg{6BZG;3is)qR|w6s;37P&7{Dn_&TyKn?Zs!d=~8mH2H7^s3djfEJ9 z84d@mv zPLD@=?_}LL#r4AiB0I$`m0FwQ!p3#jm86ytb}}Y2rOq<4Pk12mdRN>=a9^4!14$Zv z7I<@~R-2D_eNBoY2UI#vw^@2-GDjTIofqkJ6!NnAuhMD!S$1Na{xGDh7`kK60bVivouJ)rDgUIu0OZ`N6QVQ78>Se|yf`J;z-M_aH=# z!{p&g^hINx(`0_{g{Kij$GMHj;X$N*S}!rS=W;GU)B1X;b7)USaC{Dp{E9JIaqhB< z;AOTU#EjV+#&6~^R!Y~|W3Ke*QPvclgzlYm8ZdMk09w81G~m!_kVJ^jyJM2AIwzpR z!~Vs}xs7^BbUk1LwaFRXAZ{)}tiA{53nwG~joox?F0{ZNI4ZRr@cTc%PD)pem7L2{U^n;CgN7K0p z>BKfCnN~$|iSv0M!iDDpe_|0NFV3Htm(noS9`>(crV0kQAag9n_jj}2g&$R;j@`ktL3wW=zw}(b zvr9{S<(8K58XX8u#{`Sx=NxWbmp6{UifUh_QS}G11>A=%{-VBD&)Uy91m+Ov==Rld zceY6b3Ty*`D6ZB6xaOSiynGk)i3~e{McP_!={ZEJmR;Jb=n0lt!LpXeNlqNogt0t? zD_l-q+a+sZLlROFIY9GR6 zF@f?87#c<*0!1D!X3j%??~ySn&QB25{Jcd{te>voKu$GhwTyy6!C>HL3s7q;z;@`t zKpSs+aXNYFFjGc}Aps}^GxD>rq>>*fh@v8OSa=ybI&`C`sC=KpZ4Jt^S`Q@@TNHQw z>@aMMKyS>DTKb51o*r%nBFW&OX(i`Kyl~43;fJjdzIBE0*%iX?yF&QkD}*1hLiqi9 zhTDC8PdBGM8sp{o7WaALzvD~>(BFZ_NoVoygol4`_&@c5|C0l6=YihHt~k%QpFaR* zX7Nk%P5OCVhd6kPs<$Y53*MFwmghx`dpqX6BD=GE5SLftg-3!|>39pPig$k-&z1xF z0#8KOjkJ8(Ljvn&V7u=c%{Mt~<9n0m+#;a9r*G|_ZP^hA0N3E2*g5YO#AbSI2mJX^ z&W|H^Cj;0-j|b@xSQF9|M>R#ACmo_mGR@IA&HX1Y=^td{A$>&D^i594Kyw;Pa6i_< zd#y0ZXG7v#W$r8+^`Q7;*^rpY8)?CXybV6c+~6~A@tH{Qd5k8(a&JqJ*pfK!5tgKF zR_uXUJdugP6L}as6?fvPxC2jvI}kOvud}$Xx47dDc!N8P6WyXmu6?h854F0hd5uG)?}vhv!NyW1RDkrTsCz1jj3Z<8j1s6!$2{kl!^p zQn!n+qsaVp%xgnHVpVx8UO@7Zk}>PF)e}xr29l$5;iC+!qepJb&4PzN!x*RSne>-= zAN=j$jit7vC(J z;L5TItRFsJfc>#KarJ~(d3nULH8<-W4^y5h)cHYJ0oTyB5NvFD(EZb@6&mWDwlb&h zjOUq%P6XB`_t^N;HXT-xG&s;Q3~8i$Y&XgL|8Yb;5Ja#Q7M_DoaGixAZ+fx{>5 zO!!jig@xAHNI?09?NiFDrG)VtTsExxwz%+l4!LdpDI0?AZ;mF9U3w&hA+#Yauv~s# zn}$v9WdOgDS1%9m#ON>S^yB+{!ZCS;CY@~GCwwm{u|0S)4tKX5Ck<&iiuVIh#`ltr zR`LK!FI38`%&3kRuGcEGj7ixb+JF`dlREf|C5`drUAdkZT6&+<$4;q_`7hw^-Uv0x z{YkmJ$4N)Znw5DsX&+vHSSHx;Jsrk?6jNvkA%ta`=n}%5N_==c+|4xVC;#>?bOp z>_T3{=q4V3@=mXX@-DVh-6I&5FG*`@!@d#a(2N+8oz7>~nl~oAYzKCp38SY!;I8O1hZMl z5W5vKHAweQfg8=%SX$#Igm9HI($+80J|k)L_sHXee zX3hr8hgcT(Xf70PU;1XNaGMR+fm%>W51$WqfsQth>_o#rty-LcK&gNo&A%aU7Q>g~ zRmV9@X}R3>@nNAWyac|roaqBOf1-TFmsCqQM9oyoUV!u^6@*j&<6^u&OuVqyJvVxW z9n5sxt9Xq(*!O&Jga?3Nd%=9EK%}a#dbTNBUwLR*5C`2GDNqlKpN)F1y{@>CcPed! zW)*JVx}4ilmp=&#-8pn4Q1HpAJ~#2>Kz@AW5HP{nNccNfu-BRTyuNjjA{^_fB+>Qj%g$xxdyID z+#ZMkDS8Oc6hjw2dMF&|^Ds@MU`hQ|8(u+j76jIGA!R$gz?|^jF2}hA(Hdsn)Ilq5 zy-xbBqk->7g&)3+J2IkY;19(8Gr{uT1`tFQU^NuFySN1Ymj#ZM(e)V+^73lYKhwtu zY3{brvgb0#A+3)|T4WjUa|28R<9?%f1#%IVVJX$YEaq_r>xHP9DK9_&Rq!7^FXku5 ziPs~ok0ULu(vsFC(h>sZ$(4TA6NGa|;Lgg0~ zrcS+lS$vCThcQTkadx0+AVGF)I*uXwrdm)S<&;%|?ABMJMzU7SCOmvPaQ=i-{zax5h{tY5zH~SNKWNMC;tcaX#r#67CoQB`RJX63nEG zer67|q+Y6r>k!l^y9XbRz5{rM@o-hU0Z;qjg}+DrOf9Tm%fHj|_gMM+DEa#&{+%Cq z3&yTD9gUt?#x9N>@%kJ326{l}Qr3bT;!&RVx%b%v58}Z5IpS``a}1vLL;c+!h8c&2 z>xhlN`%`pJGH-wPr|F(i_h;xnPTilS`_bzDJl$v0-3!-I5iAhh4Ig+}Vya{F7!}CXxTF=HGrPlb= z#MJ!D(|$VVxI6W<{0ARfkjvjf&oZ@qn79v>znkSRu*!Coo#XFi!0S`euH;f?Y|41) zn|<_RA9PRYQ_KZD=QR{;*oze8F;x9&fWWuE%nZk-S6N<9#{ej0fD)5pNxDF&}fd)%26nE@Z?UZeM*lFTgV zwqCO!JFb^9o3`{C*F8BKm$VnwX3jjg_`#gEX1(7ZzG=8Rd@$0%iYTuAX|GkiCb4H{ zG@a&eX2l0@wag&=!!`V8P_`B}Aur7$&2ppCURP*pXIw3|{;Du{OZd&L=ywan>)>B0 z1Y2*Xy#<{wzW{UDrp(K*;@4@H8AH9y-ym(_&G1#=SLp!Q;5kL-!zo3-hf5MZZn*X9 zdXv=QtBZv@TS$83x=i+%L zp1(G3e%ojE&vY|Ao5sEICZ6`$26yMfJlGp_KJ;I}a}=J3nm65i9@pc!H*meDX;@r| zuYK-mnk&UW3wd=uj6cOyR2ZEr_pYbqanE*6L$Y2Lwxp*zUrL-^*1deS|3w;!>7 zs&(GfB>uGqr&>ceIX2ZQ+W)nw*4n97d8$>B|MjU>)&3uzYMqObO8<>cjZU?mJk=VA zM=s9Kyv*~Rv5Uji(LDdjv5V7#2P2TrY35CL&?;>|;U)w=3V>&thn<&oAMUu>p;`Z< z9k=znH{Opxy6m7%#Y3Ek3vpoHHqZU}GpsYb^V_C#Z{T}R(jXqa%6CuFTq$lpT9EGU z!#Z#u)`$D_ONah^ST;VaJ6nIOLzb71#na|#^RjtZfBUxK_HE(pdw=*aKZ^r#+IBkr zxFgp*8bIgsEckUkd*IjkEW@w!VK3GBuy=Y19*#Wy+%`Xpi%r+&xl;Hd(q8H5#Or^{ z_e!+kGJ}tuF+3G+K6W;79^8B^JyuHZxq#)f(>#~p&8MHgt(Q(bI=?&PcYa&E?Asl* zi2qr5=J2?K)&_j@p%8=5uzA+w&8KOe1M%ilG*1O@KJ94?TE(d`4mcAsXknDXScO4I zhNz~DWg}B9tfb&J3gw8%G3lHjSx0`+VkcT5W4e@~uvsR7a5C8h+roY|F_>8fXn`#dmBHOvB4)IL*~03EK?g~ zYWV{G)p<_|{``%4;nf>50ad?cK4krI|5i``Mu-1eO$KMhuSGI`Q@vy>wixD@<9&wg zbQ4$MwT2HJn!ki0lkw&q&cVD8IpX}wihw;*$mP+buP4!AB8tJ-7k&b8N1nc%9r-NxchuSqS?gpV!c?^50p^WO${)tXJg9&XS%|7 zfR1L5DJzQ{A_RO|qvt{+ya|nOzDK=DzQ!E<4k93a)OQzH9tu!s>bnbk*3q>e0j%T= zeFNQqhxOt{_^u>>JxjnbN%gn)K{uM{Wyia9qy5BwMB{SkxPk~&l=VhIkh8q8%T-5s zQZNJ`_yR+fw596m<{i|%tTJ{K;xp?&!LlfbSQpDRAfi1+ovHe->HyuKetIQqhzc znm-CX{``4yx389yXE5N>|Lw6qhJ(v=ICzN;2T0Qy>lYc=IUXn^%dsxbdl0&C)QCLd zSPV3fGl_Z6mohTpDi&^$UeO1j?I!Ki@?~}pw5vQArQOYUbQg{u4&l5efpKl^2MI2C zb)@qlO~*Myu2G^-N(}N!ci5-muw;C)S>>XSn!Ivy*ZoJ>&om>{7nBtmTl`@tc*%6D z?D_ddyPg2W)JdHN!f;OgjLwz2`xtIeE9Q4nEJUl?;@w50xAJEZFseozE2Rv9fPSc+OdDa*$nx!iM1Vg2Yo%U(a%ht8*B7MC@f?&8V&wrJT zbuBI&g%Mqew^1NAmYQ>tK;U0PWpe7aKE~jpoYhfV5-SJ$_L}lxZps+AG;IZv`u8-S zoaSQm)%6ZUoo5rz#+Ll@F9vY&#i*85lfjglfzi`J1Q@C&VdDOgeJp?ElqidkOzw~kdd%_Yd{?>nWx}z%*r2Pnm z5&X>`hj5{tCpvQU11IeRpag}%EXYpUCg)?d-u=vd0n53Tx5#vn*F%}tMs|HzSP%_4 zZgTz{j$|{z8QhLBynPCP=7jIkeB|)6#P#I_tJZ5aa|#i|FI}VA#^&<;Gnnha%r(c) zx1470uFdA=uvS1VUmQayTBJKyI!K&zboRkopMvukLQIuu$<#F3jpodKHda#WU4NbB zXzYkiM~a5VD~uPf0GXt1CvBcy(c#RT{lp661%c7@tbKsaI!nHL-^Y`cahbG;tv7g! zl4f*2U~mm_$jYV(>msMEb8*nN&MZs{IMCLf6LmM4rnX5{Xa`FuuGY|ijBi1F4w9Tf)HklFxGARlJ?0P{sWf)ZrBCO5?RLl~ z&Yf4d?h1UB&zZp9VH51HfR8hmh}Vp+ACzpwZhB&)2=lX@^kjW=bBaHdAiQ4LNZKOG zCqFM7Kt76J!TR~(AU!+d4+*5U<^TW0ul2&8oqZSn^%#F&Y&WsEo-*pvRj5HT|3gQV z%)$H!rnrJ82Z@`(JL6jv1Z!Rdy%;} z{A)ak?CGa@MXv(*CiB7bu|aIpXCRlu^;*(HO}^c>AxzR?v|5pXu@hS2nA0?5{hFKo z7SeEdUqB<6p;CIq60;b0{i%Yi;peo80lJLj3N^quJRuSO{#6?qk2$V2aM zWCVrx{6zvNl)p$Q1r-`m_Q;LhoJ7ff&#mzR2yjq%v- zmV*2om%$G=p=1VFqD12;u%@G>cKgdzs*-3IILhJ2=T{XzI;A5?DJ$2r{K2N$6mSSb zhc9ja+#|oUyVLSBZA}Vkb(iPlID(dH&QvDxjMrF7ttf#_%Fa3OvpGJyX=_qK0i57b z!W|N4WZ6Y%(V0glST8)tbm=?qh2!x-Y9N)wV-=MO&Cs5C0?7-|4r7U)k^GGBxZqd>(mf zE;F#j$A%I;g>gJd7o#1$EFL6MM0S8J9RWQH?#AY(Ang=8uRuY>@R8ZE{PL|RRn*4U zOeGL#;bLgpGc#n&Ms(@XkU3ZLqtR30N6D;6q-m;~p|#w0z5k;ELxZg?ueKL{)Pk)) zY19ktMiIxy3UfFcREQpoj`GztD7eEY5l+8ty`#ABVtCbyg@ussQmr)q^y6_>_(Xhd zs+C}w$hacZDW^QrUO2C3op?T#_5D5X$Jq^>Q^ojh$f87Gv8D$V%Rq3&E`qhWm8|cC zV21)$A)lmU--XEI60Xk{-+)5uUuhI&>+_HB7oUp1NVonKpQbd2s@I$yf>}s*BSoca zyXB3DA1llHmFEw8hwU{D?|QPn{Q}D9`_T*-sf-bX?+PxQZG>y-yUywJ9 zWGNE$T(&t|#l10E!3k#x%kn{##NMU)+hClqv(7vsl3^kNEr6pmg<^Y{zARx~d?mct zsFxabq^+Dgi_pf_v07pIT2_sGZq8-v<#w}KFSXa!ip#f=-4)J90Af0z6Nt%HZUFMx zCqD&o$3_r$7;#_YCd#0Et+XS2Ix14?wq7aJ%IV4kq!M{|1=A#55q zk0foF2N!XPt{JY;Zi37#>ikQrb5yL?QL%pb0APxSe*h85w-`s%2y-$&QrU>r9PEUzBZ@+vWKi;s!=x7So95SkVoLKI1prYet@8!iq?rKW{qr zMjT(1Cco0VF0<1^QU@hZ*|FTNNa0Ju9OY)U-5$oN?&fSR&%6C_)|_-hzYg-oBS|G+ zDwO4Lx4-p^qnGZ;Wju0JBe)JH7xVZ-P81w{k!3xXedYM<2$C(V(|n3D@F;!iago6B#PmZZqkbA{&YcrAxoM%JXkb>IQ~Hy=VR z`P2?vI8UonVkEwX(+rg`v^8o-tI({0PCOUSGAyACUqcyuL9CP&oXXzVoWH#S8+1aR zYQWwP{|pAjW-)~fznE)YTR~PZBy{4bsN|dqt7TbZwH*Ee72!9&Ma}{<_R`+RH`hI( z8*Bn_NDankz0s-pr^RGuydd*l#QQgtVF11K0Ek9XG3!#hV!qe{O9NTIDdoY%X;)V~ z1QoI{niw9-TJR7l`NWV>!MeV{`#5#mT5 z0m5V;zzD|*75>RdW0yH$R%Ygnt!rzAoHJCw1|}?8>abBSVp>ouUV|~c2J16sBDY_xqj~k-PKJlld3*oXflv z^?V!B)=2_;yuFm_5?XYX~0G1fO~hXKRIl~p z4%C=H?IpohMwL^&G^&n|LDliu`?`Ac*K{#4>h{Rl4%-v1DfDg@@(NO`V- z%|(yz4@}sS&EJQO55k%>8rB~|l*hu`%gQSkJ<-DWqQ`POaT28W%wkRh`yB-@SXc^? z(88tsi*z_ABOUqk#cDJ76SU<1#D7YeqFqSU-&m0=IsC=Xp!7&-AizB;m@n==3Mu2Z zkn(M~Iva?UZp|CpJcF5aZK)bb+x}tN-1GXDo3>s-V|y-Bm2e?D z1jU>DY%q5am=YZ^+0##_It_3vl43kJkNWHBOyiJl6yefb;BBkSoSo%y-% z%&=rtggNLAz#CqRog$SIagDUcL`J&jgJ6#6LPW7R+~4A$SzdxHoeU$&b|%9=!Mwtg zoUFvVHKhKXb_JR|=_3jiNNp#$^oJ8j`N~Vm3^?zIg z?9Wff@-PQ1n8X|NA4Xu|#o&WAAx>kJ7S6<BxUqEvHWb-{qkRC@`S>5RY>Di1*tdL-xa;@|X89+8n&x&LoI&(@@sNg04;YVp z6J9VLS)PA0u@`nKME?p;zlpkqi1Z%`;02J}nBf|E<;0#4vdehO??ZvYB>;Ke@bE(6 zKs3Df!^`uU^WR32;Vp-mD==ixUt;&nu=8%}4r4cspzo)Gme^5ylRDL1Vh`<&3t?q$ zW_24D_5uSCj=WF;UZ88uFLAL7VMxI<%O6B`;hj^M=aYakHc&s4Kkom&2O*oX z3iVmIVZSka6>{Aq=_mX0tsz3c58SY+HI!Zc5L5j+z6gI!44>Hip2P;xe-PSt)ApUT zb?*>lfX?ZskTWC*0vd#O5T_uCH}hSVDJwSS1n9WE&#g zNjTn}lMSyDj$(OOcMMnl`x7Xk5Ld@Mr)vj*WrQJqLF)FSk1zU%N6}7NW8bb;eaChv zJq0_j4Pen6s)#!dEv@&O;g^xb4wzY5zi-zDB)fOl9HjK?W3ZiCw^_NH&ZZ?T0%-y= zo!}%AycG%VLV}Z;CtxPy)R1YVHHaIe<7``l`*ulka5U#6^VVPtkKDZ}x7&pU&LgS(C?eZkexY$8E<0=Ho^G z4DQ6RW_Wy%p7=F9jli7&1`@Yn4MM*oV|2&cuTG%n&6Zl5>83d5adc?U?lX-oN7(h3L1jzr{E-pyoah*Xg#1-)DV2YDIo<4>RaVnNkd9l9+or&^7UG& z^{iT1L&~_Zs;nX9dIj6)6)9e=SeHF@`3P#&@Dn6ep;l44)+);%0Vx42xnc9Y51`Sz zPW4}8^yqWIU;Cu}hxO{)w86+ze)Y{k#uR+aF*kO_)> zfFfSiEq3}}k%UJ7My%M!+I5+?NGvp;SmrE#yoi@!LhV@3DDLMqJxW!j|LpLmh*kWP z@%B6L@PV`v>@%8Suh8@WyWV^>~^3^u*$v%y9&Y9jhm?%Md|lA%Uici3nK+ zqY6wAy%A244HGwC&Vl@d^pM!8w!$IRKHN@`wsL?6&8_bf6JO_5nD}sdMr-csKYx5& zIz%GPS*E5mGlm}b_*+c0UUrT9A z%-ZaXpX!%C!9M$EOd1Jty?6)SKV==cvS=xkO47^2n0i-+^M71ZRrIl+FC73!#TjTa zPLE@MVHocr2&;-1jq@sJrg#Ti>V7?6nD&b^bA@Rr97%(&=i4V0@fGM-(0+i4L+XuQ zN)##2#ddA2*u>x%oeO;7uH%A^f^5w~%z3paEy2z>l3@n{Fur6y4Riw8fPp95yH2uM zufE*b^)ul~Q**^2S^&&>=<8uGU7E$TCz$biYDx2*2yfL+e^MD9k{&%atif!Ae#+~M zpyO+~E?3?N=3fL(omzMVq>{MlJ&X>4V-xCz{284hAFb)wmz=7;SXHbGk`U=H^3ZKz z47~@(^gmm_9<&ZI2^dXJjstOD=q-|QqhBFqt!rP}3ik}5_dPWK@26v~9@TM9M|Lv2 zQac|+zXx>5h#WTmj1g05O1Lj75}KxSUc!t1z^vGIY(L$QPH(Ran{2DrAF>O`-ojfH zK1g)A#2;EO@wkTlchL3ctS_Z&UXL1}331a6y^mDTjc}L!=|f#{eF^!^cFii@45eGWg;I>}~9mqkraE2@c zRTs&b>N3#V688?ct9j`^u|Xj{FQ$N1vB&vpWXc^9aAo{#yOfxi?wqlG${7OXl`io>cj+DJ*mVjUe)#~aYERNkc4I)0EeW4Can(4Xlo@+ql_C@#f3D= zCJk4fuj}hV#PzpkRung8xR|us#WU%{bvb`#bCyGtFM2?RTUj4=9Y?x1LKOa zU;3yGjs!V8(B!>>Lk{M2rHhp3d+=-4)}P*`Mm#Ve+zO;UsYa2$>v(N>#&6DI1G&zK z5NzHKP=*JYJ24XeGU4}RyID%aIBcVK;L-j>)^6y$$P(hN*lLh3SV1Arh?~843 zNXLH-3q;^sFUSI^Ues4fU*)1yCzlrJUb8Z32VdpXG0;A~R;mva<*PQ3EIkGcC>9p7 z!bm{$(@~yLp`e1EvdTm~l9xCX&hAhf;C=Y2KHO-??AF9<9vNoh?I3SW{O%tfq zBv?zcwl-9&*4BnE2VF3*AlceLt*)PIRZ88&w~DI`$yLQn*O>L;+S=N%pr8qk)aWy! z7?kP_d=Awb`Z)ss%b8KFHi8u&W$CpB{*8q1g_Aq`aK4NHWm%Qgk#(&p#neKo8l3=3sjsiCZ`8)FtF3R=Ch)huE~qtYqqTK9Khd2R z9bY!1z5L4IdCoUwbT++QUUYn?F+NerZwg1@ho!->-9HF%|BG>bwvD?a+)U40O$}`{ z(n2t3P-S=;O$!InnUWpRm>#wfnDofltTBL?#_*gm5IW+iI67Y@{@OZC3f!)9 zCwPVcoRd5O@qf)SB)z#bNSrXx$u;zBZbI~Oc4k<49h*y1Ygu8Cta^%Do!Ur@H(LSK zre(g2c}V6rLTk2s+n4mRkdy8Oq0ziH)Du_2t`;Qswsx=a^d^Y7UZrq1hO$`+(63!*~%+pKTP?IuL^h+ z65Ka# z(i<6140jHs$_Q~9Lj5StLc^@cm+8IqLmK9Az3NXNUMp(m7~2KT5K=$10jt}DOOchs za7d_Z8tFi7pi!$_R~u;7s`%U4HgjUKp6u-{e-6{hWIy>t)bG;g;l(}U*UxAA?k9h@ zN0`}9UR-da>3*_ES9CXdRCklfw`*d#?81mNeVLb*fEU-c*iRM}?5_P}q724Qujh!g zj>UF9AVurBpS)Ev;~ar`@y9vB!bui~uKnbPF@$Z}$~l_z=cEX*H^#{q1(k<#Zw-5S z5U`;&&J1VA_O1SR6n*EM_ANDJ;NxW}Y*&E%rtKyCA+g0_(_wB+wdjfxR z-a7o1ZP0oi{mooePV}6OTfHz{SGA1&;>wpgIM>W>xSR&!XP;frhr<_$8x2afI2yj{?V+P5n| zSCZ72m~7P^2+a}hxB5-p8-=frV!&fG@j#LCKm?v+vFFaAj5qT}X-Cffw$@D$9sx>W zf7?`zv`fko$uD6FMypTuw8a7M@{*Vfi_y;&0q+ z^!_N8mb2Ab8TyZ7Uv@jz_b0J0J0SM6j@&YYv{KH6?SD`4D~K8IDc*_YS9(wJKrqA7 zS0#1g>zqf{J;QJU^=|gky(=k(k30aRJ!dX%BtWGPQ%B0ijux`qp9T0o}!i^6}Mj*HYFKI8T!E;(gEk} zDJHmB>gk@MP*3UdeWd;0?AwLB*i+i5D;hpqQJ=jY&hy> zA`!u47dwpNo#!E-)|r^?N)9;bDcgra7R+=vusksERVygd7+S`1LVpjLD|#>z)qcv6 zA@&H1$4y6GtV}9@B|A;W*~b$e*L^%PKw~`F$75Sd&BOK*nEghlyhbNoe;Ikri9!v^ zV_+{WgKGt?{Bd>i7*f>AW9Y6J2@Ktk#)trhZcH4E;7wY%Bae~LKn76AW5|M#$H=Rs zFPy_p1Tyua5FhfGtU3nTCr};(=?du$>5A|S_ktmS5wEH;j{_piM0t&gBHw9&3`6P= z$jCbp$Vh~m=3xXf;x(jsP#|MKBuxlpoKG!|709p`as)E+xmKrW6v*gYEiI5iK~);V zGHPm88Y9^y(ir)qG=^P^k;ZUlX{0eDq_Rq5IIn^sIVN4fSobA6&VAu^YV z`nXD4#?6ZEVaN#MMSy$KGnu;_e(sR92p>ZGSmYhCz(sZ~Bq)(A3NI_UbNVvG&*!xW z+GA>v>N>E3j2N+KI2N*C+>{;Q?6^iM35^Yduy+*d2K936RhAL3M(YS=B}^F~IQhfc zgFpdJsl7Zzm3b4ZB7ozy%4j3}FU$c2t|D;bwZa(BtpC<}=QO(ZmS`|#te>T>qzS2; zRtnTp(Cg`0(OMmdVQT|U6m=tU<0-6ZJag7l5;t5pXs9}Q)cATQ(%!3xbdRr^&|hYJW$m!s zI==qV>5pQe?f&*V{>>R*>9*r5-FAGX+ZkWwGuiKu&mep#JB>p45Wb4~D(S0peElg% zC*!L)lJS+F7+>Fx0%6>e@m0L4;hX8j@zsEs?`-NjJ-$lX7+>X`jIWYFP4h70t9T7* z9voi{h~$Cs)%n!o*zxt9il^Q1kk7T@BT@coj<4dddrU^$9*?gqqo!uZSII6JU*(hI z>sy(N?shy1Nt^NYfuypIum4Jb^1}P@GUF>T))F=qdycQ-DL9TOtd6fzx=|-o-7>zu zg(-78Y^7Si#2v2%PSqp?D5Ug`5E_2=l;xk2@w7 z1Wt1;PSgSnjm2bWENUu&(zAptN=iTBeszl|Txc)#*3+|~38>gyur6yl5=Gre+;~dm z7*C4Llf?6yPQ{R?qCq#J&UKa{GIW9$B?JO>iOU27%D_#fLV_+baP0L^OK8E=rQWao zKW}Ul^kr|UCgRLtb8(#qeEZqt(%I+(F?GAkDvtUo`5oX3q?;U->?VUy<)~lz^D`nYM2H%tLJ2 zkn)}?7~L}pv0h`@g&F7k@LZ%kB?SY?o`{dQj^2y>VH~1H$$p7~{W6a?Rd^(+io-_~ z`Zsn^U51+i!5q$wL28Z#Jk}CBuY~|-!?_X&Nih!h+CZ2TasweXF3jN^o5mbX2SS2e zoGaSEv2-9d9k6Qv0g{Oe^>im;Tnq3l<>hQLzn&fxR-{>}(^1fwRd5F9^YM8$t*an> zJR(EhZ>kFXtmnPSJ2IVurALL)>J)ju#L@3gc|Ub)t-PNV0C|7hXa-G%kk`0QAY4lB z-_bfK_fNHsFQaLpMj4-b66953QnL@R3KC=>7Jm+&)DKBzC^yG*9NqRuS-X|DyAj~` z0r%U)1zx_KKVb*@(_YyUPP#J5%y^e;E@maRy<8(gzC{Yg=;U&klSL zUYGz0jT~9K1D8s7F^Q6rwfBSHoraHP?E){|S1NfUYiDtSFcr678J>}3VCp&ES8#9& z!oTi-b7buaE|z*KYZvONtep*J4f|9fFJ$dpZcx_F8W&kR6QQh~`B2tQ0VO$}qtV8~mh3{4VPSD0gANf1yH+u=pKC@H)t`n!f zjC_DI)I>huk!L!Uy7ng@AVsbGoo*{1pxep^=yv1-@|nm7+H? z*t7Bh_DqiaT|QSUA7B|ZH7g&G>=OBad{REZ?qc`p5?ul*kA8W#t1(bwhl}-vvqSMKws}@2sFi{!SovR95~jk+jn? z3_|(4P*>#d8V>O~M@1ul7s9CgJ(e|;W%7wLjUs=SSQTN!iB9=DYZ(HFPWii3enBfm zHE5E8`qx@Yw1-+i06-_|p?}EjE6Gh!3f0uNmAjXsO_at${g^<5XB7+*VL>j34 zo!-S%AQRi4{9Tv<{W9k`|1;(9S^|y*iHw25C`D>_#se=Wek^|inVHZv#xen_EpFje#8WfjN!*{L&m_D zD`Qaa)yo*VaPnQ8`pOuRXq9EUS1n^8@ZFX%P$VpMzM_obZc}J~G6v$BmNDc-&nky*iBfV@h17S?^}YefozQpNX@2~wpw{D#jw*PvcDfzp((IOiILHH(=UUxTuXZKo} z@IiQe0%Ynm)~z#Z<*szOuMwx)Eg$HDmmLb(+>o)NW4%vCNuh1l`-)yFZoe|TH9^SK zbLVwV_K^*)i887pme(33VhVo%!a zpeJp1#Gb}x$2;I(6Pq0jkyZbCOkc%Y7yb0tMgJJq{1QODY$qkI`UkM;moO-4!zq!t zZ3Y=GR{Ij7lW7T2!yU(9;V&Voc_$%axMK{9e+ekzFo~vBg4vF8Yb~bH5`a_Ca7v8w zXzZEzjm3W04>NGcvF*%qiUjI)|Asfop_Wyl7g)ft#tsElQj~s%XK_58;gAzFezxv4`r1n)K z!IeWuAFd1qJwRb1M-Cy8O4|ENAhzmrN&hI6V28|sa6M%Xzn09pWDWx; zsHEE^a~NbuTITSJXS=1`8{?FgIh=d*HFnW|Aq+|nZs}4hRlJlSmpo__3kZmSm)|B2u}WT7f$htSl2H+|AnbM_78ST zX&4Q94N0_$xM7A5!M*hw*138OjOd3#nRR{j8X{)JbBjxGK(FD)mOs)mhvx`J)NA3sxjS=6*j(%L=S4;ftp{V9gZ=rR5D^<;<>IyJZfHv-vF_ z{^L%BxpD{kUyd|7We@9&`oMq1;skPat75!=9ecCA+Jk++iGA5b(VsZ|*D7@leus#$ z>|qPm>uFts@1d0}{ho=NF{xAb08_p(Ku_6&iJaCopl8U2Avh=j*=-&vR zfq-sZ1Br8)P0QLipWoX<_8^7rA$wpUpliUC{N1-=@+8h6{0>SVEc})|MN0PIz~h*7 z0wgqYWC;#jD&3zaQP@|+vWkB2KS;yJvIl{eE+v(`kv*_DL70l`$R3=$g78O42Bw~4 z*+UBMryX#P>>4uwJ=r;e+FNw8_>6Cj`h(`kM+@4j`dAqzAD}-c%XkGc#r@QJj7{>y1@{n4HBk; z2Z^MDhl3z^kPsC-NQep^9t^>Qgs9*_Leyet9r6YV!9hYeB}7FJ!9L0q&yyb zQly}M6f-Db;s-CGjFBx!6+yNzPufz!p{xvS>eZ1gkkO-(PEn*!-(Ofy*@83}X)BVQ z_7RS3LE4+j76{r{*GI>JbDg~e?j>8$Nz`9Pw!oPwanLgmd1o!QsxuIzsMT?x+v+&b zZFL;zc61!%GtqI7PbfK|@^A)%oR2dQ@+#@8^9%&(Dmo70NOTNpq>;VkMnxZi2n0z)WUkar?mkO(!+!^jrIYe@5;j)MV_JfP#?d}?v5jstr{N5?@v z*Gm5&XCQPA)#r>M%c!YY9S6xS(Q%MZ>Nv2QGdd2O1)4JuPa&1{48%_epbf_8I1pnk zVNZ;=)r5klZ)h#*>KV-_(agey2NkPYfePi9~I7n<$D`N^Kh^vl+ zgc^D}p)2V)n01Dpfhaiq+^OS0#_J1n2*PO&#dY0hAS4wXsi8i>GZ0Km>rLHq20}cg-g$p&v+KWWGLsmezp0a{jGsbk-FM628p-WcqaE7F11*fElvp2@c&(OB8 zJp+-F6~KHE6vvIMfaY6levV#3KN-OqMl>=44{pc^_;O_g>YbJmSX{bf1a;rV#ZPc? z^$}9Cfduu6L|wIPfD!MuY#_9>Sy47{w<)tf*#L1(%Le?+qcLYLvfsvW2VCI7GY>fK zP?6&fIP_2wOGl7Zz|;{Yv@mN#Lq_#H&OyKe1Bmcq*mNTyc%v;0T;|5E3uUnlY|6z#J-;PtQw;d-Kd`g*e0-cNNJgs6#(Yn*^wByt_U7Br5OhnmqO&KYx;jdGE zgC;3I%5eCz-xjV@|3p(sWJDIu#)i@n+V;DTVi5$N}^ zH)~4QVs~F2?IEp{~q!n`uCFu zNt|wZ&`)~EgQT$i#rNV~+b zO#u4JgJjxYfi#G@Q7XhD(9TmEZ=OBjcVRp)-}!;44RrvtHgrN9*9mcq^^mL~ zda^>5yfT5IjUzW9vqTR8KHC0LcAL7wddgIUIfNj+Wh%n6DpMh7UzrN$gnJ3xOQxce z&A*IHg|qrZrc!p+psSLpkZM+@LbsKv&~0TZbUQK?`AlRg@_Bb;Dx|B(RK$_URQL&* z3fa)gRK%+)94K}r33d^XeS(%Dtm&jD)lQI={75kN`972GyG#DdOA;wz5reaT- zig*f+BMPfB6)D}Q6RK{Jscd4(l&MHu&VV3OVgC}#R3vszGZ|AbL0n}j5^Ct_gsvo0 zc{p-F|F7ppDh@w)%2ddBePk*ON@ObhvN9E=x*PtS@bp!ynu#efq<-J-7{=}1A0C-pUw#0?ihUqccZ)SyF2 z1J&1{cQF;n#P+AJAllJ}eH3ri98dcHP7|1SHn1GSR zRN;m!hObx_0}%C2%VK6wM#_cOyZRb}lfT@BQ(t`zn9W6L7!CRwNwkW%p}>pa-ufEr zU40Ek#O=FGYkgmRjaM<4`Wml;1IyMY+qy~1WZpn9vDESBQ;78%&&9%jK#J7YxDoFu zDHurhHhgT-Ih~`g!TR%9v_|+(#6v2S`Wn~cOY}8Xq_ACw3lHLqh$M*=Za@l2=B)F8YwO{@`Qv- z9eIMa2O-Q7>uan?g3QkEbg$9vnwxYzf6IrwO@}Azbo$xfzke!Om)kh@{ff^Yeb?6! zZrAJ9pYM%GuXEjQkA(bpyb>p;w+74t{SUD>+i<*Yzbp18p_Iq&{pR3 zjX#o}WZn75v$0_;}qe=}T9WO5Uv7S)3qD#qC#ybCV3D4E^Aq(gEkJ+Y?+Y z^>p1X)Kj{A7J{oE(w>@-7wdL*nbhN8jf)-!6QLdl^Wln}$p0Vq-UZICtEwNrx#!$- z?zxYdIk}U2=b1ZcoA!{IG|8lo^Z^Crp&&m5TRY*EOqz-m%C(tPkuV`3iVw=mGC+i; z1Vmnn3MeSbQ$+sy`vK|?MJP~E)B=hx3S#^Fe%IRjoPF-SGnq7*n124bZRVV__uB8Z z_g?$E*4{g$4F?@)!$F6HRNOy8NA4d<9bv|S8|;#wfV-X=k@>)U1Ly9jR|zMlNuapI z1DZEt-|@Q~YLj&+Bxw17oSM9mO~AWkrM+;M>>#)&3$+|!zq@4FfjTcnB047Ju#6tRbpCYD zz>tn8Od|QxcpUo>>Bov?khD3O*@tk*D1P=sJ9mEOdtZ3mzL%c&w(%Ez?E7=qz3p@V z@tYfec*B=o&i=NEMED)1>~(~Z*%A1@bWCOOHQnyBGgR0+GZ+XZ=nMm?J8Q;OVIZt+ zi-GXnVjz6C7zp1T3`9ON3`9PIgp)t)O4#vWS0ay!KDzBn*dBs`$V-NS@DqSW%6mAw zTAb?2m$WM}B*Oi~K-}*<20|a&mB=&0KqNq{X&4MdoQ5`HEDEvsG0kCUJ(ebQhc z%(0fRrMV{tB94;B4N9vRh?H)`@zr<1KyF~n#6To0B|cyv?E5JOBB4#Ij4GLATrm*w zHTCKEo(KbZDN+y&r+3 zgQ#7JWTxr_(RZ;ck$9wWj3ezzvdBY?2X-YANlm?;jS@I^CG;|V(hxAhmF!APTRvFr zN+kP`*Ic`j^=zdSzxWeWz+wYVv@3c1OWkFA-mc^i`}i5Vk{A7g8*G)B#>JXP_S_3*S!f;E{}40Xg=vtkFQ)NMNvsFc_@vE452o>_^x-_3VH$t)^KL1RqvebQ37+mu=h0y`k z2&d=I;&(TW!)+oV%i98By{^7v71 zWXSL%Gcq{%k+nzZ#gF<{zpU|}hWgL!QM&C$R(t=K8mO4-*|gfD$)a+=g)+wG(}C3q zZJZ}u@(bT!72D8<7H;~4#?VFGZ3qg}gdV6t_oGh0~KZqA&z%6(0v2%F+z&+oy*eicl& zIF`o03?60(`r=`!pNo6ZQ3hYMd5?P^JdE_q;b9V2FCO-(K6scEc6mIEF?k370Rr|R zzT)0ils;Ja4R*Yo9SawPz|WNEXhvk(HML`L=yLJCB@046I3fKT^YmSKm`t&5whbPp z*~^9P#krK|SeAg4VL7_vU35Kom`tIjViXUP+EadiHsT)QTq*=B;bF{=iYV{H!C*C6 zc+`XBBXHgt4R0x9X^z(rnAjiVIrGm^IgzZD1wY|-o=BTb#$w0rgpJ$z5W;AG$ze4; zeyN<`Vl}KVPYTcQHIc6~AGK#HW8LKUY@zaAXbtW8e=1LSMa!qM7$ z_5m?OR)GvAY{hbGu2!C${X)>*V>|>%q}=Nj_90&W27G@&$p?a>c`JDXC5d66G!WpG zY+XvpN+n5h!1o4xrGgh;Nj2buoHaX8Dw;S%_6`d_hP2kREj6@T9F*fq=%ZK;UyGxq zsZUp+JVeYNM}$#p_vU(Y+qa5AsE!|nqbcD>B@Mr@3u#an=RqiA1$bWaRy>d-v*eeG zl1IO!*`D;xZ4ebqmTv+9`fRCi7;!Yx`Zn2;+*ZS8>kfIVAroak`53~;w^?5Mtww43 zp}<>N65f3$EkjBcK+)Wpmau6IS)A`DQ4oiz@16Zad$(^DdExIc*9%9; zC~UiKyiFG(bl)V@m~*s-JnVb$hwocg!oQ2F2VRZKB^NMsRGzQA9AxKL3q9J)M+j4w zlqvWdE_S|v(@=_?FXHb4S9}@XHq7=snX_uyV=UgrcZ;|2-QsP0cknj(%ycnaRYCYXNI>)1hJ-J@HTN8(lm&- z84^hYc$@PnoYk;+8)pCqZZ5*Qw-o_kj z30sD8WV~hYHhN`v8^0{xrnPP=A2vsl$xy0Gz0~H24V2j&k;t_< zl0X#+WEg}tM^d|DbEN*zkZ=GtHb+u1YIBrgcU2kW>{+!EswRv$*==*gRtBKgZF3}z zU)DxZn+aHb=q?81pE*JveQSv;>?BGMl3bHd2b&6)%8*J_)BjHb?#LihKGm zxyaQj@wrcwIr@~8hQVNSlm)BFdysq$-u-Qk zHo7)P4Cp0NGaHw+Ir?KJMVq6)zzd|UyDfj@@w&f~9Px~p2VO&L*HjKqK7$x(bMy~* zZjpka%D#e+3&9%b=Z?)0+pox?HIvUVAJU+-Ir>|CiOtaoYuI8fWJ8`yD^VhbFCYfk z9IYa}V{@c+79?LnVAvd)DwDA(-Mf^d(P|Z}NW$oMH&*1@9I+y3b7Yyfug#J0ZfbLs z<5GheWn8Lo3G$fTK_kqP+8mv*3Zw^b!v*atVI^;R+=gQYlm3zDy7L{f(3=)TrP=U^^b zUTp0t<|4JH_3~nLDz!mk)_}Qi2&D}YTU>0A7zu5Vm=0}_nE8Z`v_qmJ?T}JOIZNj6 z;L5XP=*qKXMzJ`iTP%mz(iH|put37KVCr7NZrdylxg{P)xTv3MtR;|MUeko}k;JB# z*Q7~{>SP86NaCrYcIHW2q&e6kiKp5kNt|knGy_{C@ljhO@ex}j9#ShFRh|?h?rMqD zf-#VIs3ns4)L_nU97DXR8!eGY7-CsU3nOVSJU_{b=D{*GcvyPq8SHHaBK=LmV4YJc9Dk5fb;qBUJD@Gk650*$j_p zI_tMp+5fQCEFQski%0O?;t_mz@CfCXh|6wnH{f|5<`slX*VZ90-Aukyo z!B5~3WCn{zh*Mp;hIoV_5iX+rkNcg+Bj`i>A9-eYgan8+4TDFB(~zb?Ji?Gj8o(o* zPc4qcBRD!bc!YeeS8KPq=EWB}AkF9wfbj%{}o5ag;o6P+G+!q;w;Wuf7W&@nyzLJVL@!`T`!oaWb|4kC4ErUnUE5jrBRoCi<{f}l^DoEXQG|id> z_CG?SmN`8$Nq<2QI3ESu4MmX z+Va7QB}n!mE4lVR7qOL6Ea4hr2??BN|MS0J?k=J8_CHU0MX#T+|GDs$uGcE@g{ocK zuL56SmNC(B{(@L9zv3Zgx(i<*U0-}5F>_28zVL9HhaP<45%kI93y;rL&XF`vdHbIn zz5x55X=F+91+1Abu<7}QOHc~xIod9+(Bi7Oec$DiZLG&;7*c?Rf%cGm`3YBR7fQaY zolg&b0Cm2TrkADZ+WF*ggN(c;L063%FyKk!29vf9yuz%h10pL1H&|s2sGOV1M`o_F z7y2H8KtyQ6zK7O419${Qw8nEA zVK8yi?n(fo80@EqK}$KBi(wj5!Htb`ux$5vrc4c&F9dUt32?^CTw?%6K!fq17y*^% z;_B|W4r`l1oZB)8OPE1g!qA(hK!~fhJ01}4R^FQiL6tcZbR_Rbo1kiI-yG6LUSgX0 z48qVR7d?%GYNQDuA`8J-o`5DobrMv>cRcS4E1`IRzV$g1|3sbuMo@7G0z_ZgjZ!cR zlR1(J*b||kxZZc8G&=j!AEV8!P0tl?#7An@;~Xqw4L|Y+%fPk2Sq}|@a`q)K2tw)M zI+hxe;B;R)jAsrgpqLU(WKLq&1**x^sd*F3lZbdM)2%QjEsysYRu`J(@E+2*cn`n3 z@gCPU$lyH~Og5W3^#v;v+aMR`$p(#2y7z2ZJD^@nr+*3AX0JmtWp+TP(LM*JJm+8iHAGE)DCW0L(u?F&5GDkG9Kphcp7b$R-Z?n!_%Ed=3DaU;#a87^hf-Q zel8B?Vp@EsU-#3x5#ypC+lf5JpT)UKDRRXTF~zxp)R|LE_q@7FJZme0rg+wm0RzgP zjXVP8T)bGL7yj=)8=31XOVAh3GJ*4W79C}?ltC*Dn2kX6x-<>|Zd zESbLDY#TgFvzH6oi&H7lM3#V*VL7^X7hMmYB~!MkJ;k%6_OxDpA93qhI81d}JWG}; zJPU`Z5!GT5coxnSo;(YO-#iP4-#iOP{Bage&Yx%DsK+mrb6gxqm_ur;KMo{3t2huzm&Ji7#~vYZKOE@clEX8D z192si;XtF#x_MPN5NpliKzz425Z^5h#CHb=lFtkWlFyUDfmpAC1IbH<1Mw3$5ZTb; zK;l#vjuX2SLqZOevvAz+JPt%3;z07ua3Bc~YZ?Xz5~m?egE){Oku-nS_- z6$b~B&(-2UEThI|aUe-9!-3?JI1q=56>%WSh`@o^?+p&b9BT<%ntS3v;wX9CptOnu zN$Ex$Uws!GXq+(<2a>Rquz&+eI@T^lLYFj=Q6-a%D-I;Sram3t6X8IQKtdS*)h=bs z;pc7~h>W)k4n(gE2jZ8-fwb05<-;yTGO1&qdMQ}W2FmPGNaWh3NT7<;v0)I}rAY0H zU5fexB{6s+)Gj5(l&T`(Te}nqRTDRtC`2ZI>dAU)DxZyA(#EjbGQY z(JnG8L_UaQ2C zeh>+Z9J>lEiCONJc@HtuU04$7`eI4@B{9}R1?|ZnZ8aBOVDr#}B`wm2@>*uA@>{QR zOL-*ClV6xde1Z%0Id6DF8&|npf_y0~gf-w^lNV<{*+||_r6qPMBmUt_({L9Yz6|fM zQ{f}EQvr!O=j~J|pV<5)e~XnQ50vrb0w83^bF<@_?1(H&YzHDwJaq&sm16Qa2`RxQ z+qJ+6HqfrgSD@gQwxeIL_AvlaT6?zEa13kHOa4(-vUryeo?h96T;QUSY>n#`Moil6 zk>t}%msTtP29X*Swp-i6FW{OP`6068OCXww5KpomR9j4jfFRLi;zII;R~W=XOYo!i zkN`-r07&ZvKxznpG^_y91_h9CRxSY~U_6abz$KtX+%Z-bh>2iPBq$Tn89+vWq<}T? ztty8U6Ho%kB!JTHZa}Gy(~0|{Ng<&cU`q7vgC>>Ww;Pxez54)4fT{rGREhYIq8Cm= zR)IHx45$@BEg|a#l>%mg&{a(cdU2&Pwye>=D*nB&5_YFy=bG`(LrR42f;p7ammO?_ z-o_l_B)}dr=mU_F$lFnuKOny{q6e%N4=6>Yivn;U{QWtD%C)OGf9{b}OzSD8?{LA!l+su9hS&1)G>f^BbAaO}8lq+7X1a_!OT z?h`@s@9Ywub_rRZ*!5xBZw!rg8$qcgjDBY*6>WvMKTa?x_q=3uxOu51u78|+vSo}) z?U8b$k+Db0Mx(#9eK0pRVlXfUNh=p!`tCvGZ5jNEAgrQGUCqK1zJc9j&BBwtySK6t zy;8Sa!&ES+Xu~L0pHDxBO=j#ig`ev6x?Pq#klYsC>;l7S9?`0ip${O=q!_#PWIvB7#<9)*f$+Zq4+j$jnKivr; zys?Tf*LR1p@`^2kN*Hbt3_8Z51xZ)<<;yeYB(zewpPHld3R7M6Bl)qlsR)_WChO=& z&@sljzLd(w=mTpsH1k$@BQMbA%M=WghHxDuDtXq;v*82YVkQWjv2+B^o`xrZGk#nHe9SG)G>F|95=jHto%3l6WYIg0e%7r4fNcP#Tk00C z*Okp^y9PH|FInzBHiq@4kI@<||%Bbov7xTr$pP5ieZ`6&3=m~>Gz29(DE z%0PK6fEKu=g&~wDj?8PkL1`7rlfsTTzWNR*FOp>(pgh=mCO^u6MD-*ZF6@BnNs<=T zlZZ@vjVhUxLQy^OH8t({o(R=jL_*RZgF+oVKk4v%H?BwKTn5*pSBC5HD;@c61?sxDirX+?OLx6UWeW4GL=Q`*y44uR-5I$jY zRlhw29`V8=_&T|pH5fi+&hSdPz;Td$2dxII+y-Na);>VQ2=aFf5||)@GY~s?z&~_G z_5t!Je<^}cNf8A0PV{|etXU;~@GuTP7oil**`WioSZC*LXkLl-UA%^oBVDdVy77Zp zx{H#~e?W4`E-LtfX9K%_ZLAU*r*tC2TQ*$k*B3uvsAcd28)rZK;KhCL11WeP{6Gr? z{D5hB2k(VgB(Fj8a`O7Zog59cE>ip;7bZwv;SjRjQY;`xmy7##P7rD9RfKtUcbF7E zFzHCw&Lv~;0~Revy23m7K`x&`@+(e4Y{%uwy_BPK@B=qLwl)<%klJJ&T?@WZ`x<7h z!m-@o2Y5^I1C6NK)@Lo43Nagm$!n1?*3e8J0o^sUi9ff7W|MY)2eg)_oi%iqU;j0< zVKq;gxX&6|cuUvN!m-G2-!(Mn<0B;Qw}#e<{>-eQDN!*GLE$T?(2dS|VpVHs)|y>I z^WCnY`EJ+He0SE+@|mrnuCZKbqWWwYE`LVZVyWz7Rukgk8Mp-1BC)-kNBrNT^8 z>6Zo@$b3yZIKF22JQj~NSYwo1zFP5UF_9I92+A^_1z1C1K6Uuru2CwwxRLRH zne{VyHd{aQt8N<=AiuUm$-V@JH-cP4=}uEJsaZdl4Mzi9*c#*5{K&9vB*6>=!RlWt zv(%`hP8FG-;tH0(6{#bzOojgmC~_g5uVFi~;{+y9)zVeX;`u@>u}OuXA*^HkFLv5NGBCR>>qVHJl8b{%bzK&Imfa`AKUw1e|-x0ZS6c#m(=%)^);oAXIr332q zdKRy|brdUXa*e4tI8~z%)J#~BURLcKITh(07lY>R!M*~D@;m!Ml+s-k9VsMC5FwFmb_?U8-+^VM?H-myPw zC;R8;f&RlC_%YloVHxgaamNC2$Nq+o8;@gu9tw?UA8S6`q|1qQg*|Lo&fQy)-g!*V zYt1cH0)(m-H`lz)xWi*93>j|z82y5LP=qasF7tfNYw|nj^~|umRD%uA-GkG9_wB9W zOw;}0CL|&&nmv2#UK82BV&8l;E?J5uQIf0n3!{-I$cs)L1{b zNUISvMcGr(Lt~mlR+JL2Hcz&qR2ePwO=ryS|m-%My@R?K(DH|C+%0y&`l>5{xdgX0O>e z4~aVmNf}e^*@;DQ=a9RndDDICn)j_EAG>=`B;3Pnd=`T|@D01}U01-VMDlCj!mzr} zL;94A!kU72@V_uON@79sN9?N$pT%Fv%P2y3(+A0iGa~r2{AEoBI>*j&%BQPJOU8Vg zmY=g}?7W+?FmA8FGny}Czm+Ujoa|QpEbFyW_Fk7EoO)#lF&{@}%aon?A`Qp>2VDe* z^|)lych`!YwFA{YO^yUb=1v!&Ud7IZ0pow==pEAJ#Hm~cD{uawXd)2*LTkfyNahBZ4*0;l+90Z zt*Ki+fC6ZT8%h3BG~cXG+ZX+XALf|jB|ncx=Q{k+{&WlCxdplwZ)^2H@G*Nrs=xJu z(oFTh1*ya6Z5W8waX7vs7%AQnB(Gu&zPG)4;M$a^Z-rqtUSQHV_m$H{oyRefYC=c;VTU_rjp_R(u9B zE<5}oWw>f0957M61GLrYg+QX0erY_|JByuX;jhH3e{02Z z@}DStJ(_uV)Oim)Jy;xF97dftpsujH9F@pqaJq~)#*H)Est4Zv`?g7u@s`Or z>-3k9?}s4YUZyxZ`~@_C)K*RFwO)*pIwl)&Yxw1=*C@3b!SuzzGFVxSP%8~fVPBHe zD#9fP@`6z+z@ffayG65qjv&;~iG_#+4u!@j?zX-rM17899KHnk+9Kl$*Eo2(#P;!5MN`S5_(#HVsUtQVQ@2Y z_Gq#(6ntCW=<2Yf4i_04{eGg4pHcALoAWXXzPk|TA~Rc@SbQHII{w)Ca^br=u&|63 z8@NbW``gZtG2 z>4Nn@IzDDx87F9qG4b$^vfK$(yv?H!ZOaPaMWJ??nX+~Q%*EjG=*kO`3TUKbR3Q0Q zq)Rk{U3GYrVVkaAwK$qd;;MY$L181Z-KD0kzJ3SOm)Q8~aa}_X0D~xtcU+C&NGSvT z46Vb=mxFR8Z=A}ya{CY?QS zfmEdF zlJb&oGD+z-&qV&W_9<&U>K@Ur&KEN+9_!yu7FxV=pW=DRw@jL9zm8-JUgw|SCiV3r&~5rB)3SJ--$AY-eXOc9N=lAm$Xt2U>4XL17;J49IR-Zq9faw=3EAV%2u&fz z;FCM=zHG;HKa~^n=iPHcBi|OK^KBFUARpMiXDn*U*8C>iV%StgkQ8OEn}ejv^enW`4u@ZJ`kvf4?{$=Ob<}Q^^@)6n z9>OzrKcY2V?jKqGh&DGtMdASa9+G21Qo+e zam;(%&=_dWI4G$ZkH%1N_=}J@RECUq-HuG7d@{8RK%G_9N@?NM%uplHc#Np)s`67u zbTTK6qMobqsIA=5cmzJoXgtcMkt}lw3mw=f^h^+sp=>fuhWQ%PoavyVfQg}iG36HF zM))--jA1gLb@tLsiZ+x;=rq@Lc@H^K9gw~Kr zC|i`Uh`GD0BPzy2DVbrJ2yA2<4&uM8VR{-)aX5)-YlI0~9M;iJ z5qyaxSX+=|BqbG98g-udX0;LER514OcpzUFy0euJ!9Y3JA;^R3+5IUN+S~0^0JOY5 zg#MzUm`yYm7iLisrLGEsnaGFhgLo)jZHe$q=VihA?cdqJfc@PoE6owAot75Lw?TrF#SW z*@CNax1hlv>&+w^PTD~ z-i-dP_9HKVUur+{ToNYyOZ$(7tXMH*LBR|O;(thOO%#@$(!b7k+PtHORy4>@NNVNL{f!b0OiD00fc;5af=)j!Z4|Q(KzHq3u5>L?^nF}-~Vi%_=N2iB1&1F8G1HUA@@RArmzqlv%7FJ4 z?ns3Fg|&w&3V*UK#*@!L8&?4nJ(BI^^=q#@4GmRndld`YP>w$FXuFG{io~nmj-d*9 zCbg??E}`6PHxvvFMWYqg(LCZ_mKTcSOF&+mLD-%_ixp7?!>}DfE1-60LlljnHDSR) zhta5g^?tM{EH&UXgmx{C;q!w1$BN_4o7f$tP3{3MbXgbgh3yfVBw0h5!9rmVY=UO6 zlV;d;v&J*@r}0c3#xpQq8bKbB;s_JZ#lhXxGhp6)EU+C>TM$N5$4xk5T>}g{#@O%( zv=3IIaWEpUG_RR&(A-8WW@J}l9E^z{jt4HICIB<}t$o7WjS7~k^HE%xkAn%J;o@^1 z5ENZDstZhD@D39ltY0Vb+K%v!9f^noUh~+ti-lnebqL>iKutB66b7*6fzdCR3vckj z2nc*czQ^$@roC_;Sz>dD?ajOx?+)N=R2^x6GY`aReLOf1oC(kqs)i1YtTGS=KH`q2 z;|{9U{&*N>BD4qs*)Tpg*w10S?iX9&2GhX$HEytC7j#*DX%D4uQ~Ktlgs73T zY023zk^uo8@i60)7se+qj89%9K7C_+cyr=I-cTaO2W$=b1cAITK6zn$^1}G!MdH&p z#upPN5jO}8X*0OnlL-yZ8~4VKzt zHLXPg_6u-V&eYF>047Z`bTs?W6hkt8JjT>B|H zCb-X5F@#hndq~_VbVyp(2BawNE7@a7xL4TtY<(U0G72N}|GI*8lX4oFfcwfsCJ@O+ zQ}GUZCD@}d!XVkfX=&lHWLB0vwcBy%gJfq$g!o9eqD__)HkX#jNj9zJZL%;b8=EX< z5jI(Ac43p1zQZOfeXr{jYK*cjM{dO^i!UMoaF&2k7G)(EWl3R8IkJ5^Ct;W6l+Or> zPMpizW&JSHRJ*Jd%cW(ZVb;~iFAcM@a)@D;6vMam=oO|AFWcDIWjVQnm`I89gzbB2 zMr7)xKObD#MVHwOj4sQA8I85wqWX?M8^(UaG+KBoYm-~q!krtCD!fkUHz~1F=SJ%a zZ)*{nD&cZZJKX|1kHq8HX5CvXn!eB+O>MJEg+&{ebf%HfjhQ70bm+n26Tq3Y7J1m6 zF0`4qBzZ|6KZA%)yvYr=EF!97itX16H)=(&|5cE`m2F9wLmew^_-tHo?MWUjky0LH zocxJB$w8Y|4=#Euefr^|z3F6a-))DtI$r43uWF{4R}t4uUSX6LB2TATzshE2{hiaV zp2J3i1>wB22piS>tUWd=ogMv*>+=VtepM@K?Xgi)QRlGH(~6B6HeVxb)M>M|z(%va zv!Xol%a~{upJ?QXZ|4MqygYIFaaU+iKO;~4pPbif<%va^;$)6nPM+wU(^nxoyv)Yi zBRkwipWOQG5KFFdij@Pctk9eG>6Rxnqi05*U^AbSC(h|w)%HR-?<|rhG(T%EPsjl9 zV3sGeqSjuXFco!9o;a=YgkkeFk|&%tTMKz2>pLf>YkesC8-FLSYxT#W2J)b2FglzE zs&{=O=048*Ug7tUj}z)$kCD6;CU4>s`qiU&hF#wQHt^^CyS|}a=_2TM2-@S_6kQHM z`$?9cplf|$FcTIJ%q@gZ$Nr)(Od=YhVd6zznd-+8dEBZI+ zquP_uFhNlXEmZq_`FnvXV)03}*A&#VAdSf%lTha(M8p7*&_l5ca=1dZOJW>q4BBcLjtv|+hs_4mF;VSAy^wq% zDqYdSa3g{oBOq%>?j3Vd2j>qf!4S`&TllOcL)!=6x|o1QzM z?HMF*Ws`fh$@}qz(omhNO%598+<{y?$~vOXm3Z~rQRhnhsonwl+>s?Vi5x!wzfxfj z>UR~o+{>x1g)TRO()D7#LzlZAZM>Q9P~(o1JwTNuBNGOg|Sk)!8zlZk_F~p%IME zmaog{Z0UC*oh@ndI$Lo$dvvy!yE_aMC^1*^0ZPv%L(}>ga6wd75;#CI{5n zUUoWkwkGE+5#tjr>>1bDz8OrQJpNvEr_-df9o4fgwyjb-yMjX2o^_EaWLaxgA$vLc zF}e=V&hZO7kpH`(6Y8gr#o!@V2q(V3-*Z}tCIU+_cbe;;w$ zxec$WezunCXE~s<{vM!ymPT37&wj5*Kl?hg%i@nRa*m;W^|Rv3{Pj66BlUCjvvlmI zpB48$`dPZKq@R^=z53b5e7sjb%W@hyp<6%8SiFM~^|O2plGmW5%nxzT=gu) zC#YxBvSxa~lh@5^y@(*G5lX!*ubX{5{8cx*Vwt2IRL$Oryizrrl|fXqQUu?m$i6a# zczboTQuBezuUUEfx9#hZl4%qv!*V=uM;Bd&m03M&il?Rg*GpqDI2_?3{n&m_%6IN; z47P6PPmn6Sgy*vMy0yozuWnYVLHIoBtDAk#3#pqWRZcg%59#q&oMJ&nCnhu9>|Y~0 zi`OAQv6yXbGh6%Rynsamn7-xBE|$7HV9K$~*4x6LYGK*GDoDAX{xzk2MHk2HmwP}og#4h z3gq zfONsFi(g*%AlS#sJ6&ukSy*TDDmFH+<&IS}li9JFYo@i@tg0nZkDn0@e*M?nV9SdJA|KiLb>VJ1H!m+6*!jJ9h&en3 zIpEtitsXhxU+Lq@0d|hJ`OM^v(=7*Rrp}BUz-B%><$!Z%U!3`~FNE_>Q6xB>XJ2T3 z)?O}<&Tiy_2c>P6R@B<-QcXpj)1{tPU8-U8HPWRzZMGKjMAmmoaQ9nGPd?DnC z-Tm=|)`54u)s+--23gnsy6d&P5Rt_5ihY$oQN#ra*adF((@toVg}&!oc)UiX`;L_V4;nU}aWRH@jq|rxcq`&i zTdU8)FFoVp<0MS@muFl|kQ}yE8~KE-RSQqrTDjk}waR@@bbYsL-3~Y{BNw8*z1v~0 zb?_ujkwqNas!uSNJm=y(X3S4U@h~*$Jt;XF+Ez7$h;4Z%%KlxRHQw)>3q9Ll0=Hz~ zz*rt)fpaZzdneupV1UG9bA$FQj1X`j1}>f0N6V=ayi4K@+7f+n+MXPgQGvk~Jbm#L z8!LF$a3Dq_q>&UZ+z4?6i`YitZHFFuam*Wyu!){+7!)o;Uez{gl;>XH7Ekwz6@-NW zj(gw*<0yKgbAiO5y!#@=VeEfaf7c2O0hE~cv4Ev$00t#3%mH|EM>)dAc$jo?>nz?P z9<&j)H_>ebRj`W{g0HCEW|>Cu)t0M5(3hNhTC|OV&ruZ1Y)kI3r;mQ6i#w6Vqf}V~Wz4 zq7lXvwRYE|md3>UZEzgR5<@pijFc`IuOuR#$;s1Z*y&89dV~NDfJK*%%UUv=@e$%w zXvsd@mT-(m8K;R<;xdjCsj@I5xcYku$9Ej#2X0*-#Rm@Z(C@LhhC6kt>GybC!@W9H zcqUUa{78L&8*O?e>iaa^mE)ZGfP)?`SfwdZ?w|*J)b!Mc+KQ(>4C<*5ccAP+X*22+ z)rq5RGVYRU2yl^3<_X5+{ZptR4ACgRUr6xeZyEa|Z%l62@g^|pm~rp{+6;XJiNI!P zFU)N6XF6;^V=O+6i)4;R-8Ms<{?wQG?PD_}A?fGZ4AC+9G=j?dI6Kop+&RfgTG^Qn zbYID4NWy*H#%D451Mli%GsJS5`7gB@l9{}Ch_QGFW7-Vy6*pG1|1KotMwTtLD{<(9 zWH=*2)TCR{X2=PfON;VCn$~J;hL}az45itH%~1Ldo1yf*o^Z%FHbWywMQn!nBC?A) z(t%I+ZMNM*hVpJ+n;W{i!Rd%+5P#JC#O>WbMA#0RQ$=>i&$M#{yS$g#MbRR z3aRQiv9e!Zn;~I#;q&BA*>R+N&Up^)g-O#7nq$s+4u?UKs+%@p&x$;7jE=jF4N&rZDW zoX+ryGk#vaaNb#j`e}aF9`%#Xj=sh#LIzv-Y=X8drRcC0}e2tJor_I(v zXPEV!Qeh=|;yIXU7WW!?;$81>1%tdivHqRCeny`7RL*Oa^29Uj9KRZQf*CvodE#c9 zR*yXKT>AXa$P=2WGb2y1mCwl&uxLDYc0TMu_6M^(p%u0E@`S0V zbMnM#l_w0FuaP|AwAot76ItJR;JQcVi@(#Od-Nxv`0#N0bc*9Xa6RN<%#V}Xm0bba2fL#5 zBt?Ktee_lU<$j)-_LD_C3{9_&k~Gv&{%%B3UQKBjn6jWuBAP@r8Wzt`CneeABlm4Q+BQ@1_s?3Bhm6`O#VbX|R zw3+a&MR04Bsm?5`BD37CK(&OU9;nDv)xbJA?t$gH0_Ae_nF#ABG@$`=b(xGtbeV1> z2tS2?x8mQ2@Q?RKJ_FHTt#$PP^qbH!=z;!JbmB1oeS1~S84B#Ar~U&_F5&zGUV$p- zAe3+@!d@OqAg3c3G&1X1Bups*6v zE>yUKu(upxBixHR(~t+r&WLZ62xxm`%`GsHPhc-wvzsK`STwpR5SbW z{+d~^Q$Nk@Rr@2}+@gHs7p_9NRyY^J=w&fpR=kPeW^+Qsq@ED*ZgYS?*Y>GiBEc;q z6|RH5!U@mc|3@SaUF|1&bhST&ieJ2efCR^lzPeiRWnbu{t4;k}T`e8^>1xHjkFJ*P zE9q(_T(7Qn{U7(9@4#{jA9;mtT`gnr4z{SPid0nm4yb&R@^7e1r=OZP<0H$sG)4i~Z zF4M*J=xS5`b9A+jQ>-tqo6X`--EB@E%hv6@4XJ{ah3B&Ny0yozudY_ALHNACuJ-e{ zop1UA1 zGo)uam`lln=|TAOJOXpGJ5F;<4|l*7=g#2{S_OJ@wYl{iv$)a(i8R1?x|9%0nr4Nw>MWT*Ep?KZN5&06Q)fm7V9TDJGQhe0nOB^_{h7jZrzj1a&eI(8KL)^%bDF7m_Kt0Vm?<~Y@n zei?Z^p^o(LNDh6>m-!5m+$VITUxzbwr1XZ4l-|^l$|qEw^rntfLQ_Y&5_|>Qikr z=m%lprC2vTbnSJhJFxQ=$~CId2BBybed-|VSvT~QM{Yxb)018KA*HJh&9aHKRvWcj{5q2hAj2ph#7uN<%%W zp$U|Rv|U8hqZ*>n5P`UhXe>u$m8}&hTY3CI1ZC@$RJN8q;b$mV2b%GKRkjYa;sL8{ zCBE3BYyBp>f(F&`tEayN32CTn)vkcH?W1dzc(hB2uGRVO*0nMZ{9&&i?}-PC@_K>u ztjbl!(4U3>N$Fg#CL^}OF(@~8@pYukU9*?)6)M*nRjzV(JXNkkc;qfnLWguR2{I^^dBI@dwfxn8|L#Qt2XU8N&*uDkY^vmLYd(-A7yOOQeA zjWo6|E9{y5C)R(M@R90VzrhcybCnOPbCnOPbLGcL>s(EAd7UdAPrJ^Qk#_4`>Bhm5 zduHYRwCY^{5wXjd9~8cVHa%N)u2FH*RQbj7{~m8_U;COH_KagFUq%%>*jE*M_5KK) zX!+}ZSQq=xsBGwBXP~~!@0+~~4YGI>!3&NneRZ+ot2&|dP7-?;dg|xuV(HjV7c1_4 zbg^__Nf#^OdUdhS>!XWhIgL!wt&3$W-oZ)gV)+^*e~Y3A3*RP3vh3Y@I3@aGMuezI zw;Ek+Pg){{*|b)pi)9SZ#irSXE;fCKE;fD7>0-Zv%!)3SFRm_@q84UKcAhZ-mjTy#3quOGwEufN9(Q zbYJVD%XDo$y4aNeG8}R04$G5SxK-?(Wea!e7s+rbe3!M^tv!By^|4YF!t4F@vG=|E zIqS49vpQQC)Pl3WRgjC- z>SQxKmO1RgW7D>A^|b$twk2Jcp0;h%@4;iI=;PwC7Hds$-!z@9y?ba@%@f^vS$@asM4*^ZAYlRtQ^R_RVM-E4@G87B41iwl9Kj!k zA%MldOs5KP3tLJe?wpC{V_IUz5%v$n3N)GPQi=K=^8kcR0XGbJDj@q;P?$wS={}k< zo(qVWoP9LhNWlA2ajF-x0L*u6F35#16@C-puR;9_Usizb=^hwheDYEYu^Fb!%`o+# ziA^#4%bO6OfIQs4XD{j*`#7?3}w$t|SwBh6%ae8$oW_PrGP{j0zJn zp6&f<3^NNdD)B0FXUHhyPq7W)qGL;J&}F9qd?pVY91?YMAyLS zj1l&89YeBUwrk{IM)t`A$oHn@`eb(C;Qi|qJiTH+dCY>RbVR$(BI7tH({%-UI*lT1 z$h(f=B4HMW7s?7x`-P9dAm!mme_YQY)Cb4R%h9^PRQYJ@>4Y`KR&i?I6>NFIR?8#$ zA=qkpOg{u$El=pj*ityQRNkl`diY@7oIVJ?g#%9v%#IGkXD|krkcScSr3{o+Tq2xJ zC@z(_MC3Kb8GK9gxZ_r$#%aYk&oD0YR6`6$;)a@@ht|T!(ST4{R3#;B?~*eLp}mM} z7`-$w1lMv~ivpz(w*ROzbWG)T&BPy*EG5fgOs6am%Vd5^p#b560`~ z8_n|gQW*!(Hd=8rZp}AFVnFuzMAOz0cmS_s@n}3Y-xx0+VSLei<00`w;$*(DCEgNmo^MS1WAXGc z+>5(uzA*!znfb=na(jcx?Zxrd_~QA-Hh(Fa30)Fj!VJteF7+qkOL5HOWnf3Jv&cZ7!t*rU6FaH*#BN_{b5IaY$Qh34QOoZW zYTJ8a0a_QzLsJhwQdqagn-tJ`BSCA}gF2np$5D>xq*v_c%w+rNW|WH!Mu#*!G(H|Ib>uTtRdE6;m{hs~p?;)6T#7(*t%d z6KOq*hx`YN8Aj{6qVmXP#wF>N{~ z|BRr5{bXlBiaUivNh>=GlI|;E+7j;DHa?3T9k{CxrpNPoE-jH~ZCcA?+Rs257jh1gECSO`vkOc+ zeFvtUzSqqZj}aUjl#`2*T|u?^BGQdH4Uz&XP;Du#mIFL2zoK^%xVBS1BW>F#Q8&xu z+D|}AdWS5le%W%FvhYO6oyaed?W`PvY)dixT$)peo3f7A+Ey%XF%q4&wh{Mjy)W0s zGf2xY0^(Yp7j|^fWtgSCAJp>ZRLX}L&A9Mo_O18EI{T1niXUd}aw}W8^HikDafJC= z$*(W2Ele+!k$jUKNaAtMgnZ}DY11E?xNLUVuvti^IbU&q00` z51<)W1!|A|&T2vJ9H#wrEi}tqK|WCK*sBB+JBzI?Rv%#N+TCZAj*W+yK^-qGUDhTp zru|S!i1HuP;ZOD+-E7nE!L*-CpA|9fK5cLFY;BHL#|zzfwq}ZXmF0-Z>)PxyVk;{@ z{t(jH#xW_m8=E33#pJ7aRP~n4t!1+}q8M($B^BH?5r`Q-b|!ocAI+onsPitoY%OC` z#ar=GD=QBcIZPLD9I}nqM%3J5QV2Wmk?8pMzIDy})*%4be&_J)wa2rC)6Nb&TeGtE zc(&=+XCt1iRd5#I*=Ze}!?Rb3XB+NaBRo58kF~(FC31|>oNuyyMx5O8^1w?lQ!E}- zd7yWn(O8oq`PTb2hCW8Q|yXRib+PvQ zjIz2ox6kMS>@zYfyGC+=nU8`sxnEveUgdztLLT7n1x;<&XTOPg)-PPF$*y$go9d~(aok{b443Cj^wC*=4+sc#)=QYzIDdPE&mi7M z$Qtzf@Jn^p-yvbbzg78LgBIp>420X?j`9f&^{?Q`+u+=9-UgTZ#%*x9Z{7x{4rPe| z(0!l|Z79R@q_`F?@36PaVd}%keU}@yRxo3_#&-5c+{+SCUwsF&?Z@NNL~Nt0A@!|Vrw45cu9Yf5)rPa;WDgOP1XNHz4C+{HdV#t82sQ(SMW|ln{wXE& zB}hid%|}8Q6rs3L6*wYPg?C0K!5Cjj^oV8d7XleH+)ks;}>dt$F2E)WX z-W_)%=#CsMIbq0|1JoX`$%AIU9Ld%dy(f>a5e)!PPqM9yHVk4B03|=qg*4^~porRa zR_7SpVuUr!gHzbmJ1Qb|hCfo?(mb-FoZLW{>1Jv+|vbdbb|!J&aDAj9-y{QZ2Gu)r!zK zHtM1)zY2AUxf;8D9^E@3+is1yBW!66>pdC#|3a` z)jDs61W64W#c<;1xo$g!F0dv&K1(4Dqx7)vtcDc9KPdj4ee zov%lSgTC|L9)0Jl&N}mVxwI&Rq-m{2-^naOFPLT*`p)zn`p)#d-qs=6=sRymI->97 zi^yt5-$?-n`c5gWmLt=horJ#ADW4GmZIq~+)#y7{ESD(@^_{OreyQ)w$|3qrDTbd* za|-R^=sTSpLc9}+@kDL>YNTZv$Fy;OUU+R6U4~`#?Bz-M(9vgJuh^T#ySni&{m$t$ z*~*;{BUP1OSN7|x?-ZsNeowy34kYDs^qpV-iHDi~(46e6?_@#R*Sni|K7;%${tVc2 zRr=0_-|Yo8`)}gmSYiA2!bi2x>~9t1`Q-JT%%Ik{jdLn(lT0S@7LH3olaF ztWCcM>--D)Ft4^9Tc}hw?^!y%H0imDtKx-jeWzyX%wU~tW!7J@a8BO|p+JJ{$F&S_Nl; zzB8?(bNbFz>N^eht`W|ew#QoNJ0)_=hn#OReP^#c@Q;`&77wXB(5vtK$M?JQe@@>y z@cXXU>hzs|Yv<+V<$`p5bcmTc1sULxH!0FU?YJS#UB#>^7@$YOtS5fO??e(2mUAz)2!n6NOWq@ybh;;AK z%Gh8h^0=iqy+(RXUgs~kXG!E(CENOY4y zVJf3(4)_D5U=Dh=xg{SjsU9<${X5K`VIcwSqk;QE*ST@P-&`g2<{H3aCy3R3Mzdc; zn3eUT>y3VtScqT-O=uWeH_abwRi-N*m8nLN8qH$=gyLY?9^L?#Jy0L|-9@xLjFKR`<$0t;o>k{W1Wa2)acMrS1v6<8o zlqCQT{tGmwHnsxiqHJHCcL=*3f~ohSEL}u>+yZD!nK{n;j=t1qiK#F3SP(z?zK{rw z-G7=zLG!f~3Tk6boN zP~Kt7X3%y!{J!J{I*Q++{eeS!>p(f1p_23Vw-P9{VsCp^r&Dvm(Ya^>*t`VgT=xP&706){~bGrFT_*2KHY<` z9nB^Gj>4B)yKCj<_CF6^{w#^Dj+dZ0*1RcdCf{SQ_F%(r?`o8$uWvPi=__#40k$WL ziV2q>U=tEFz%foYx*wH)(eG@!qKhhrZn;V-qCEsDx zacSdj0QjZmwznXK%Jfs3jq3E}#kjfzZ6lRffS9nmZx8PV)D#AoLS0fAKnhijzl!*& zk&I?P7FU`(>h1MzA{8V8^<{J0n=Jov-1{NaVS7p|Flc$lMyk^zte4geORas!@SF?6 zC2#&%I0B_sdusNp&6~iXyY6K3U;{IH&ds=L5=w`58)~@u8dP!^m5hOd!NEAxZm9oH;_}4l1l{efL;w7T-@%_ft^G&@_3J?;i;z5M4^|ZR zF2k|ezks5yQi`C7tKzgxY-`0uhha^6Ksyp8oDiU$9SV+neqjuSF!NlmUJkX0ZC{1g z|JSF=dq%%9ef|q>e960C_AjrA|7iB3*FWZ7*KvEdLm#S;e9d{4zjh?`z4_CF=|)HP zM)bc2sQ0@HC^htc&w#2de|F!!V7tW^YTUhgKTd7xt8-+}K1T^jKUcp;$0S5h$#1sL zQQSF!$~cng{ph}u-cQ0sHa@$yKJbn{dOwyEZNj=t&+e01x_F4Ocn7yq@5k3bMzmm| zg3(Lzlj?dLdZ^A&KZXeH!f|Uwy`K{{mzK=)Hm&9LeosRhy3dhWgx)XBF7$rsJM@0( zdtIhmqxJhQ4pSKJ6TZltVYGgnrlIvq%L<;B-%0IpbjoJr8;uY#vA&};PQUZp1gVYt zdm(f_Apw$!EJ#MKENbW++>GasToeRmBQim)1_0{(YvkRXmC3YN%$4}?Y zsXx2mdeaY@m=FJQwh+uKO{s7bX!$Enu`na!IBFo><9IppwD=;h=Bjjlzwp6cU~d&V zzeEepzE(j#M1DW1J&w#^7v7h)i>vc1OF~>rFdhCx=eNtI--GvEK_3_I>(Tk8>16G1 zF+tn@tK)}mou6jv%;0@&<+Bs-+l@-x!SzG(PZ(iliryBlqi@A6#m?v8hJBcK<5BfG zeAGgtM^lB_4EAD*{>&?O{uAD2OJ&_|%53;vhr2i-=XZ3QCZw^mOy~Cwvgs+`rPg^f zi@E%TYQk=(2=$#N#h+$n?NL7I+^Afx-Oj!{)wCAQ0^Oe(1B1dj-QOy8e};kA2=hzZ zV=Z)lS)V8s_Hly5ub*7-BbYH3e^%v!F5TbZm%w?^+^+h}kMv3ehwmc63U{kM!p_Ib z%LAFNkC`}yx&KKvt)996$@FpOemk$*^@xZ|TR484>fG-YwrN!tS_l61LvD>NP-Hp6 z8kK4lWLee%M}E$fyIXG10-YJTfn0EQ$_>|_lN;X7u6w%WhT$L{JWSRz>J8zxQxqFs zj*OoCdB6R0vi4Gg3=1MNd>8pXJ@>FiI1_}1V$~9&*=q&nPu);LKaslC4AqTrshjs7$2-<>Vbna@c>-HD5Zhwi7(&8`kG2k!0 zOrE91+vFK6zFeN+;w$hJ*(J+6Bj_#dY%V0%iK) zw2mslOxdjEYo4s+b)` zaoM>P&i)lnaq3O`X2}uD_nS!je<5v6uo5KCV+k~=a7XpP#{pk2;Lya%^NV5U7Wmb? za`JpUaWvEd9t}V0+{!2KkDF`lj!RF)9z&@WFeaver?hrMAp&j4BXJKJw;=6?QfM-+ zwDvVB(D+C>W&(Wgg*S|k;T>0-+wP*SB(7*-GCfHg%)Xy2j=C%sEN1Ubafjaa;`o+{ zJpUxNoQ^)?&?`-QyBPVRI8r7~+vm`$`q7Ca)24orzv8fjEpAw(myRl0-=64YUH~zn z*m*Wu1iS-ahfN3&=sGyG=A<0!QhiEsX0UkcRp`<)VeufJTNZvARV(8U=j|t=oeX}| z@}Q^MR}G4XUyWot`w(67GoY=NrB&+DOoR*D!mB@yVA`fsad~JU@2S9zl+iFVH;czx zjc|IDdph~AwfiV$?eCI-@G-}+#hbmGQ}~T=3ng4VYH9-?hr+W_p1ztIu%nHr1)Uf& zMdcitcsz=$_&=^7#z=6iqU%Z_WQm6J)2=^nb??d!4-SHNN4iS4@}k`Lp33tzp?4`RZJk`K{={O#x}M#hpO>MVSp z@}86nbJ%N;1Tw#bhvmJuApcLw`gJiV9wJre#fS%69*c)aEMGNjgN0)~)K2T8miD8Z zjZzcGT7x&9gbf6@v!U8UH()aX+8W1k;}%EifU(P4m_>TO2E$E(&22c?SH?f^0y?p@ ze#3{p+42;4bM|cnEtwMP+bcYV4TYcAxfxFWPJ*U>XPy;4b>O$rT>i_h!0n0$K8M!? z6IbOx{7H;V(tKWLj$t}KgTI{@;E&W_sjwgMt$th$Ytt96JgyRqJsw0HV!6!$L+tL& zwdS@@afr>09qG8^NgkezcF;<$c(S&s>g?c7A=J}1{ORqel-oH2u(DCVTGhCB5?yuH z3n6RE=w3&gNX27oJTlSno7+ASEt>~oB0uWpfe^H`cGZItyoq!lnoBpb3D4p3O-ZMQ z(E%AKPeZil#3oHzZ87;djx5Oi><4vRcE-@O9ZsHdZlg9ZVI&(joZ@;^!nKC0!R$6F;)A6>wDBcJ1LmK#z$luWI1H{Mv5V zFjQJ`t+kt;^NoQPBIYZ`G+wk>m-jgwTwRR^TQ?lVV+arJ2_!`4v+uW5Qy9Yvq$ZR%#gocvkmqSD`Aa#hRC8AG6i2Pon3L7#|_(&fgIsc=9GNOI62Uzik3%?V?Jk4ukpAwJk6&l_7zen3jo;YK#%>n1nZc=S-{m>=S$#P5x(CLoIbKCi&Y1PH zZ*ckaHiu7H*M?7vg^N(uKj*zV+Ubfo1UEm}=-`40Ya`l%V{Ud}*l|0-fg?ofBN(K0q+w1mBVwjyUTd6=jF1@?OgTPplH z^8FOy5!Fd!ZkCC)R1{gX7L>cP1sUlghZ`k=f9cvU4MMMo52bGP^83l9jFb~WstlVf3J8WLItu~Y(M-OnurD>AM=v&k=>7` zaSn6_>A&e)00niv%!mSvIGwxj);Wehc>j`p?>v?Mkmm%jx zExMG;TVXSd-NVPxipaE?=@1=dVOTl>mw&E9L^}7Y0xLDY{ubpD~9P> zq>Wpho{6iF%U}%}ZQF!pqE>4a4bDx+eq6H+UPFVEYWD9#Kn2p;+K{2NHU>NLG1o&_ zx5u8288~033C%`F~jxQxK1LCerQ4LqaEW1%U!@gOSN`4k?4e?NnNPeQxD z2yL(qMrG{NkAxe42mT5J+!6BIgrv6l(?h9&BztL7@_B?Ka#IM7P(o=+Ne8bj?3V+Ri)S zQ-gqY8|y=48vq>OUI<&tSW;2M)hM@>Ksozm9fxI6B)+ot#b_xA$KzGh@#69;*$BK757rN1n5W=xSg2(`2yaFO!`kDwcz~i^jO?Lq6N+XF4pE~%)kNzom zh=tR+AjPH9HI>63hwe0V**XiTfH>x4ZwDKBBHC~-`A8O|sCtgD*yo^YuDaj38BGUp z59^T)Wz?NY!CZj`vcRZu1lx@2^S6H)qn<7jG5hD!v+D`3z`HT#CB1ZYR`CqZh(wuM zJ=7%-jw0}lYbvQEfu~RQ;U1eBdvGWrsX!0I1 zBIi%e-TW0hOMqWmJ0^;q*Wg9e{hev#YNk@Wbq-uLe4oe53vzR=#`QiMS4E?;ahWsk zONIBteII#!CiZ3qFri2p*) zx9EGZb<}GeO@5C_!v!6k)mjT=3;{qFViNMFhtX}zklcQT@!2T%74ZRG3g z7}pIhn&wNW|0pejwA=ZH)?nSmpd)}@^}zSDHc;?O$EdVDJ%2d)1H>ica!@#kc=n?% z{M$Yu18%eE9X;NxPOp~@2fL3Jy>RZROsU7QMA}^SF?~VGF3r?PaI~aec$1@yYSZU= z;b!>H)r-+lfP~o3akQ*7>{* zdQU5bPNh!#0ulHhclbl$B|tb76l!>W2haML3ILE^n*MPdEf?X>ND+TVAxYFli6KZZ zb{2^INW$13wc?bI7P2LaRb+XxaN&-)v>rT`jk1W=^&C|flDccnihm5 z5C|p5wvUQx0=yO!{vUg90w;G?)r(jCw%WQn_3K}ERqx%&q%$?C?kt^IG7F@8NMr_C z5=^u^fXRd)COTe(8%tsg?5(>TA!p_Eg!1w zL)K*$x0K0bqOKlzgtFKZVNK>y^@=J3OM;+ezQSmROE%77TbzMWD2AE=7+PScz=DQk z00}A6-lB#yK#h`=aJ=p(m`=GA>IVlcERs=wtbv>Fg`a5?e~tQn`{mZxRE}c3jvC^O zVk2nYkMyDT`jadICf{Ozed~!iid1-&dImY({dWZQgj}&V#N<#!lIVe@|3x=U#oeAF zWfJJdlW_Z65IznOdKPz&Jt{*Tb30lW^bx$53CDsBgtJsXA7(ggkXj z4z6-6=P*#eWe-FOXg6C+X}A*m!Z7y(sK-&ZZw^v--%i;}bT`+c7;^$VD!}ww&+{?X za4&!p2E+G|VhEcjA-Eae+yLt!HV;$<9Hubz$qMuVJfMzW+bCE?~y;-Kc?eO$s}`Rz-S#6k|aRir(FRE4-lKZR%zqDd11+28|C zH7+yRj&{sZo&^FcAxTG$9e1Mc^)lKC_qS_NP`uAJF0+ySdCq{?RT*Mq|Cw!#>va*= zvbhzu-%sQOy5W2PGjfszr7(?+9TyrKrFplY{L-{~a3JqKUTX#Y2QM!D_f3$^OFxOe zv8p10UbLiM$ojJ;2PWYdQJ8%_yfRVgI3(>`dnvXvl6P#O!KJMX4UE!dYHQrG$YzGH z5F4gpA)rU$+vm^Oy3g))b6(Tm-~4?tBHQJD#Np5Lo2P&dO#2_eS^%!ULx@vvU0Xjx zi_lqypj-CgDajaliLx#7(mbOsc@iJ|c_*b#C#5zgCH_f?eNy6{q*m^Uv^@FTI>a&O zadw4_?-=w|;%+%_k)>-Z$){rtbCOu=nDB&HYAeWsH%*yGX_y<7{X;em@{E>Di zTA+mBZH4acG<}jS#T?~4|HwJ5PE)~WcF!G@`kvnOTDg~@Db(3Qg$D! zABbOX*c&y)mweLZkC^lYAEo|b?yXE1KjI1RqRDwK|J0kwwZW;k&oZ8OrE+|4>g)|dxL=mKJ+uS2rSz&= zn6mAtZ5lE*a&61sqf>6SKW!sXM`py~^_mshgy7|*pyi}s<)q+bwf6B>w!M0yZ(`dA z+XmYNjeVhyYur@FKv#8v`rX3CymhHuc-(Z1Yth`r8qh|5kGG201a-_r?WPehoX z`zDm&xw0p~2@f7QKRCO~izen4RgnT*YraboOhq*R}+9lzxdv5p(tV|6Gn zaQr+fiH7z+X@#eLL8{zAX9W_6_B_GyWuznhnImI4$)s%m=;E7jmOqqp&#ZzcVZD=* zt9Oza_}UMB84RnPDC@f&VPA!@U4vvwh-IjeOkISQ-+%$)rNoh_?#~oGxiNMcZ}nY-G_odxWC-QqT+ zTx@mZRokAVgjqpmynfV<0q_V1^-8{iROAm={~5B9lIErmQ4Kd;oUW#;C@6OXO<|>n z-~0(L21s}p3y_po+lqqy2|>uOFf5jc&Hq3F65Q)s=Yp@daUY(nfDEBWDveYm@UUBT zcrWEsmWeA_aC!iAv=JeA$w;mZ!BxAYG52*iai{z2}|SPvct&nfel zL)jhBq3BH7*g!qyKM5j|GEb;xT=6yHKTBs7J7o{Y~>+GK~; zHZ0d?tF|GL4^zE~G>#(UlHyR_&mWd7>=3Y>B4dItxk5up8y@EvUOE?D5tgNB3+v~e zf;3M^KlcW3Bj#%p3nMRtezm0D{0Q-di=k*&3(W^%aRi4D<5%$sc~>(|@2mISwX(7m z2S~%)N5R`KlQDXyc`o`EsQPPZ%D(wR*61q?Wz6(s zn4V;(TE5k5F=c|7^tH2lB$~#N2@1F}hA`m_e@>z46PT5r=I~Ia9e7>jO{p z_FoPf`5s>^_h0@jh&jvXp`h0jEfp*+yyiL#&)Qu@dumdxzc_GAN3P-&fXhN_hb1fMV!U9x)8;O>eQRtXYJw4L~k%N;tig98))M- zRJkFl2j`9a{nW3*AvkT5Utqo8l!YDFKG_+o-#`Uz0+8)BHu*!XyeTZCO-vWUCZ@OM*#|gy7 z+~@fjK3_&JT!}=h5}hPj3i5YT<@leb!J?B)wIF}DCDBP@q9A{pAHXd)NOI>NTM{XM zY(w6!kbXmO^E#A0&7~mtsxLhsKu^;2B(3N~g;f;(%6L_%DgK_~c>#e;NbSp4-W?U? zt|fx-bJN%OT31QR^<4V)G+FX@S)+@LWa*dKG<44Y6M%nrS}#*2Nep*M5sC7RyQI=@ zETP)+`3~g6&Uhsd$_ddX{3&eXJew$^v>4kQf+_Za87`K-6W%T$4%%?S_4dC~e@OOh z%jgKWFH78J=jiP^E zj>St`j*6;Mv<;dTL`M~PQDn4ZuM-y~MFrP(TTB`K#w_Np8U73}xS*x)N-OB09fzVf z#prIJE_nI=G#bJZFD;X&hFxMipBXg{b_O$RFdb)6a9;6Oh&K>|bjjqpY=)gMMj*_~ z@Gh;Qeg>>5`PS2X**@<%GPs#TfCOqV5X;sXW+)3Ys9|(Gc_rv)#}nxy?0C{d1tcvm z_p~%Wmd%$cZQJHa_uysf`-qIU86bvf>vjz6 z_m(~eGI>iM$6wi+ARYWv_up@9s||ZgABFEWXer#xDq%o_bd5~ zBCn8Gl@Jl0SMQkqb$7% zak-^a(l1PS^hEn878>#tN_*b2L$whrt7z%XjEOmtEO|5`^huH)wqc<%Cg0Mjn8b}< z2X$c0y#+#*^cEb^)wlJONsg#*=2?5w|wQ#tl z7O#nGT7p=D^E9S-V(o(yCkT!WWD~rY;NVG|Xz>2HUu)ZlK9XBLHFCJXF7EGYI55@iQkOm))2k}WH z;+#wkp?{I-jl_*u<0qq0JRFbcMn`gUd~-b>eIUNspi}oYng)quDLTjFF~#CUe{xkk zantXD8{)BeT-K>K{wiFQ0|@EXQ@cXGrsDM$CsW;VvR*5`p%`z_(qE0S$b2^AtK+65 zq<1PL*Thqbh^w`F>X}R;+@wOL6hqf&_G{zy$+~!Ax)g6nuG&5i-i_Cx8iL<-+qcp^ zG2I)FB^yE87T96BwGsZrH9!Dr&=x*TteJQQb&~|9QFnPKXj8mtx+fk_HW#rKk!-~U zr{kK$=6JJeEG1jw%>YWY*?88}W^249ZfQZc#arWP{k%5bW>I!+ca&|@)US)LLr_Wc zdVFrt&l}=v6-C#}EfZdRgTo|~@eLMH*T&b!Ta`1`#@mP`FlL6Fc#}9ynb*N*+qNLS zF1e~OylsOA=T%ELf%lRd2W7iVxo91@s1e_YzsdGipUYqLNw!DvWV|-s?lRi(tKWsb zQchB{5Bm}54Zq6i!Ng~o=SVGmxCkk2Zc8w$qg{u zufd;^qK;}6OV_dE*Hdw#V9QH6aGG11l=Mqn?2{F|l7m8abLhCp-GcCfQVl&ERSls4 zQ0Uq%v5ymGDXBUyHsH%rmzn;!G*iRMPy0Y6B0P~P^OjQT8&gmknBn8S5~P*K<5UF1 zzzKPv1rfUNEwm7{cfpgYkaS&7D)k~WsR{08$-0a+xPw@nrqdHviYdEd81{AX8mS#( z)6a|hv`kqN35rlcf62sK(5dXxsQn&#F@`dIXEMO9C@~zdA>L4r2OfwwxQvi?;OGJs zQw>w0LG*J{vmt}J;dprIEyxgE+K9-_hg79n1#wS{8z@p;i{!=iWZWyE?UA~)Q^E;m zlTq}d+8h;AW7|2(88(^l;t3NhZcJC>QDn??lF`;8KFNwRyF0U+L<^JRu0`p79zhV2 z*5-c1Cyc06rWtMZ32azlnlwr~sBR(MSUf7pdFX*MyrZGU>y$R5hBiY>Hvr+9@KuJ7 zll3TFC0-A72yxd(Y`HEO)_0Pjv2+WP+1S=D!`wMEq*H8{GLPWV4P3w2agAd-$je*; zq6BHGII*lv1AKZX;`J00utI%PHI9dG=J^rnhD{6ZoPSUfDdPxQovB(nx#)8y7h0f= zXqSR{DE8QG-z-MwT_0Nt8{SLc)T`Dpoqe z-`W~Y3>&Dbg@(i!4UpxB9J$xYU(1rLDcSbbE2)|q)=XD|c}QDVQWwhjqB;tkax!Ne zoMVQ$X9JmcwfCLvl(3y?MhV;@NlL64zWM)x>$m$z!BE1~k1In(W$1QD2488nNu?_d zRzNUztY(k|zJz}4{)8RcQOy~H;1iNDMYS9@R4S!Z&|cVdLZFGH$UD>ZQ>IfXaqWYA z)K?PJYiDS1+iP$OdUV09y;xLmYaBX%e-rk5UJcy(_06^8f4v`j#7l|Q^~DVewk>!Y zF-cF`fs6>4rCwm<(jE=UoDYMV5QNLL3lgDOMEf*A_4`^Cv*kf$6>1|&=Q#7cBKqe( zsKir4f!Yd`F6|%@VOmcyBNynxol`+^z?Q?Wipst@d{aLwdynGkV1d<)>O%OsdPGSf*EX?3l&QfgmiM9n7JACt=!<-l2}OvtNMrOY)!Bq;=>w!)-0&OlbzH1X`LsgeB zqL8I4bFIs_BCo$o&pycEDKi+&;1Ul`!lu1wBW`BXjW%AWz+&T&04Ei=Du$zVq+|9P z>~jlS(yP)c;;I@t&3WQb_EJtuz1UiDm=tGDX4XUv4=q=l)l}sHIgb~~J2c-bVOdYx zFW7dDj!_z)=||HUs%asiZE8G$ri@j+9I5a!6jsX`kW1jU zrFGh;`ZIois~6Kkr!gi~ow;JFiCZpMd$cYzV$+kNO&aFpU=sH}fQudCD*n23lkurt zmZFMH9Jg*F1L0@%#0oe+)>W1gOxJPLB?0sK(>+j!;pihy!(%C*icF?AY!;D{__=ac z=+;pe&cM6NUNivP%*#-&*N|o+cELF$bigCoIV5(xt=-C$5T&rA$6|!@q8aS4>-?v< z5ua=vN~`KLM;ej*m1_t#f_0g`Ktx{ja~L{a>$J%(_i>xnsTIV%EG$H|klYa8AldQM z=P$y=>;Tm90!IB*_t)ygyYzRXRqhbi7WsXEj zVn$BHZ{bdi9TL(^vdVZVEEN?A)0qN-UOK`is2CBRK>TGOP;1sT$Qm4osg*EeU4u7( zYi53j^lBAg6{t<+Pm`B@a0;!Do>__}WQ89q{{rbt(j$nYonXahN zl?=o|5D00agD4H;PMFyDn8aJSdj+ksHyOg6Cv{C3t0XuY236c!F!CWRF9dNT5HRU# zBpH>|8a6dAZX{#zKoJ2dvMYhr1_Va(nT(5ciTyw_5n=fuczUzseQv$z)23wT2YyQc_$MuT=!EFJXDVF4+*T2ZE;nl_E^V8|>!>$RvamR~M6J zJPBdZ)d<-HR6;i6YwYJW_}rjK*oXjA`q_do#*kuTS5jytZhQwg-dx5C0gql)51S{+ zA?I0_P^`06k}Rrx6A~Zkf?*Ny%E>MZPeb-2Ipf{A>6P!!3D?H6MTE+@T)!dp5n67G zx51a~+XPCW^p{@doNU@o1uWE0Mgoennu?Tb@u?!SBPwDoygu!<4iX*fM{l0w0`x=Zy0lZMmI{JI?Xc6u4j&@~ z0hUcE-Yfu(5;N$z{S4$mrdP>iK%J5tigtK9CLLcP+_B;uS?36makmn+kd%n%neZua z&Qh_6b6Pq&tX?xo#WJBsxepLbVA&BsYE99OP!Cs{LV|4w0Qni@&kw{?rXJFUO@BF% z)+3Y9h;)HH4wFI$G>{B-ibFD?4J8r7rVm2cVTf-Av}D>Lp@Wg?j6&jJTf^vTtwDt% z=%twIXqM_|GOkgQ3CM1ACdb46jThd+X+EwuR(_O*uogjNKG+wJAPMHK$Xy4)%t$-| z7{e)n*FktQDq&1e!@`imFe1b=Qu;|F7=pNH(ukds$=0(0m2rL-pu@s8MjmWp;qHe9 zrF#aIknUX-UxkVdO6Dfw>^>*OZ*<42xg6zgf zSUIrukIuaU$(UI{+Cf7^Lux_hrjKpRRNG_|hI_)4dmyxs(Y9b1+)i70noqHhRh(I> zCYY3SnrGMkW@xV{(s15XpTfXfof4|5lu&76{7c&9nddyYPEHZ+l2`SHU z3>4<;yaCvN(L>|N!%=d@&*6{T-c8H24U0`s*NZk&3RG)ZrfAqz2u!s>y7Ez6Tvm_! z9*EK6WO1Xduub4YnwCI}A8=@jeo#8VRPts!#!TJ=G0QG)|8h5PEzB=DW)a`K-f{cS z;g9JK3%J%#3hdU?P}B%3u+bJ4u!Plch9@BpkaaHj$*F-%S#kK5vp9B~T@rOVO9W$w zNE*4RLc^{tRhQE_K6u%=BXgJW-Os|Y%u~OW?rW#(1mkbKWQ{_768`i`wP2<<^l>Qx z^p-S`7iNk1P?TVzQ1Llp?jZ?s|BARjC^W%oi?TmmGFoep8vQa|XN#3aPho6f{CPMFpOpZQV&bZj@fQ?vUk4uM zi;B2GD-JgwZ{ZclaU6sM0`H~DY+O8c5YumSFIgPoS`R5X4|^hoIJ&>}RL19_O(?mW zs642N_;P+z;+xZbVJZb)bo7tBc3I+0w#UQG0o{X>#?(9E4;l`n0S-m(mPH-+%Xa~ucxnDVFTL3S zlvA~lY6vJ0%212+T}poci;qiZ9d|&tU*Gb1J`;hmsjkKA(mL_5ujsu==1{VoDxbrF zv7?**J{mn#Xnqrlf=g@}kGNnwf8wbNqlYgg7V`^o&qus}<~bR>=E=+o-Vr={+43hQ zE73&la8Ge&G#ZCBT^W}P7>oBVv&f6;GNWu^?vG&qu<-bEP*D_4kC#9Ngpq-bbCq$u zIZZCn9K&5H8w%sN@|cfZewgdP8Svb653b@U@;Gocj&K?pY=pISee++8BZd7X5!^{C zdTMnIB^LO9@9UvpE2m6Lv!BNqKir3Pt!5mT&n1#4;2pHkLN#8 zkBXeX4Q4-403O2}`wflTn?|0{$U%t6z1?C%2k~Pf8w%vkaU5ngZRVaMGnkRFTfmhS zjidJ$PdtO%-SC>kxH()OHTS|%Dd4WvqP~w@&|swN^H839kX|scgM1f`93!UlB1g%>V+$1q5>|K!K611&z0`LE4R#t66gOWILqqYVvT_` zL;>E?C>8~Gv|$i9c+kklR;1M%@J{d56FXcuXc9XFa>%8#|I6HcbqmV%FPQH6ONK}D z8>0X{j#lQLBU`H;ZcZWsrPEa~bc>Yz6(_9UB+~iss2|?8u6t7zyn#K%m#y7*uu%iP zgRNm95s|Q~yqVn_Id5j0bjLf>)wt*IvasAuhd6vQI}rZ7SIe?Np4P5-Q#}DngxhG( z74Q!6R1aU?HZF}D%>D)9<{e!w?Jl(~M>+6V?njZPAB-MeD1%!LKz<3*^+b|R2s&qu z0$acx_lFa6g+;c3nvY>;Q;h*|pG!H7fi&4i6LO5r#A@NFzPi9Pt|huquc&~{9nk8Vd;35X*a2s%l;i(K%$}x zJaX$37jZ^~tv!B^SH=EL0rz2{181AWtVwM=F}@(91JuXE#hp)FZbbHEX30_9##>wXUk{Q&-1z5xhHw$tKyX*!^Ofabui05N>k5) z-U*fGjwqM(4<9B6h>NU3{_Vyn8Vr3w2|)@A$w2G3AOcw+mw>Q86UVspXt33f6b9qM zqFUq9F>DaXR5Cd8a2tu)&%6SC!H-`l^c_yn2_%(?xuj!h9&Go{6RZV-*So>1UDd@deht4>Dh5Nn5!5RDv(2M<7OJwDCu1T8%tKeK?Z zv3QLP0`Vws%o~lXn-ann7)4)ZPexkrjfd$w48C{(%|6CAdWP9CWHPsT*O` z!D>Tt)%gK*0W3RYa@qlHe<6?j0Wrx$Yc8HRD#Oq=$k$PliN@iF&gj<}EO#r)WSGK= z=NSpH2n)Sjp?Q!Po8YBd6OAqJWDtVWUWW5fj*Z#ctNBrAGGhUT6%a15J%;Fbgr#ue z8}T7yV`avVN?bO-M(wP7^DdTFC6DVE_Q$}PnRr40=NAHKnmM_M|QQRCAM_X$Q88PHb z5i-W&Dcp*usS1QF0m41kOt-%^fZ)x;fKMZk+`aM=I5hEa^TRra4su&jf37tc`b7+Y z6(DN{`Gx2A28A=xg1{lhnZgr3p9B8HZRg-e5ua-)EYixYwMb<_g$cNTCSV<40exH* zG>@nGM_c|<7IZp4W``%Mwe_;<;w0EC)Qa%JoZa)oQksIa{ZKT9Sni-VK!I`dS_NDG zKCWIXoLLB)hme&i@jn2n0N|%6`}K?$jvmTl_Tz;wKU_fFHG$^KviP6Q`~)od7i8`D zKTvPK7d2m~{OH&AA=$e?r60`X{BwOZ+N!DSJu0spCJAlKVkg?aS z_b?B~oej7zjMGruch=gZYmX8-+;gemAvn_fJ|uX*5f}uNwkQObSp8`c3v1khYr0N{ z=fm7SinVQ8;v96<9t6l_aG`}19NwWBs=A>e%`sPm|pp!?CTlhNF z>7FCDj|fC=A@Zrlp>pdg&p(GpaKNVJLWT(gFnF=0{c~OaP|m>qp*Ji?LyPIPQV_Sv zkr&!j5o)bB6n!OXk3%a$-BZr@a`r7Us^0Kk^c~+zsPscTr^kG-4o|rF7PfDmguhuN z2eW^t?Md%>xrwr~wTQ&u@&TNoK7yA*CUOUwuR@%I-o(IR7tlBa(8e~<;Gu)Ur+Nl@ z4br>o*C5{VCSHBuOj$q24#V-#nTqk~#ZcZ;JUVdfz{JKw1+fPX9gO(Fq%Kg8ySmn6 zzZ4$pXOt9YmJT#ujbPqHmBmcmQu5(85K8V%T-^p5BIw#S&~REm$^hA(@A{3be)2hn z3RScsR~@>PdYtZ3k08gb=N0t0>s`zYHNgbrz`29!oG7t~0zthDtS^P3Vg@#n!ca2< zTc5&EH3OSTVIwK*`V=-QC=j{;pO(J{QvO1R`x>`KpCvE)xg|rF*0XR?el0JYMe@8> z$WvqTU$Jf>4>}bGB;?uB20|rjIlr;xm;CzHx~DBoB)`%ZA&nXyH;}xWmR7$`^i3k4 z9NAG^;~BXoEx9N!d9ID~&MeN4-6f9k!&DQ}h6<;O?J;f8Z!&NnNeji;chg5}9Vy&_d5qUBoZpYN6 z2=?dd(Rn-;guwt-f=3>oi&LP1h<&tEjR?*2)Pc!;p`dqBk>HJM#ef!O$-q# z<60(;oDnx_u+cE6gID34ibMB?0~-{Wuh)3Rb5%Suv%gX( z9l4`ozBr=XpY=lXH$+gxrQGWuP)-FS(0FGv4;J|E=6d@Ud6`||_&x%_;7XMR_H zcYaTPZ+;&l=Yt>!gBp0cKNtw+g85))uq)Ud>Of!bVczP7WrtG2tgr?$7Y55>w;5RXMB1Y%eT&c*Zb z&Ujb6JKhuTjrXC@`Tn3k?5{x_(%(POKi5Cszq5Z=|L*=h{d@cOp-TCIU?3c*VM*LS zFfcGTFh8(!VAsIzfjt9z2lk=D`MF>&oU6^nbNzDzb8~a^b35mD&F!AsGq-ncAJCDX z59Y)9+I&3UKR+-(H$OkWbAH$S?)g3Qd*}B7S^1s8&TwaKXS}n2=fKXno%1_)?%cI= z_s%^#_wL*WROWXDyTV<)L=cE`K> zcMt5I+daQ~=k8s*ckkY_d++XjAVYpnuqWJ8+Y|5U-!rghZqNLloqKle*}Z4ap1pha zfk^qi!QOChZEw7{fA7HFxxMpyckbP_clX{sd-v|$2NLG@1^dE%wSDov{(S@c=Jw6+ z+qrMozTNxw?AyC5%IJrDb z5vBw)2Qv?I8_ex6yc9AIQ-mqO%)!jV+y-+yOl}$eFh!UW%pA--%xy5Y!{ojf{xC(D z63iUTJj`t{x5MzV%sfmHrUWwwGY@kc%_VZw)3kf$|7ggNaRqJW{B^ z#7qg1(Pbb$+$JG(9*7UONfccP;=^q+U~K-2VaQB*7<3DWuNmi&IXVc$*Fxk`5Of!a zuLWYxjLm;J6fO^g{)%0P6f}>*qJKerEp#3QM}LC&S^<`tIWso@u?i?Ei^-y~I4lCQ zWmZg{NirF!FrzRSz3^Xts6XPv%?}vVAMxQP5C-)}e7FTutSw8-Tr~n92nIJJ!l3?$ z4>uEmLH!XQZox7!#oDsOngL_;9}&&WP=7>&o0-C({;=R?0bqz}Vv99qshKll^B)U` z07N;_jHKaK6cTL+isTg~M1xd-rDo2I&3~){i;W_(XeW9O#4$4JkN89yBfFELH>vj_iN#XLH>vjcMdZE800^P{Mr4_A^$n#KZpG1kpCR=pF{q0$bSy` z&msRgF|EUw%%k+_JGx8ylP;9(iLg8~e1efhqMj z_Oh{08ylX&1bJgG8~e1ek-z#I8~KYH`HPMGO?+`K!ONk-z#In}y@t2l#y;Rzi|uwC4R1E@)vs<^_KLF&H8J6wON1hH#YKDe`6zm6JKrCU*oF{{G0g3KbOlD zP5o&je{r8SHtR3`#%BHL7W%_x{WZSYtiSjhoAuZD#^1PEf5P#rX?(Spjr+8*S$~ah z{EeIZukj~Me6?AB!qNWJANAGv#^1Pw{+d6E;N|ix3G8KKBY*t79P2Os#%BHL7W&ga zHz{sy|BSD0ZU2mK{EZF#OL(Eb#LuBUO8#Omqu!Ffv5~*}8yoqnzp;_O`WqYhoA_!Y ze-mGAEng#oyRS0PWMzANI0wBY%M- zfAu#u@)x(zAK_VljjuNAPq)yY{&U9P*sQo4gWoAnoeW3&F^Z)_xhcBu8Ijr_%p{KZE8>Thi1ul~kn{WZSYtUujCf0l2~ z_#2z`7k^{tayhh5Lx0U*+@}p3`K!ONk-z#IoAo#Oi_Q9*{KaPd#oyShzxW#)`SX|0 z8++N<$e+JF@)tXAY~(L)p}!0plj6?j)Mowh%M1M_zPj^sYP0_M<+c4I{ag<1QSuji z*|<*|oAnoeW3&Er3;mgX4)m1xY9oL3H#Y09@r}Q6v;QL;2JKPnPkY(8k-xxMfAKdq z>rXf9PaFBGzp;_O`WqYhtG}^Xe~qtp4)v7ujlFE_)5d1~#oyShzs6S^`J4D^BY*Wb zHtVnPjlXfT{)8icv`0gK*vMbp$X{&MU;K^D`qM4+hmHKz-`L1s{f*7~Ykaj?e~qtp z4)qj&V=o)~w6R%#jjuNAukqDJ{wBWK$Y1@9&H8J6<8RzTe<^Z z)KmP8jr`T$*sQSp~37y8pbHz{sy|BSD0 zZU2mK{EfYAY}Q}WM?FpcVlNx_X=Ahg;%{u$-{dbg>#y#yhRjv;N|5Y~*j^tG#U8LVt;$L;KYF(_TisHNM)czxW%Q^%s9*v;N|5Y}Q}ntBw3k ze6^9kiEsRKIkZDVf6ZUqrwyF-7k^{3{&WldVYB`kUv1W3{EdzLO?=~T+}i#bKZo{c z=&$*U`?P_x{^Dr z!q@mKKF&Yx@BI{rz~5vJcN53hk62<+Rc($J@xrb_^4imbGMB>)Aw%mboWDXQ#zsY zlKZOhe!FWtLgndqjThvejfztr#jBs0t{s2rpWtZUBlx37`*5mY+>6doapugH+VOvD z_mzVg9@Jz%cGvG9S?|P~uPEqk>msJT){VwxD+RUd%azTMk(o^1#ma`s%?eKFbmv@p8mma|9 zeuQ!Il(^h)cGF7(cZAj485W$EJI{S%U+=14#74M1eaF&7TBhUJ?d46uj2LMd2(tIn z`{`Q=rVif^Pg7QYPSl!Tv3CWpJa^js2>edH4@v8Od0$#@!n~9G%a_#kK4kZvcltY*cNYqwWkp51B?Pj;Lo@EkdKeyE3%hFdR>4OnucrMG?%~1^ z^#<}LkLLQ#Pog71zkJf-O3gr+dhhw@~Cs2!gz9ypKZ2%4Zg}J7w^HP3O*XKf3~~%7dC@xf> zK73P1o|sKT^M z((vwlW1;LJ;s4FPF`wQyf8zXbE?Op@i4&)PPI*4aHIdeFs8H39@@V*QF{!e<(b8omoog5pYjk!BTX_6A7x16nw$nYDkg5-|_$%w-<1iaHO zi#r|pK>=t&g=sDDjaT_tfZjbnZG{ZA9+ZSwhB>5@(hG{jT_}b-0S;dh%{XV(w3KEh zxvo@86TKw51ybLXZkljA34zl5p-`KdIvy8w{;zKL&G8kJE-;7 zrfqS4#IpOx*t*&%W!g}qtqn~(;e{fM;!-1RC5UHQ3FlAivUq4Eh?HSk+e4$hJ#fCi zdbxm*YNonCn*H>E88%vZ6pFYS z12+?HL9p{^J@SGWA0m@$V?HJNvwFV>$4Y-D@;E?k^haKZjAx^WD@-8M$8k;!?`NTe zd*CqqQ4Twoe-mlRau1^1sOnkN^jfO<7O%(qUKq_;11S5lA6jeh0va?jn&D{t`Od1*Y2rN!-*z+Xz%(s#WWY5ZT@ zm#TF~Y41F?AJ~+*ux**)fl-q_oT6~T#IMvBu0g^H9?Zb#U3)x$hSF|a@+AMsytdrx zV@vXJZtid}F>&bN`9e)kPt`YnmH_f!n7cX)Ul)2-_!n_P6UR5|=noU1aXRw|FOtVK zSssI$2a(t{mxnYL_6w1m2{d()UIBGM!4Dh`gBS5!IBR4}_mF|1e~4sFZ{m$Pbwbhy z4&w>=G_oub%Jt2EV}a7gN78;w{2}5Hq*^uOPuh%8N9KKPR@VtrS7|PVRdfGnnmfnS zp)5Z80hquc+&>z5Rw!~amJxkm-O~9GuyfeZc>$-)W=ZG6?Q}-?VFxFTLnxQT0VX95 z>1^UyI@>%*=L_Xw>5TBB?Q~v|3+aqpbbiWsf6TRmiFXbdSN=e}9fuFzFLajDA>IxX zFXIo1r@T)7IHV+LtCiu8!)^S5cxxS8kU}^_D*Pdl!5@;TQ>8lR$|5@;zhclY>ir0f@y5zQ_v&VR1Dh~E1A&*c`@yN{~oWfpv_|Ajp6@m+84&Qk` z4)3fK>s$VykwmC{90kq)z`#;L3&V+}L(M;gV*|b*M!*H8v!95tI6jM{n*T%(@^X}e zw6n7effNGWWLgSzjZ%&Uw;(C7tt{_lS=QOp*k9J-AgC1RkJ=0LQLd*kDzZpl(juWu zVQwqRWX2iKKYI+bCdeE(I`P^m>DBpRJ9Qas{MnCXW5v_l_*}(m3KAJhnEfFRMgz*# z3`PPvY+4*FYN$U3zF_u`nIh*%TyOjx=Kr1R@kPWo>x~y?>+vH(Th<|qb5;9#0};t7 zcEOQG{%CYW+p(_adA3s5^NZv*L0-L{xK$%)>u-5 zOV{&~ptuwtnr6D5{|il(?beq&2qaxu&m&Q@R$+>=o@ZiaO{nR}dft?bX#_d0=P$pG zx*oKJVLF_nWw@S*xQwUFWRXG>lw$>vK5p@>>-jA1G|sr|3SQUsi$E3E^GKvC!5)-^ zScW;bF5s*#6yr)+P;4h8iWeh;acIW%yh}5aTvw{4iCz-jbUmNaO%raXoK5f|wBvd{ zrQK!KcP0Hg+ZV|u^aBg6*1onN|BP?Ss0@ zCLtjZnFIPlE=-SMMBy~sRt+~{dT9PW4567&$QuL{hR{LV-A3LJpfH3ErBDjnNGI&r zt;{P}JwtXptK=H2o^`Nl{;Sj#@)0A0b?fSPt*hU)u6}1-!`w?vU3-ILKp{pw5j6oV znH<-{5oyBB$|mdkiFBXqngGIFMFBptLi$7E$G=2RIF$LNa?RJdxX!Z20{71ItCxXA zk^r_#TUivAOoFUlA`bM7%s5>AZ__ z9`k5A?&hZ4X>u8GD|>2=ux#iQ8ra4`51{%4=Wzjn%A9b7TxCuuolO&Ohg>+#(atol zN4EES6La0t^mCLm{0rqQsT>PeYxt})1zIbGSd`<4Y!7t62#QEOX&;88-k$=E7rH*bL5o zk#tf03Dc)iI@dM5hDi_oZntDmKFAWV@A>nf1^d@ByVDAL&mMM`Rb1&Du8oo00&7odHS=pna7D7;*!^YgpZ8Su?!j zTd@_Y>+;^S~t&t?^Rtf`#4y4wSgSIm%>FaT=Q9)P@JE5ramep`S5uwfbYBtB}Fdcy|`W8Bg(yn|P4fJRbJ z^i@*N3-b_b`@6QbejJjHroP0Y&@tjymY=CHfrgF}pi7+@#L!WKbg4Ci7&=Oj74>ES zTXFr)N+KoT{S>zT*E{t;k6J;0oNHYVeGUYySbP^#QL6|z%5{jGeu!a*_6PC?3K+D!NUD&-Ypwe5b&=pFTFec7czW;6FI!BsFle`di<0mrugZ`Kj$}GXIivkaiE6_sHDW>OiDHHxi;D z7A{1>V6}jok$8J7Q-KX$O?tQ*OM3kg{9WUZ;xFDs!=orj3>WMpu^~4xjf|^`Br&{F z6jzxzt}bHYc;Yr*BZ=d-R74$iqpks9#0As<7{5j0M#nJ<# zct#K35Cn}hrAWXYj*3eQE=@9MJ5_#b1yvBTjViMGN=(yqDMS8q3ZKzN)?^8$Akw#C z4#FO}gFAHgJXv#HQnE?f1nK;DC3<%8xPgZ6?=%BVwh|H|afKaoJ29$zR_D|pK=4IBg z2+1)pOTk%48$UZ>F@0w#ZG3IFD83}7lGOOx(Md|deui=jTVIMR*mo>)B9918r75mp z#TPlfr&m^UiYr+AMfL*p%BoLs1yQibMo+I!90WNR-^^C>U!Y!x42UQvbCj$B&2nXC zk}IHDhRjDY1hg}+F!vI-uIQR6x?rg?Y-{(d!VB?naIGVcVqE+jOe>Bl8!#!Z!1HG0 zP5Bot#fK<4FDqS7#9uwdXsBKIH9Y&7RQN?2Q9l1m?Qw^^!a3*&VlTKDH42MEhnnxU zqO(C)bOt`dMl|B{=hf@yy#~x6%uwCPBQjZnzBi=p;AIF;eI2(QP$1J)o@BX!5*5&e zv|(677eYZ7(uUAXp5$Q=;6Om=upQH6EDLgXcgz1Vkf)_(3c3^wWg-4la)) znm!Hz9yeKCMFwjSz|R z)BrSEO}?A83!FUJ{$XX#D@6j!#vsfIL97sgLSQ2{OvS(v-Rj2LK0rNrPGRY)1x zv4L`@P~~ou1|OHkv&741EncoPIjX^s!yIzQ{|X!_gD8>=vt(FO=Ff1|=iuu1Q1ctm zr(U5lIzJ$1;LH>xqWdAQgRD$hMPzx-1PAi(RF?Nf)TvFb^mxhgAPZz^DeE((malYH zW@LS*P~OK})<>b%2>R|0ncUY!_J@2PGuhvYyuNnXACmkkWq%{7?2q^Vz76fn$o__t zV50n_@Q>ohiwTsflqXgl8Q>ZM)^Guq#E|YCOZxnA{7sM&Ithv(S4s(0pct!w(FzoC zg{KG@Yj{D4B0{)(DR9J7=W(A19FzE>^2N9h0!JfQRC#Iwz_=sN@+V4X@m8IRASX&z znx!(P8!ca8<^&m}<%=hUkZt1P%N0Vd#xt@)PM`=02_yI>2*+u+a}MXT4)v@s`m5ue zi%UDnKbep-W`FqQjlYJ2{nB8J_WT2@}d}Xd_frBokCSR|D%f~<#n-&e+-igaF_f~_;D_2I#p`(ojL>}{?%L7jgd2NU6 znNHNJqk80(Db$U>3(Ir;5l}YO)#Q0&{#;#6>U2_L)0O*3=>KiOKOH`qcs7Y#156%l($cV))(G~%Gzfg8xZIN zpIBQ$Y@g7bl${}=C^wDF{sT43WakPxvIXi3nQblLE8X_s?N+jtG`b_8tl8+lJ=5Ur z^4bV7SVm0QRC^+B-WY5umnpss$E674PM|bPi%`RXX#kuhq^@^{*DriI!|NBoU;jt% zGq@7wpRM!7K)cpw|>&IRIYs0+&Q!DvG z$Ete8kM~}{=wq}OfP5aay?_;YU5?)FXezsZD`d29&t&%_klpt@DZ9T?WcRuqutJ1i z<1RtXk>vLg&_}62(od26v1GuXD8s5l#M{q}13ag?LYr7LkMVk@XeOr{1^v2lU^fcj zFB=C59@(UzAMThN2?KFG9)NoRd35R}Uwq#n9zbdAet`;x>x7gYxv)P`IUCoJ1=X7; zDy~d8%spcHR`(Vx-#)pw@Pyf0xJ=#_CBLL!Hw(bu_$YHoZRhY6dlHW(k9X*DU)t^l zIo;XQNO@h#?{GWZ73_i-eixVJcq?nPGW5rG55&qEDZ@6h#&q8y%>63nC~3K_u)Psi zIA?ZF>`cq-?F2c>oo)HAkbM)1n~C&AuCzL_-pLD(?S2YNBt^^Q&JHiM;qr>uXHj{C z@`3EZte}6o2Q%1Z4`!r&4`#G&5601r&*Hke@q_KU@k1+gPzD{p|iJHPW54Cdh%l_5_6ZQfi{- zAdIg)10lYYm*{Ss@wGc~;>#6_@`>@aJR-hawCdR*<2%~Eal!V;by`|Kvp>CX#qM3D zlnT0#OXPiPAdyJxW9dbl3wc*3n-VPzv>N@CdTFrL2+3e74HJ5=Mo|Vc3TXQ2u#`hu z`kA$u}SMy+TG)}=a*6wJ#uHe`+(ugC&)ga=R1VphIu>oRi}tj z+7-NcWuNJAry=M>y6q8mRGm)nXD0^8e=XFXzf0Li^hd!R9cM(woV~(yU$EEi3wG=Q zzM*pu@a-LYfZ|@U2RORw9^mR{L>@w&(*3>rI``tf+A|_!7u}0PSublZ4&fiQy|^)F zFK)FnB3YO)_i6OYzj_IKXL2SP2h(wP21X-$aR#p;sb~7-<`xn{8y!&YpcSx#mTFl` zSni+|u!GhPl^wJKcF;P&+;J)3Wy8b_5j>iE18Wo#>bXRdjM{%mCTL{17J_7J%DVi zmCSw%LttyEBLue+N;$!7!?7LzAH?5s$Ho+7 z9HjT9?`0DXY6b|2va`T$q$KFSI7>eS%J zLmebLy?~vLSi%wX0$MUJ0)Q6)$QccAhHerFfA}%)Znhl4pvnXMa!{*0LZD?5{q6|T zwl!y_mK{ObPPv%bNJo(NtvLzPjaOI#%PjicnNB3zca~ikrj1_+=wz5rkzvq(a<07> zsJfK>^{kJmV^6!TP47R`o;JG+s7%Y&wy+0xy@ATMty`SQDNh=Xx%6PtXt88ze>S9TxXve-L|X+C9kLp)*N_#)8>94089NKWN)K#7qFU z);sHz0uPB3WE7^c+%53*JVAr$>Zrh@^8{r_=L^)eB`7-^UZ7xzpiCLDz#fJmcU7YL zz;Ej)8<)!aDagX?*g52ni3#EOL%35)-ukeA%O?j6~_?I`wbd!O95eRAIx2fW&LhqLY5KG`E)v5T7!oH(1g0|X3E zu9P&m1$!(R^e1{?4dI+xgVXg|mknP%WY*BVw7sf~-tOsM347&MM$a8cGaEMh&$>63meuUF zn7wM9h9RW8H)j0o-ir8A#HBZc8DG1lBEH$)nDMncDdL;$jTv9NHzvN>28!{udt>6u zIipIPjIUjbz*p~?)4efUzbk)#oil$@Ymu{mRH}_!kgv4!)|IgL&Vovbvz3-$pX1j1 zu}(>Gf5q>|D<|nr2vMJI|Css&xpc37w98)oX!~CMSleE`FK^xf9V_mk<9SK$wR@u% z-fw>=;->pfSgNjEuG%xm?Tb}=2AR-oRc+586Phio?HOc3vt_E)zacbRq}o1(&}@b6 z;mQDB8$jroyNnar;6J%_u=~31IcC}Mrm)mp6{~)>uMyv@uR$J^+StBEe6zmB_}ack ze6zmB_}acke6zmB_}acke6zmB_}ackd?`lKgYU+7%-yADyXC2!74&-|?$M_t4pyb} z^^lLHb+vRRt%Nc7k+Oz6v@Fm^Mdd=-)#$ENPt#hB0T}EG+Q0XFhe=pA6+KE#+qgw# zRI9XiM}FqCcSnTgw0B2}=CpT5kmj^^N0#QacSoG&w0B3MmNEl+|CR0iQ-zW=YF8_eTZ&v$+V^U{?0Tnd^VYHTehD~p8N_x7kW+x^MmX?8Q|%%bRrP`QPYVS zcXT2qQRs`DPaeM5`D8b})z2qOGBQWH3VZJFyks2Z$0iaaS9zYZ@%0>Z$A+V|55rPUBWwWQw5KuAb2qBfw z4GyUWc7Z!WNKMRMB-6k~a25jYado4HR6QBr@t3mW&NbF|8h*L_{a~H1CdxgSr8(Tg z>4`%j9(!KEQ6fkMI$FfYx>&U$8vzf@ELw;zd zR2}Lx+qIql*HW}%?}f9sqHiU9Ms+TuNyFzpM5hdA!Arb0%_y7!`>CcD+Mp_Ejqi95 zbrFiH5Ar5Mhp(;ulPb@(RQa#0-ejocvZo?o zz8n_W?H_cM_X(nRQlO+~e|NE-%vpW#bQ>M6)H{K{R(%x2Cs$Hm#c-#5xsm{mjgQ-% z!{d*Uz6$br%=A@OzS%)Tv2RcXU|>2^gf%HW{Y6$+2X_pXh}(iYp$5xnl3@qVFR2HOIrMT9c~M z46ABQs!B7gsx_%9&9JK0SXCOt7uA}fctp0%;cigXW+WbsM?}?TH153I`BE-vxD?Hr zc!at(Mx#de^hXKlb$0aqi8W{AQLBBk#_Z;+T=!MB@4zY<`Zu=kcvAo7N&Op#gPzd( zH(%HOMs~guJW@)f8T2{$=;cRyuS0p1i%z{K{xRxzI<5qNwDpD9136kkX&)q*a4HS= z8t4_7en?!VC*s}-_XMpz#g(g9WcLKALtz#{sXk7aqYgk?2eUV9w0CqGjj-;fu<^5d z!Qz|g02p7p1uVXq4uJ8sIsoFE=>QmCs{Gg!xUsAr* zZCcVR-M&tFGu3UH?4sK=)~?$$-lp5++(VMZb?+g;3!m;Aop`f3ec_XM_H%22XZ}{Z zhlILO-q?lpqb4+oE_YSyzA)b_?7X*nB;DV2_JPX^WVr^BCinmJ&B4|8WV`L3&Os)U z?#X`ca`sQX+@#6(0{0@1*nP*<_Y@_F$eq$RRGTSnUHagrf0sUZSEr3W*?xHTMrtAV z0Lu95Tu=K!^AxJ*jryawy03W`z61F>%1YzXF(xK7=W#v)tr0+CB2O z>WzB!V!ioNK>Sg^UeeDm=j&h2CqZ)w;3O>K-c-peii4TniJmw_+RYyLwR)`U53WH* z<%vON)%-&^Hb6OpZ%^{A-`|k(Hh%yyP+S!D2Q@o7n zOOjp$RenU4(n$V@?d0DLhwXPMoV(v|cn$oO`_)~Z<(=$+<1U3x{vGSazr8E@SMNi( zJpO%;%fJ5yJjtuQQDLgFQ1O;7wEure{5y7W{*@r@{JXs?|3dT9TsxUw&Ht{Q$lV z|1vM--x~RM-14t+8UCFF{|-9*)5gD_L=q@23i}YgkR86Xu;AaUu>J(j&2$vjDdvVI zOGW-=deKA;{Hvt_|4v4T?d0E`e{VpW;%_xw9PM*m{-rJtczN6#x4fL*0aCJj>-5Ea z7MAtJ;}^NRziVHNJ@T|K_FI?5%N(07q60Efn*BmUb-=uI%&3=JRWCY+m*BkmM!ck0 zjx-qO@v}%%-n720D?g97^E2W-oH4Zf?t<-)g$DQ&!tnit3Jl6DZ(s8b2aXYAFdQTK z4g~dc>^&|V_pgJ&!`!*2z&s6xzo*084)YwCZ-U|5b$7tL2-`6SFEFrR_p@9$y02=gU6 z@cVa|Jo=;p41ZPFyeDeFxQAemz)TtUHrO}7+-TfSf&GmzdyM;euwMXkhjG6c_7cp? zjr%0*SHpatao-L5UYMUS?l;2bTLQmi+;4;ZYcRiQ-0y|`2QYtP+#iDdXE2{M?!Sfo zIhcPo?tg>*A258&j=u`*F&OFt@izl|8w}qxkbK1CH1N#SH?l$fpgMAj}4aWU5uzw!r?Z*9X*dKuTka2$m_Qzp(4=R6u3;T;O z|7zU-2X@{EPr~q*z#fCS#<*LsuY*i$f98}|(C9WYNb?p?5Nhk1^1?}PmUm=_xN5!kPWIc?lO4Ex7me#*Gt z2>Y!tc-K&V?}q(em=7BFpTPbQ%wHJyr(k~$=0A-4E3o|#<%W@8-t&C?0`m(ye$hpK zg|G2fe4Kv;Ac4B0dtlh7kk9h~=KFFvT%-SL?%QpK`(2nLPR!j6=m?**u8-e+BLYo5 z*cizLO>~;&2jZ|XVt|7VaL@vW9N^Hf2|4Tlhb?f#0ghPUr~@3ez%d6nW`W}laNGhX z9NorU1)5fO&8i{ zq1U+3#6mZ^(0&VTxzGU%opzyh3!QPH4GZ1mLI*8$vkM)v&@C=>*h06u&=Curb)lmc zy3K`-S?IMcblgI(bDVjvd~>FbhCwi zgA3hap-*?ATP^f97dmU9x4Y177WxbqdaZ?iqYJ&xLZ9hEueZ==xzHOd^w}ihQu5V!XnQRMy=zU!6NRsk07>nYaHR2xaq zs+RD0{F(jLIDpb&5C_G3j?8}kE`~0Y&f@`^O2H&Ei&Z3b_w72)8((NFjz14NqJFLi z<1ByPT_nVbI%+1mqdy9mtf>YB-`>C};@Yd9`X^e=evGo=^oy{93IxF@?B+0t&P;zP z!soUG0soN!g@mU*kI#*sFQ90q=miFXpwXgKQUF2Zon+9uTK61j9zixXqK&2U$g-3g z<;Hse%^FKhc#wM)<_y0{8Pe+I_Lp`c*_q1mpZHVnB_|Hx`;`G7O&;7d7FWj?cX4(( z4D-z}(=d2Dxwh%X*0aaTjfyZp&t0T_we@s?knBBok>b_Xbz|j;q$0%bxr=13w$@GN zP^9uits+$Jxr_9zwkpRznC4zj0rUBhi2 z!cMouO?vx!n~xxosQK;qJN=P3&>*wjh$77flc=D8cd_C~Lq3HUwj;g55?XW_?{gKR z=BN3ElLykM@P3#g3|JfAG%W~vMr$9QB|CaU-|^~)yqClUOb>Ep#V%%JOV0<1lCX7i zTpVYZJuAZu*)WYboS3tYavYYHo+XjvFfJ_(>t_UpkK8gp^_hHV$y9ao60w1$a+w;t zrtmn9poND}@+8q%-?}px+_Wti-?SNxZ(BdoFAHl79_={ z359c&ugQmLyMnw2jNC^KrHu1)K<#f`m_Nfd*7SpWUtGWC45At82O%~GDy=|Tc(l3T z7w&!Wz@{%1qS@HHi@lmtlBlrQQ2_wMkGL+o*#ub9%Pn*0=ceR$h6U zeUG2}NmKyqqu39yjgyr=^a}S*|1-)SNl&p61s+-$eqImk;TKd(Gv08u*w}15i_%pj zK^>3BB~c+Mw62T8@k3k#cyU2Xec)gcmKuxIQhiHb3?7L?yatFWN5jBC`hHY2`+M+W zr&X|l0+urrnGA}Geg#rRRCR!agPSx(ZzR79^(_Olf#29#Ier!luH5g>bZdBC0JX#} zm}|`Xek-rNr{){w-h^D=?_Ic0t8cCx|4rt(9$f#*_7Zk4f#2*w-O7=$M+J@j7ZGzj z+V3y+6sD>W?<+!!6B7pxfA|1sU#J&c+NZ=uksE1|i6@>d{_P9%xIc*U{yWS287Z%_ z3Wf-dGXCJU4PH37^geh^_uR!1S$MitzKbKZ!{6<7(83GzYN@M@vEm}if9S(W5NZVr zU}wA$S--c0Dy5D%IH<0O4L}|wyte_+iaMK7MTfzlu{pmHglsgo0h81DjScj0Guj5G z&{>8|su&l}giD`ARqiF)fZosRtV0s3Qic9YTu3Ob;X$S0=iI4!3qe62C8DpT8vd2M5 zrj@K`kQ)QPLT-a{a9EfwntDYtIQ~EG-ULjJt2!I5sj9B(b!KXMrhBwak1UT|o}PWY z$h+kY8;HSx@r;C!EX&3c;Ig|V7B^!Igf-Y8JWgU^2@qikO9DwCUlNl1gg_ubuuWJJ zY?;MoGq%~n8qD{;=iI8Uo*CJOpC{k<|NTf)Rd+r2+;h)8_uO;OHEjkvQSKUY1`>el zMqJ68)=%|0!hdCEFe$Xr1uYq4)Fgex#egx53O@okOF7d5G9|QVo}5?OJP&#Wr+YSB z?q(*zRefA87-Z%b#ci)AA#}a$Ap{7Md2JF0!>%fuW>oN%y9x)#a9tq}iETfW9V^HO z0v4}26kn;w>Shj9fk44bIiDSachu+-Vhxk1@*+FMA0;YWtKA7aI@TQelV?ip7De=d z*$ZQM%C;S{plAqxM4qgVRk&HzZ&2tjhBZXZ0#z;wx-qsMP5A{bzInmI`W=Z z-8FnEe%t5s-ta7b+r7bE`T|wHw|dvya1Val@jkSRA+=sUYG)xt%A($!@H%Wdwg6mb zaU32m=X$&9->VHH(3!8!Z^GzK3~ru;n;UU z+@z^ll+B;rB1apT-2iqe)YWg0qKyoPQ7W0INY|2<`5g-)DjF&6tPSoe_+!P|;0;_g z`Cr{XH_E0+SZ^w9h(U#+c8I)rU)>+~9sP&%XCRoyNMlD;AL$yc#A&!E!JqBy%=2_f(0vjkWPLF>xmrMaHh>5U)p_6q^JB=* z`Uqoyfo&28hNh7w1PdNLSi7+B$HE!6y6Kw!MV^elGh^G_rZ?qnNs`JryJPh|&I-Br4 zng2#HQOgX_o`lRCp!IFBeM5@SS9{8FIqp5{E5PPIuMF3qC{-|M$w$TqJfrjQs;c|g zbQoC;v`^`Pv!Jm10&mgw!^==<$-`)1Ne1$4Rv@o;WuY?Bu$%&Rxc;Q2jln#MwU)Fn zWDCj}4~uq|X4(hoMy8RZtax5IEd0^7IPP9T-fPcdh&%hpZ1UbXxUiPvNoli?X2LO4 zAPkCp@jT?CUP3G17*7@Y3GRaeFoXv++*{OeZ!y{7jWf*LQw1H^)~P7(4$LQp4j^W+ zgAEXv4Wz$E?SfORgC#|$ATpmVc*U&t!uNbMg!J@e16N!=x{0ccn|D{HM`N|d;^j$b zbvmB<;&jz{i6#!g6TMOIDxp)(1N7OI7rdbZYEcZcd-tBX!; z*JM8HOLHLM`n8$)f}e%CPAOM=B)SImi!3f9wVaV|tqtc4DQyw8L@s(JlX>8kB3YOH zobV%6-cd&*q&fDTAe)OgeM962m-Ql!qw&v^;p*!r@tT1Z*SRc?-qtoD^$&Ix?F9IH4M||mcaVmR2yvvAf4-UN) zJPZn7BfY`-MTXUeckWn1h$xTawmaz`5m7*SSe?jNTpl-*ikn0};X49P6|2zm+l=1{ ziQ2sKp2}nv?4Hs-xVem*%aOOuD?0NU#+$XB@HA$@Q_FJty23LNQp`$kDvAq@7bdm( z0tspZvtexovJ|1g+wjC*a$r|N8A|C~j+uk1{oo!R7??LWhZsZ-ppr}tN>?L;VfojIH7V- zT`|PM)!VB(A!Nfh%od2w%bvp1W{{pX*0x>UGq-w=$+0KSa`YGJU)Opn@_!O|5rpPt z_AA&$r<7AnPS2oqqi7w55*u)!g!#$O$Fb1!LFrRDAkCBp7wZ4!dY5E{#}!aEe|7~c zYmpa}j{gK^hMs6wF6l2*AK4*UPH1y!L7PX^doxPconxy7j;RB;|+yQtbk3L%57*oW=tV&rrEY(!vt30o=X1>1*P>Y!)l z8<0x1pbqd*jnhyK7s8Y0np=b`RFXb`(^XTa;IGaexH_CO%z~h_)Diu*wrvOn}h`4MyDT>Qv4VJ;31fT0?DFNb{J7 zsVozEgI;3lAzU~m6bH&sOAinS)bTLw2){G~q)>-ZQ0mTQ!zTgODhOm8i-;osgZL!f zVI;%nfmGTjA}tckaTOKhWcrPfix899X zdq9Z_Oi(TNfgIa;bX^|wfE>$}azDt&4a`_H&<6d0pdX%~%OD>_n(~qs36xrODd;0P z_JJI`g&YS~DsKQu2H?8Acjg_AX&S7(brZ*J7YU{Bs&7j}eYx!!~gJXDd z3?KK|z;#J|Ge(?0iE&rm>D6kxc9gyPu@FsGLug~;sH)F~=c5j|0fNShG$AWIq{ki* zQh>~A!!v(FmmMQebz#NYzdUc94r>>=MM7tjP)tR!)8l$ss*eVtMkQ8HzLrOts>?u(*e2TOi&8p|JY!}5a)EKyP@;WzHl8@Z(Lpi|6&1ch^I{-_; zugqXe2a#T7>afaVj@Z)bdV`zCW03LqG;&}p4Pth?GLO~X=^%lTf^0L#Ypa(7e%R4b zcLez73-xU_S184-y9M3i@co)C*=t0o2TWxb;v)zkgqGI{GKjPJ7YCWKY6T?)?(Rc@ zD+%#QO>3qy`FXp-aBainTPk+NF{30e?=n7wmOSe(Ft^?Tc);QS&ul-o_$rHTWieA( z#GcNRNyDSW>|#M-E9HDp2fF-hbN&$ z-jh}!jNphYJr9V$2Nhhf!Wi5h%$q#~7m=tcC`x@j0(6Px_SSz7j5g>ctVQJ0H)fM^ znb+n#EWJ^}E1)j{vgM^In+f6U&~W<67#OhYKh&KWub`(g zsb0&3(rb1V9$D3tfaAflGMNAFOvb}(8NF9af0C7CK^yn#|3#pg^n{&Nw1*;(Hmvy zz3zdAP`+s%wkZKyc`;heS_g$>;HTh@mJRH)0npm0Coxcu73v`>JmAlSOqb zW+hXz*+tXv@Cm33O0%}6?(*v8q;R9^)3weOXwSbB7x5y7c305r2t57R%Spi_&?mKH zu2z0tS;P*-I4Khw%oGs{W@R5KcZny)lvnWTd2OOcN2cTK@v z@4rk|(zdK(RUZJG0qzw8>Pb{si5f&QwA~UaGBSE}m#CjAqJA2?&*-zd+O`{#S20W) zc?If*EqCBlrUo2V{cuvXtfmau+z>U$nsD~SimW}Ls$uY|m+paeK>5yC*{sX3-O{b2 z^1-ESb$fLdyB{L-7aRyIUCvk@8d@%E^ZH*)Bi+~e% z-$7$$bfI8LPy-C_%h?y1yNx#1BR2@2f;jytr6J= zfgU^A2jLBzReW(J<1-0(U?_dH|sd2Kwg?C8;03oZFno32blJ#R@X2H4UD6_dEZRh-kO~-Ny%2Gd(aka8JL!U z>^?+866TT;RJM38+RZhSvu0PG3m~qTivD;d>*=bw1QRM*7H=Xq;ks#<>n1F*WaYGr zij}cJq&BPUQhSYa2oiZx3f8DxS=H+{mr2z>cFQ7~XXV`nZfW1^93lPS!9YTo&qOc@`buc^60;Wng28Xtt;BcWmsd zS0%4!eHnTGlQfmaDWwKl*sRBMX0^dwO!hL7=)|Qd9GF4Pt$`;2rDbQ$71)ZXZHI+j zIT;zW?jl{+FUOVxkfRY?1!sX1V#%v-2D{U6ST_+>i_{D50^TY!HC=$x@`<~$ak53M zwG=~A1Q`3|-*yh2j`Na20!ovd>%YQwgC?=oDnLCc_>qNZMwY(vI-lD!2Q-R}(^*&S zF8S`%7jt849oRKVdNE_f5)im8doTwan7EH*EOh@;JipN1|Kkjz+!)$;YG%!+vgnD# zzDc$PR$!&r!i+gjWzusnm)Bix9%`Z97GKy2=2as#yAs-arfeQD-c+7Q$%Ly*7?E zd4sZtrhx@tG5~gEt0fqilPYA4o=FB!zd++4d5@H2>rD+vgUnsGV@@T$U07)DN`FBv z?D!nSXRbQ+VJ!)4&8zn%c|91Y!gz;FQPgoK-k*-z^cR4kik0$ZX)s{<6u?}DEDxke z=LCL|DVwS~+W{B0=+bayVRR#Ky(57OyIf;ybdga<6{dAL+R)|zB7_$O@xIPDm>GA+ zA(G&Bvu|QsIe^cf4HNdO*_n7JFa9U2Pwye!bG0)#u`vjYReFE~9{%$g1h7gkG)|-> zxgDeSdIfacYb+orred#g-g@g=Zi#nmytg>s0}XC_4xagz8PJfQOzP&vD9@}h24=BI zIUXI4kc|eO4GBCvsMif(r$B6k=QMiH*~INnuW01`?BZZ}FEU3Lv4nbMNpNjA+>MsA zuM#?&`O2ohM}ZWU&noF+gPdB_)8$O)&r&5`KOSzZQc@pw~kNNer6y*HqM11eXpDy$XA!}<DC3+JNSY&4yUl^U!^5 zN-0Vx(Vcl1LZ@_y@_mxk5%Ml9w|D35-Pqk4tPaY|1-owVP_Eh*YW=ZetIK8GqMGPo zvqU6^?5IkED3|bX|B*ktvS)ImyW{?;Z|;lJDj&87M(u%+`}|UtV{wkVSNOD%T`NXZ)tS!OUW7Cz z3|Iq-KE&ukcI<(A77VQD58*?1D#jj0P!&NiN6136{UakEJ0goy|0-+NS0_tP!^tOm z)i~1;dkyf*QAp}3A)S_y3PDW4)p=N(VjoiN)~={-uRLOO&90p9Z`;z+X4tH5l9}~) zVo5ubwxq58pRuHcy!P8!(vruMW&RJ~X)>qiuS^=7u1XqnE)Qw^pF!T`za{dhhq=&< zDWT_2x9QmtGl{V_r9szVWSjX(T4wCyxKpbrM>HW0J6h6@agMu9HY04ms;w+s%h9dpSucDQ3$l&r zSmA~rQN{3T3Cr6z{19JiuwhG#ychlG`AATL6%?15ayn>JH=vLtSttA%cZ(rFdeJ!J zu_K}d$y_%LSy3yXIN?QSGYM93nuJyur+x(33bJb9bSex;v1rc)*)p~`3-yzbk}$S2 z8cV256qddI5I5K_NHu@gO(8t0TdPBv@Ktss!x)&_qH*c&OqrniReU zX+~r1m3!8Ap%+&S>pYmuP3^w2!yn(yW;;(XkKVeLmp*#u9iNZ%D{6ML;U(%=9+i&bBZ~ zCm|B<4q%nYXaPzhD|tRPM+FpAjk+DtpWxN9$NKDO2hvn$a%uxII9Y6b1vNNYg}`cC z&xDZ7IeGY1!%r?j*{G+1#lBR;)Pg^_ZEW0MwQVf)*K8Zx;IG>@Hssd|+r|d{T4~!@ zpI-~MjX@eHZyWRcT6NnvU><((jvJg63#%bJGS(#Hh-5roGS)R??efoVSUKaQWIRza zo+cU3kc{VQ#<%bHfTY(gQBZC_Q;ZzD$*v@z|;^L$x)~y!m)l@!O zd}2XU%w}djXZ9iJzvzCByJ#TbR#t8O>90f8m4covEb60VyYL=(BWi@v+RO2Jd-vRJP`C?V_f@6@k??D*loD(Yo?IuxuAOx zc6g}8oVV`TbT=k3w1P4;ZF#>5x~t?@Lv5`#)s

7>joa$ z=fry4T&XEST|VN2)6y}>=4 zc0=Bfp-%>`(M@1f@c?2S?#!8hVa;0e7|g=CYJLd)U9pEmYd@hqwnU=~t5_MiVhz49757z_^svnVtwIX$yCZSGR|GAn@u@tz-7Qu~~-=KDi z6M9VI_n`(P3_N@e*5bomsh;nupM-zkz^nfp9 z-%!&35_q3N+v2M?r0qmrItGqKp(&Thaw7t)UC)@Ds#w(z;04pBwKifn2A<(mZ-D=5 z4I+_B3G`vY6;ih>3;C6q&-@Of&^=faP%)15DE6Lqzo1SHox>PHDSpSm#XF=dROX&Q z8Oud;WXcNZlh*;O-oso3q7-I)8qPQJD_jguugEbJhb9*F?kC@xA(R< z*f={3oL9L=^@DKjSiTum81!pD#5#w1FFwP?{ehb{rKFCgOA`dANn^30S&!y$0q!O$@1v}1d{J~YUh=XEa5OJFYl{ObN6{%@)K zC=iy5Nb>-*_SQZ`jd*#-H~=!MD3W^{OFh;4r>Ho+lMvh zK^=w|k5MNRi~prP66&iG3wj77m#vh^OikphS~L^ubZzQ7eYV!=Dnph}X>2jj;M2*m zwwX9C+cop0fFHqlNlpiCNyh-rzm_F6^1RZugFs7u`46->C1S4~5&=ig$7ol1o7pMjwC~1QNSD>%>MmTeV z2zjFC%{%gZ`wlz@H%^z};47!~IcQp+J*M?ZKqkDrfEFMHkx9gdhg&iUc^OVaw$WdL zUIe?YBt;!w-ytTZX$p!{1RPpeZ6*y}Gn+E8{*=t*mJMT8!*3F>z!pOjv|B;Sx8hvm z%7cmbg4lvw@nzxsH(Eb)=tc`OiZ2x()=ict*T%V&+gAG~8clTepgRwW{#c&H^Eilh z)=X$g<_Gp^jTMrM_lzwVEVM=o$pPq37G^BYMsou*@VYqFie39ytJmJ|7M|^Po!Yk$ zmE+a6flgj<`fl2gOws1VuEyGqevuX$E^9N+7R(>2y`K;eX$vAJzCfe}L{9whM&Az9 z@{UzCP8Cf=?JM;J25YBr((NpnbZH#wAd{?oYi!<-r13=!Kx>YPLxe0U!z$0FN*- zG6j>~gq!z2533nDeL?GG{SZ(I@PweieKvFLbM4 zf(_wCRhEt5Ls-QI+oE%D6myi@{By3A{)gR%N>7aYeB=H!gd#OvZ?alL+Fz6EZAxUt z7;4@E?O_%`?|W#$S`4wQHhHX>;I}%zt~t@s?{qZBaRhHoAk~RsXKoEPQw#V%eHg+X z)25twae(bcM%eORj+QdiT-K|*zRPNC!)kS#rWwi>N;&U}_{!vMA1G~-dd%0AEA3Hl zvBeB4(-ybd6}dc#GbR#bp94crF1qw?=;Zt(n(1FlPp6Ee=uY677z25%nu$P%?~D=;(iEO zf+A8bClaA($6x{bnk95M>{c?--1Wf;2koW@e%rvVWEdsti^%WT6_zP%-<5I^&Laxx zKczURb4*B?R*L4>*5!*IjfBeb9s zkg7ca$g4fh_bSsa7hEv7acqHZ1yhU57y~|}A|J*C;xNo_-RhUo&|9=Ja$?Jf(ax9* zC}8BQZ%&m748ViA%*2LE0O`$F}GZk#Kxh zLKuMQQ}JYSn)|(3oE((?D+z_Q7SqutIBQswPAnKgk1}vYeEw>xQLe5%1iHQaIw2jD zMq)5U7-+snu7_E&5R=4s$GUU^tHK0A#i47z8m}G}iFqmJCC_4pr*$YBH+CX_6|SI} zn@t)!MJ0qxGLv$PuLhkcWfm^f0LL;3m}KtSTqcDd*MB9vgY=wvn!xo`>@qYs9qM+u z?N&&NqdRgql(Do=erBe#dl>q^T{?x%fw#xc4wMsDtCHmE-c>k2W-@v1?#`rR5~=+P zg_7%PPGb}%*aKy2RuIbQqw`Bm?aKOAtWlv&xqB+Cw~YIYY+`I$gOF*kU6s3XyVCA5 z-m+T}dSWv`(eHB8eZeX3p8TWbE3Z@7o9suUhwZ_}{U_Rnohtj+OiU+SNpA>hKOWjR zTzFT82iSw)g2m-Q)gvoqn8_|%|1`t{_2O%quVr@ls+gZt$V@`uU``08E z-AG~n;*>Xcoj};%4lDRgySswR!j>rxX>vHaT>TBJ8M<-WICb0C>UcV~(V;XamrZl5 z=SwD?+n&J*c-}_h4Llkzw4(njw4wvd)$WJCGe>!Q11s{sqBmDEM}J9Lx~e1z6#?RH zLYeFsI{WQm_bJ|3J+TZ5sdYmGUoI`&N%-7$M?yhM?;fYhDMM~PoMdJo3{pp@Dl>>G z=LW8S7W(lNK9%X=MvcNVgEO!yBQJwO-W`2&!2Y?ye$5gJmbso(;0L`8W3eHAELA%H zf4`i(fh&|lxv|-t=ExLESe6@$kB)S}kcsJh+lR)ot(n%s%)YWc5^FI` zF8fUD_9gdI0MlBS)f>le>u{-QezsZO-3~0r)7h4P2{$s$Lj!NKvXE&}CS;nyg=|Ya z)2#E1Of%YhgXH1kY0n7lpHLjAjzo(G*wvoyygvQeVNK6|^FEzL0YOk?A7eAJ1~&dSWl6_VRC zGjsFM-X!nZ>_j*85uP11!YNuH8s=_kggTR(fmz(l95iT| za3&K%vvOlPr!#Z87n7u_VF05c#i8d}v&$b%toa#$< zVhE;en7X6%%o(*&C)Ti36q#ZudzQspo{MyIzAhel4PRnXdKsow77;FK{eJ?X$7ho`Pl=BaiiaiH}=Ya4WR@Bb{fqIghSw43O3=!}^ zP$BmR1oxvS@D6l2pN_@2e5095T`b0V)J5b-Op|qjawXm&NIIB4S}wC>Q%)l$r_Ich9^p?+De7N?(kXKe=U=$*Bhv}3glEq-rJ z>{tz7d>5g88|}7Q5|+qUl9Bb0F8q!9Qanq5Hm^5jT=e2aJL`sz|%y<+kxTPar93yzRSfxJLX~V&hsH_+>Jg1lqu5p9{KLtNn zG%k=!@4SIG;LDXDBRT5fSErn5h~G#vkI8V>1?;*5)|%#JtT_R#GxLIpXssDxFs`$9 zEcq#f0yw_6y1d9q;EI%53;itI1mD{g_hW*)Vl@ugB$RQu`ml~WBurcKX2I%QjjxCq zeplea1q2g}jw~Fj%X-}1#7TTD4{`tNi>Rwge$~sUCa)rTGwXlwmi0fVcdYqAy<`2? zde`y)O1;}b#cD-vu>zM$Na;qRu(OI)rf4LrM#KM4S0i%Asz&nKP>tpa=cv6-zu|1M zl+Hld%=yg_Z&u9>{C>#_^!Ay=vVX7-$7rE~IvpY?sN01h1fjpoj^A|QLC-Z4`%j#a z>{1jjH07S%)y=vpii@*<1u-I*ql`V9+fGJeku0WS`#|;@&L#T zG~ODQDJU*6i|Zsb20+?>B9j0pn{3Sh*u!KJ!zIG9&6eOqRQoY^ESr+KOLPn(+Hxii zA1II^5$@Rs_ZRE_IWDN+?1$2FOnP6* zsL-FJpo`b+amvNyl1S-!XK03GD7_k=UQV}qc8)Mnm?k?y)F05P3sKKE$>hL~Cg%f* zHRJ<(ea&DFHvL+bU&V0)z%V42iA?KouK)OU0s4<b(ZG2XBFIrn!AM z+q~pUh&}WQfJD3Kr(~cvf?l~5zpVy+i$zQ;&~>1LNHsU`gn0#tEt%$I|JnFK3WnxB zW~OzxfA262sSLqeKo#l)s?yI(i$ae8NF)tSNude9tz4=FJlPLoO-Y~}2ADDdN*cSe z%{@O`LM6=rms!y&nrSx4K*Gwr(`wCuQDvYfIXT+f)AGZ~HLEJ7tj5r?XiC(S#HfMXW9rY#eNxU)vX;aXpY=n@^P( z)j@NtJJINgm2Op#{1bo!=?-6v&W{(t{ao@G)l1`z`4Llt0$Uo2uMTuF! zIMG%-4RI}^USzbkj1(xL4U{^irnbCD3M$6|Thc|yRSX%Xe>%o>p2u^c%q4MvG&Zlvuqrd(oH(4)G)j%A;dL>J?*W)o&>MXN<`9gHXTdxHGmMe+ zdoas@{2awm)Aw z8H?72$!u3@3+-z+bfN-0ci!sS0fNmi9WNxIuBt|`Bj(^9C?@wDuKF6X(wpyExw*SPx$}gbVKSx;kRh@|pzre}U7Wg=;tlIK@46E8D0ReKd z_9+irh6@^lOI#Xe$y|)HUXO#F4s4uAv(&mMQE0I0{-8;EJM+$tsSH(Vrd4Pb3YXjk zS&X_YcpM#Bl6uYSid8*^1CZdDjcPOrd&9m}3tkc|bPE#ninv__4^F-HQH9hki z0#$ZZt%cV!-BYVJ$MYr*cHdka4&*1gWa8@g4hDdA9nN5lPsm=)|f1?w&!DbrI67^u_@G_JIL~k+f zS)2s_uIvmqnn@0gb!BH}pd2xlAKH#(J0+WS zZVdXYSdv5ipK)bkV?9{=ATR|9Gx{IS#IV-E%BBxq*?3_Fw8I0`=vWVKt%P_0isC(w zW};jnMf>rBPg5mwnfUg+iYB0ZvoM1r>Lz~bitr=?Cf}M)OMY#(1?#Ekz|TUo=vW;s z%q2bpU~&lE7$}RJ0)q27Tou1PpG~%Bn@fAC8y1;RwUp$NV?*@EdXi#@kSV+_>Mq$q zOa`orl{;Ip2hKRbP;4-nq`I;h@-vf()|rYpqqq-Wu@hr6aZM4!exJBns@OD29+ z7O}lTT;Y_$8hFWSOa%>H-dJkM3a(Y5y_`vB;?TQGWYQEKv}WRqqnXx{lZj_r^H^=B z!3h!Zbn(WO{zKyU9ZqLFu2D0seZ8fHxU#JaiAjc$Q7oLt`tuNWs{^i)A)|Ste(S*9 zL7B9+rl8HzI@Easrk*$*_Dr`@o1}YJHnqJq1vccMoI|Yb$?{p6N7N~B{$%DW6T8!Z z`Aq!I?GQO3BfM5=9Zy6Or9A^JFY*8agRx=gkq1Fru^AV*XJU{~b;x?YA=Rot-F$3CYEBdh^`qu}EX|IQ*axAU08g8j|jT2a?%`Gqu*%aZaO!whxJ8QO9V@|@8_kWroM{}-G~%tXsnbB_kj4>8RR8iIty6=DOWnxtU zaId14T#co{YenUS?b_*3n044G%+MD$sSt}*M0tr1_w?brY4w=&UQovA<+jT;PVT@H zxXaRX((&AO4z;*ucHnW0y>MkJiQIM$%s5%`gmx`B-y;1R4z8|;wn^wHU14FSII`}o zfuUZC2sL0)Pvr!@;~`8vmRA_K0{bKw;um1}5ND%63NJP=G%q5z!7wi3r(pOHe+>aV zggXh~A^r^n@X$SY2w!Sm2(K_O@$Z8P;)iHJ9^wpHa3E(P{ySk#h9Nx%!tf#f>jhGH ziGhiK2h52u#LvL+A^tf6DO@x#@jq#~6ORw=w+W>1kp?FI?_o}WVf>gn$U}Vcn-AeO zm{SaVKkR`15@0^W*(8v{`x=<>e+MR@pL#`nh<~O)3h!lL;(x?)x9NG4<^EC&{~^Eu z{fw6n?b8HOc%Fe7|9fDVH|Cf5;6wb21ycAR0~7zhVS@S==-v_kH3o-p*}%mAyycE_ zP4W=uN((;Lz{LM6Oh7+`Kk^WtY4RaV{jGri9|Rome^0=Ch%+LP!UG0o{NI2H_@B0L z)>`l$1}6T8EO$&l?@b@FD&NffQyR!iV^u5lG$b_WpLu{b&Od|4%Rh{g~*;!}uxpB8+az2E)zTiXu>tF)@ucIR#;*1KU@F4~!{x4tx{^K4ld59mJp(Na^&JzC@ z4NP}RJoymbB9Ou_H!$P>2h186sXLen@F6~V#)ohQCaC{!1RT&~_y6a^oe%N*1=9R} z4RF98yFQ#@aEQOq!oSgSH{?j1ms#$ITKK;P9K>&z*RX}(Vc~BB9JF7%|G&_}#~3aT z`Ew@>c|rb=4}3`TdVv()$H2t@56hkJe29O!KnfpaVEX?NCZIoR;gH{a7Kj;Ro>$|HGEMYr$`{ z;KK||{NKU^^h+DYJLy>k!-sItZxH`oFaiIAc!*Pl;X^oR7sUSwOu&Egfe&%c6-eQr z9uohvmb;zbD=hb83{3n#!vyr(_3cy(pXGiV4AbQk@IT-)-7gRy#W}#hjQ@u)0srm( z|J4@$-WLA9TkbYL-)gxZVc|axIG~^D@gY5{1yVTZC+WW(CgA@%3+ECGUT$FGkHZA~ z56Y48`v!+_pchX3FI(<*e&1oaA8%mdKMS)4M)GPpT*k>f@gY1DhBOndzy$OJ`J($q z7(Rp-3#9GwtAH67{Ro^fZKLl)d_ zVB&9u3F=Q!&x!wfgF|?Ufr!X~D-DnD~E#3Fvn%9Hz;KY0ZKO`2Rt`0sr>|%!fE50x3LTV8;JVn1KIw zf4J7d-^0Sc$#Qor_zf2P5)1zUzybZzhVf2%RvH|_a|}#+u7L^of0%J6&P5iy%)rFI z2Zp?0+*uet#NQy0!rcZY{(oBTc6)!j<$kn<{}kYWe!KsFrG=jZd>ahYtO=^ zud{GQE%*=v6aQYAfd6*?f1ZWkYvF&%a&NWZEf)N83;!9wYha}AG^q#aC(rm0&cK{v z;5Wh!=&}3%^Wn~i`27ND|MPXg0e|fJaE8Gl{z41?gOLEs{@DHhg%jhGH9|NBsu8Ck!9bUlB;*K?9TiZ^H!qxBLHf7Jd*9@o%==T?>Ar z1s`T$;y(xz&`+B9ke*cnDLmJ}#D6zT!2ci~;#Un0;R6j!{GY-E{3jpy5a(Qh6fPN< z_@A@f?fhP0xgTTU{{?VBzg^!>wea(RZ-ZgFd;J3}U))#J<9Ff4dAYb_azj24UI@eaqPTZzehHI4&SS(K8ReXS@MSQ!8MtXp zJ$^(P(tnvnKl}fXek=x99~ckIH>4kfM?n7>a1ZHUQ;(nhb4Wij6VTre_mKX@b^6)= zg!E%F8qoh$xZegN`C6lTq>P*IAVcV4xibG8Gue(97t51n!FI?t!TL~u*%PJ&!}f3> z%waGryLB)Xm^Z?F5a#PJ_rq`uc|H%(Z9_iW#>KmBm>1hHU$()ktQR*Dz{9v1AL9u4 zz_MZfnQ!KqWw;QAygn4>44BJcz6#US1Q>>2O=&_TO^BokjBElEo4|K|K@=e^0X+dt0bM~E1?5CKSyn-L1!WeL8_NzPh+$r6sB;p`$2wW!vhmk- z$GTAcm%EUKHOBeO(3zW(g@SQDD|9~Ac0N0F=DuxVfx&)t=*<1r(D|IunLDuEq|FKE zZ&2=)EzUOG-E6DLzGhoZwlv#nvYFXdlWol4I61;MNgYNuBO|eQyBj6WslJ0b#r=V= z2MtgVzK~X|b`dQcI3oA80Ku4-@@cz-UahY zn4iGx5A#`=*TMW5rWIxj%*$bZ2-6Gm?=a`VJPxw}W;@KQV8&q%f%!7bD9p1kO)!_i z918PQn1wJOfH?!^S1=ivtuQCT{1~Pm=2I}|!~6jz33EBjQ83?y*$3vMFzaC+hUtKL zFU&B^&tR6qd;#V{n7_fqVBQRKILtR;x?paCISb|inAtGbz?=ee56pfr{|U1h<|&vK zn5$rpgSj212j&)-*TVb`W_=fg3VSZ>xv<{{`+cxi!CnRX=dgbc`#{(S!oC&ut+1=GtFWJj{WR=2>^SVV!hS34 zBVZo^``fU;4SR3cd&9mN_RX+g4g1xwAB6oN>^$r|?03U{H|$ekp9=e@uzw2s0N4k> z{v7Pj!M*_Y1+f1D`!BF(z@7p79kAa4`*_&L!~PNMAHnW}-3R*1YMMCU{%@SLorTZ_WC$_ zA~3stXtfB;Zl70)q;pWZ!l94P%CSsbd<$h494*5+ivCBS6wB|Ry45e>cZ}cL%w4Z9 zRFquuZ=h2#pgx)PJlt+5-{h1ZjRlI4(3M1da>brO$l%ImUiUu+5*Dx3q@lc*NkBuA z_kWr1jN)$kSaHWmH6cKK#m(q- z$`^^3AB|HVnKV8ZBs!dllBdVJ0}gB}KQR?W_;``!OtnHKwH+T(t$RR)(&Pa6nKaHY z;#$Gn;%mr)()nQ$S+BG*U>pzpfqOV-Zy2%ydZ(I!L~k#0^%dqSu_18XFf7ov4fp_{ zt#eAX7~c_tGBx0PN!ZO}}teE_G6pld72 znuv2dR6tE-0&n?6-;9^L&ai@KgWwW}GP0I_7k+^o zV8t|EP$QL^EDXgFO@3&QHAr)5IJnikN4FODYKq`%r*~eb43z-+p^SG9zWs})ihx44 zIT>xyNUGZpnlC4urXeNB2=pL}8^IQw?bI4t9KoB`n={eGk3zjMU-rhW^ZDjd)=R|s z(XVYo`L*YCrOjuaXY@aWnzElGCBKcz(YU4@FCH~;(J**))Z0d$BEwXfE>@7tIa)>B z{%?mmi8)))EAc#)5AW>yw@!EJ4` z@!*ztdGh9IpYU`{c;@WnnY)u`-iv(ZzsLs*eq2uBq1=rU7|XJ_nZ+hCgx+6&t;+i=i!Ia5u+ zQ2xNZAc#R^FBzf`%u^$gPM9JLL?W{1y#n?LFl%5o!dwb-1I%qO_rciD#B`Y^(_>mp zhiP=eFzyvFYhW&gxebOyU-|+fpxh*oZx-eo!N$4aESGcJP_Xfu(3w-(@M^r*hR&SS z!Wr_irmj2A3!S&Xxsx0FjRq1Cwt1tG-N-plvA!q*Zm zLZ+O;cR}9AmnuWy8n^#M42v*kkv7&TK6*xc`gdMdNqqL#d~zE!Z;kI-Pw5YI;KxL- zk>h7fK8HyH+!~LQ8Div!n8GnRVy!T~?E;({@10bKoZj9jIgtFy{gweT*`Oc7@yc^Y zGLS~8Pn92RDnfjks_cQEi;OF;#*|3<_QVG#B@HH*6E_QI*oSl&OBhlu$G~$3pN{#9 zg|YNFyknj)kuMYZFqyAxKYWw`AL8Z|;)zOoQg@bL&b16P6~{b1FV~jh7yLgPe|bmYu3Hid@mg>aRla zntmgUBDWYH2h^}+5iY3^W*e5Wi2P52$!OSg=gsC%^L&<9F5r0i+>w2x`;gcsbss_* zK4CJ5%lZX_T}h0g8{R!{={~6IID8i(4V(V6-tL)~pxsa8VUy@0N&S*MYo!hkobh48UW;B$<1WWGgmFpi5O#~aSW_*AYy3xHDB zuDit|D;nD;`5d%Q!a@5a9JEiu+CEp}Q?hvJIZ4agE=tX#mNw3$vCy}yx0`4fi!@Qb z<+SnUYf_!6tTR1mz4THJNK@rWXUoZa@{U2Q);oyS+lLQ)F^c%eUZc*&Qf#Cf*2rS~ zXaqVTI1DTcCIpff)1rkut3_MyXwiSc*-o_R&~aGCYcs6y1JZ05jqOleC>P!J@~Za_ zlF)64Q^HSh|3=_GxgI$6F$)I*|2=H$Zhg*KnBf*bp&k>*IOB}^WXXLi>wsMQHqvzD zT)l(aiClcN^DO^##=kcwO<|dEm`ZuEekYc~T{IZ+ z^=c?YBeM*RhF{R@*$bV)_kiulhc6wuKEsi_G4zssbGiPP1V!%1h=!TtD{?{$39$Jy zCt{=AtvkHhbUba-iIskv7Bz(FVyKe(Gz&H#r?MvsTD*cQEW|&j-WXQ~`K7?J>q@@d z;q8|h zwJ4u1wR8sms;bp z(YP|rB0Gck!gQr_eUHS+yJ%w=Uf_ffGwUH-Z>S#TAqlf9>5RRAbn0PtJ)LV_Ksxm> zK|0j4Kbm`84SZYZc<*WsIgwa@M!Nn|=sXkehLt}BTZI1&@fcq2>41g17SBBz4?aQ* zdiXfF0?=QM^4%1Ll38~fl0iDLP)`{2wsrHeA#~JeopGml4;zq^b8~Q#YXw{lGgX}E zeZn}W@<)r>p+98*JM_nlDD>YE&Hpnk&751XUE>ypW_CC11?3V3wt>g>ThNU-+jaqG zYziD#boqilq?EwdFwsif>%83JKj}CFAr<#QGOh>?Qcljxxgev6J~AboHv3=1I|g;h zy$agXO*_Ur-zDDCo#JItJg!`GwBz`G$om+t+5p9e>G0xGcOGLtqQ!^7_>?F4!Of8I zoQM3l!}T1oI-R+Aq?}fqjX#uqgZaPgYWL-`sO)T zlD3gUAtZ1GEWQ*aRM`tZ7je?c_S1uWJ%un%Pm8XZn-dV^CAyJ+c7TQ>IdDWuHtxCC z8D41EmrGxPuty>(hP}QXmQHEM4tsq=SloxL>5@!_-Chr?T(!e)55uB1N&Rzr;;uGx zw?uj*d1DFBgyF zLz!FF55s6P0iCYgYjG0kbp5@N0NUgLbTRtVBUMDF&Cuy~{Dtsy<+puRf5+%AW<$i` z_-o-BE&dfX!tv*jJj^!tR{)E6_+gwEB+OPp-$9gE5)*qA+&{SpW+Pc2e|TE{0u{& zLqZttUH&`!=wc57rN(26+EU}F5!4~)lZ4V9bn3Axu0IWVuJnd^_6$np2#voHug~CF z{Hm-IMDAxCh_J5!?20c4D_X#q2&9@uU;S!3Knxl<9HLCWtZGV?dVeL&r< zGV^ukrJ+sugC?zLDBm9a0av@J1hrKGUvq843xyDqL9@)WjnN9I1Kpe$VucC!=7Yq6S?I#-V7)8jhGVFVj^ zAlGfih-iduFULE_FjmTp4qeg=FYd&*7MCIM>!s^K7dY^!SGiJ)Pxylg2hRpcIMksg zjIkQ->f(V2hu$6chG{tDD<0=or%cQi^X$yz4RoS4XNsRi{Ha-y;xn*Ee~3a` zDg8u}8NpLHbHk-{)%n8IafSVdTkJ#8Z@LXzxW$Fg>6iW^3Y~JC^N~LD)9|i*6h3IZ zcL44fT;Ytq)x+k_wHQ&-@p6A$qxd4CXioSG)6i_I+=>8>|6_(-1Q6;6CXsAx{6NS5 z4LpjU$4^VL0e8=dxVQ&&B=#P6V>P9LQz%NHZw1o9okJ7-R0*2H+(b}&zt2kLu8(r?%${jue@ z&qTk8ye6ZHMj{FGzD)A4+ITra&xkI|DEl5s}jC5zQxqg4bwDml(I=+!Q#xAAcnN(%Hsi6J%kIe*-vS zJdO)OoXDt7;g5#cH}IH;ya)r0$J~)W9UIwbWkGA%9>~W<7}O**GR*;R*>l))8K0er z$)Lx1ei=r`y>Zn1Ow`92`cy><+v`3QVVTWNm;`u=nUS2S#;ZK+uP_4P%z>Vas1q{H(^fFMFK zNvu5E^FII{IP&I~N|-Fm);fu!=ZD0TZ~oN))sxiH^Ct1+n}2=i$t=RtkqrAcBLn`w zg`T9`-ybC87Guwa8Pm5zsKDTjeu#~C3`C^kOaFo5&~ChVIy#@`@#G?0Bz*6Ka8CHE z;et~P_2~M~(2t^)j!b4^*ZOC}UzfApShzykx{3~1)Z!zb5-OAM7lE{LERS2AaqqCM zX)_$Ye`xMzjwQFO$JNi#@-4XIS(s9%m&qk@wK0=RndESaqPf(KYipaY^;a^v7TiRO zSOs3WqPxjv?*QRsI7_QXV8$EFwY0)i7Bbq#^jNaH zklyh-NRLrWN{^139_J3HgT7U0uUan_Z z+|7#SdsDAybgtoG_POlnsn#?TLZ0r4g^|4upSrFrY@m;$(><6i>ga@~Ce;3qP^)8iy&UPP#Bxn~DB{_Q8Cm7! z7&B7d$fJlwcF-1iBYp3s(kbyr?w;pv6sd6FciCUePFsCD4SburjzXPB9v$IPFJDbw z{v7cFUQhTJ3ZF~(UWH#vcwAwh@GlkKO!(IdR|x+~;VR(=6h5EueF|Sl_%{k)K=^*Z zTE=1jTsaFKbhGHMlD>{wKvPj*T>s zH{fjd>L(HYsj# zY@~r@J_%18Ie+^Orak!XR>s|YuGN#Uc*-wzs?Xqod&E4T6IkTEpthRrQU;E>{+VimEP!8!7_|X2%==n zT<%mC{om>M;dkd5syr)WAe966OMDWK_z+T`KKQiZ6zJ&IFmgZO;Z*r*C(S}E_j{w;!c=gMmQ|z&pFk+L zBP(fHT&bhzRxpE@uQhj5=h?wY=<Qz=FX7l3jm$^gcoph~ zgWhvZGML*tB3I3e1N8O*V4&V5r6Ut}a1~NS7oI9!ir7oXChmB3qsy|y9UMU|oMPe*wgk&% z8p0Em)rgaQ65G)+usbOqkb0diEs9I6PPv|sV=bwk+{iPa$`zrbkygO@qPSM>JI6C| zsoTwovX{_`9msg&k%6UCk8zX6;O}8_S^F(23fp@$y!+9ND;W0P4vM3dm8hnbUjnys zdl+CY@SzqES<=TfzZgrr?%8JEJ1u@I@&8PG3OQt=$@sZWpBz8>Mo8W~|Kk)H8NG@f;DR$& zw8(FLzVC`?QN)FE{^2D^4>cK*k1sPT5aITC@oOPgqyT8n;5?P-i2TO&d)akH^DW~U zIVcgxga>cWbtjQum5sGWI{G8-fnRkRp=X< zAoIqe7u#u>Xn+S1IJO#F#D$V3q3TBT=|gO_40|WVic&w(Yed$uoLtFR@k-V=?i-h8 zd5LQ`b3iCZnWlXD0^Q5tL-DKV%2ab09QMR8&PP!0*?4V zPs_a+#2fh0i4dQuhY+q1xg5{8+{?+TiHZ%Yytxg7+*{#WoCTRNH`Q`24YgQcI#qpA0kQ*+g&+q`ugn|5Hrj5A3(5XFOkEZiMV;i*@)IDzKtnRi?9b* z0gNX#84P+XSIPkSyc4Ds1{(&E7>r%NW2moU;QlByKv+)u06q)+bg>DY?{+t%?-O+` zcM~C;6=8{aS|HdXlD@ui-X=wg?o8KwketioZssT>(-L=+3^?0BJ^N(U2_jNB*MBmO zKKnt_XS>q3*#7mdpz?Y27zR_@&%1zlw$ulP-~0x)7bw#6WfNcgFChf=oYZMGoKl`N zHPy|?#*;y_#YuXjk%7V(d@v!+TN)XZGD_XJ-XOqi=jW2x((v(eI9hESJp|`(jNnHZ z3_;Sy*MLT8KXqLvg1-xO{W{?S=O3%V13sp%kDUAmXQMkZ;WZe6)s>iZbsPCKLdPq=H#=j&_>X&|=S-fP?Ig~TAkGI~ zK%B1;Ix|=UDxITB=Np4KmCk?c5}i}8S1j2?xQ6i}uYv;4Yne7UdE#rrHH_cZfyOs; zq~m>9WQaS~O*kyP`LixM(LqCRzAr&A;;*-p8#Rb zM@N|ppTG=3{ciKe7||=7O|)B*{^7vja9Cc5Y1~P8fpxN4uVCQ!a7w@!@uBQ&Z1fb| zWR;0Y>`8w$5yIFJ_lFqwNzNwP>~j4%z`!~eF)+%wzeugU)hfZN+}l7hP?yj(jFnpx zi1|m1d8xCBb~ZWsD`b3hJ7^I~uwb1%2k|HU9IVPxWL25KOmhPP5qt^(mqPI?;%p+w ztB3rHkdDGL*#-fM%dlB5W!OeegA!2LJH2c2*;J=@5 zxX;MHH+*X?tWb@?8TdkCrlt4=gwD(;bY@x=)VN1~+XT9=z$_~}bM$_|nVIz>%kt8Q z8I_x`Pgx=LTv7``hXAO7iflHM_0IzU3%wq#jcT2*)(EW1H!#`Gwq@EX|3P3DHdZv6 z%BSVs)_k>og=ZzUtQfK|>Wg4ui~?|&X? zHnJ@5e+O=&W0!5uv_qlfK(z5}M=m?3l+Scz=48Y*Kb)B}y!E=w91PKO;MjpN`d21G zi%)Y$e@#BkwFsM+nV0FX_%!lbv>2zDV~2z4YP4WE=BXa*UKkpq{+U=_rJ|xQH-Bis zDw)zdZeqy8Ts%LV04Xx1j}JV84p-(0=fZ{>8}tRUC===E(EJVoobNx{%lQWa+I%v& zS3bzRjk-|`NF1xm`#`r^FgAS`82RGswCKtta3} z6dIp@0#FA&*sv~Sen%feJuQPCyx`S1aPiM_?DCGmlinU?e@-| z(%-NT2f)ZIE6cq}<$TNd%ElPmTE>rbD@{~B#99axrQ^B2C|n27$wuKEFD&k*GSwH6 zp_cJ^j#o*uSpQ32Td?}2;z#8%ju==3=(=`Y>h=N?pJV(* ziV>~+7TKw!>!>@zeP}YSJqKl4elwy{K?Txdd)yE9`BJyVzZL%AH7nv(P)l&wDqG_T z$eUQTZ`4J$cn>~ocwx(^B@T{I6Zr7H5-a0e=o3GT^hTIok#49be_&l0IX{i6cQVH} zDo0TggHok}Rj~(-wLb!h+DG@JIvVXG(d}?X7B&QgXzcuihPw$=U`(Z?g=6ZL^$S)e z{af%hjE~>qyT{1^44x&Yki6zO(FX(yk%TkejuCE*3{DW8V< zOO;I0Ic&HeAj)k1?O+jj?M4=xSY|Xi{@rl2MeH4PyrKib{@k?m~?Li##KuC51qurbh63^XB+8vAcJ*s*m!#pH#Tn`AT#Y-G~1-dZ8rLCUTF@d zp1tU~H*qj;NhB@(G5E+<&%M~{@upD!N&)?Vgi053hN8IMagi09KO6d*U$&5@(fWBI?CUxX>Rvnqpb{>IO@r_!&Q3ofr4QV#y6E=k+ zo00E8-bT?_pd-eVJ+0XyexN*OiNSZeQpMTGj8pv+uzK1deicF~jHo>YC)~F|pYga? zMEgtq!l}|#beDK~V2|!lO-ag|Ka{7=!rJh4phx%iM{h@%v^TQP^=5}(ReSw25o27} z?cT_6-IIE}a<(?~yu9v7sZFEj7wVp2AKr-Za2+G;&>Jy2wuhuq_|xclRNa%B#EqU8 z);<55o){N{Oga8f;nM7ld^EsG`vXM_yTiaDH-`0Xg3Bwc zSpC1E?k%N$r-5Y&l}%=nB4x-zVPi0e2N-_=wtp~`+DASY9E4t!iH}~%eO6gWfP$3F zN`!lhmV6R51qg3zM0k=N!117S(UNy4!gEd#!)(N`X(9Tf%Cpe`tMnSgfsYrMLkPrYpLR!Ir$U!@x7-<9JxFQf;+S@&z1nD z+g&yW#oO@gx6Y@ZX}aqUXYb^MxeR4{Xw>oqZIOeRTfrT)p8qJS6UKB4$F;|-Z#3X= zJK+NMh4oR*t}ExUZ+Q$6VhM8%XxI6^h3s<(T;%$=UY5%E6of%n;p2GIeFf;QVb05U zxrfK|ZvnXJDy*or-ut-6myx?SAac=q=RC!g?|D>F_>PR;*tcalu#SjWUs6rEVx_&d zXPe?MgV0K;aA1uEY|b|sYS9~pQMP>&!Uj@QUbF6{}p={Rsd5#oCB%Hc@7$PT|{ycJ6{?i(jm`WUX!AhSF- zf}PdI`Elc%m~^omESa99uX9N9M0DZIzKyK|$B>@nONs(}dlJx-Uo9P8k%qV(Ss&qy zLS{Bb7U4)M#I?eb2f^1f;3|2~dWFnNUW_6fP%kqNjLNqPxsLy5$SwYcyg0?DKub4P zOe`G#FMMI!IuUtLxdpMxN0bJfs^E83{|*O{TM!847L+EJTN>hV1XaVSeB#znKEX9B z^ELWcL=ws;8p8*3&Oj&0m1@T_nnGsrcT!HiPvQ5p`UNtJ3pqzX&Ds^2#nT{9WEKRl zS`!}RYRo!i7Iama#bkfYco{MaVq0vW%z|83nS~YOF3T+bETKc0#h>K0rFrBjw3S5V zch5s+aS?bih0KE7oLXiM@|n|WH-)0(H2$T35K>;XiW zhhqoJn2%E>G5#S)tX=2z^1g(LzYV<#%b4?R%E(5+1B1_QJU!lmx*?J_NmS%QnlAR* zTc_fsYn=(Jd=sOqpU~^>vcuV+Hwb%NXiJ-?{jvv3K@NOkcI@-l=>JECEUg?1ALT`0$tgHvP|aiN`bs;o$f z$~UxnG_tJPK;uWCm+ll>K^N-w{>WagAD0lciLTWi@VDB4RJiFHLeLJf*{Rxr zy$+TlJsA9G?2oJL6Ld~fmm3MLw2Hds8OKdKKK2iFePOPvF9Y9$b+xU@%h)`vQfxAk zeqClJX>l2iyhkIaU_JZ>)~%O=C#hgPe9(>IqB8}SHLi!PB`?dlanbpjdPph{i`cRe zGMbH_VX4Sgiw5wJG+VQ&en|8m$u2R;mccU(& zGR7ybTW5JAKM1l^UtNXbt|?cqBaBT~vLfAve(|m>T1CH^MOuayT(THyHCN6DB?B1_P@NK4N}KQJMg(kRlnCR`}j5zm>3 zcnT2Tw=0O{=@-1o`hwT+d3?WJS@s6VJY>T9v?y5oo`S`%v zH>tMLOvEHvP1w*lmQdUhN?&8dax@5iUjBDQsm9{`{a^RP;<_TnK zZ(>|^?Q$q(Q9D+*R-{-TK?>>dS}} zoDa^{qJU)$VBG^A>=g-KwB`^!R&ytYBJJzIhc^o!h(&p+GkP^ElI|2QV{! zl~b$6d6l?NH=LL>r<+&Vdn6K1I9BQ$eUkr0982x_MtJ7F8qx=`h2FEsIqcU^C*Lxu z|33$HK-voKLSQ#cd6j8A-pF-z&pqHdMHhcZ9fLCsJGfJ)qdBqkP^6xycdFRm>qAOQ zaRUvsN1`7xM3|J5^*w}a6c>Qrz4kEn|db8TC6*Da>Yd`7MZVxx&(nd%42I%SxG1lh{3Hv9_aiuIaOj&6*fU^c~kiYy9|AYeg{3faP+xG zz>`gID?-G@HeHu(M49H)>)jsln%b{d{n)-J@p>!T*RIMolAudu8w9W_l)UGJT*@}+ zsAPkp|nb*^Qad_`Xh+HKZq@ zsu?9*aq^R9Ov{`^v8WicT9OxWhu&I2;<6ImGhY{Z+oKWp34T%$J^R}p-}!zW*QXH0 zPbCjw30P}%r>?`n!$2wzVa=UT&sATemZguDcYSV5$I72jxh0H<50JiFZXRuek1H$C zMeuX+z1m3RPISMHiiN%M>jcFtQrD{pdGwJ`y1$24#F0DR`GHd%W_x&FWMJgG$3hnl zf?_DriNJYu0D5A&GqI;9_k`efKUH+%?rBj1Jvbqd?jp19eiL-@8T|*6hBSebMQ`Mp zl}#JFM{ly7zA8@rw$oj&C04KP^nJnVvz>k>PGCVj`Ul0Sj4x+~DV__}zwXhJ?G#%@ zrykqs62TgW0$LdGL^?T|A>@N=AnZZQBU*`S9zOXfH-({d{R2&?r4dKK(Lh{39m24bts_M!eNi zxLrWE#~bl(p2F?xbbGWB@5w3LW*iB;#~SgLPvN$TZog~9yJ8Bro9QN1x6YT_r*Qkr z6mAQTnjH3+Dcm;Gtq*m<;{C^_aJ!vu=;v)b_vp!PU3BYj#9K9mTa9k7WD~3B?V2gv zZlT+WjlB9U-A-zBdw^~yH@Y<)1GiT+y3MCsUt_vUr*J!kZi9_@o9VW1quVuf+pp2> zKk2rAquV`n`wbeHmEY&4aO*>lGWtLx-sw}gUDN0$jY+b_OCUz&Rj9AO3gPuvp}GDl z$b{*)@!?&U+9hEJ2^FtYX(# zM@uUjn?bxV&q8B&Sx0MDG`5UHq0>TR7g|SaQ8YG|WMQ#|#%{HamW?VN8&D=%SW!pB z7{qT6>*I{#%1T@tM7?ykG7L#tUVbY$(nKL1$1AQm`RGaBnGxyja8o8azH-LAV6C7k zI^B*aspuLbitn=PBgO0JoicGpj%0T0jf*pzgiu%G%RA;xBBa`(kcO38s8-%EzDn}` z3Zx#~cM_BDpk2;&ANGV!!))8!F;pDmfwNe7rk9V#D%hsMSv=^ac@ckuQ>5 z%rf{LGRESH#=U<7mxd?{>z)Jk_HPs)EvNc=O@nUZg6@Ngz%-}yzbWva9QVy8Zmvm5 zuk2T7x^nNF{}CXJ=Tjp;0o5w?w{*ONH8E(*Mkd{>#`*2hh6mWInTxza5q2qBP^|;- zcxKVa?SJKWSzd`V7|IZ*N*}klj7T_-f|)w==~M~(A5da-9UhOg&W>azuVd`HxY~+G zA|kD){ARa4nC_DnH(L1!bpVbc3ilY!gEww!!&*Uj>)%ARfCo@LC1G{-KMESK%l~2c zL4wV7JH+eMCD8MUr=wi;UBB^zL(yS0aaA;U8x#%vPch}Al{lsyoZH3+E-N@1?^S+< zbi%#UrbuwNXz@S|L*90R-YZCN@jVD3TI|i^GgID0>5;@uJmT{PR z0M1O7Pt!ek8tS22JQk@IRYRWjaEiUZ0q;yHjFoj1S+AGe`j=bR>=*zd6AV!7dl9& zi}ko#5f_AfFV*wpX&kCtuoB8EDEnbiYUXvLg+wx*4D^_jjcUyL&1)R<_<6#t%dLGX z)h`}mDY74dm{K09^}Yg*lk|&EX>{Cye(}m6&NHkyCj{@GtNO)$-CgdS3{{IK(9kzm zRf{d!1m9>CvyNJMQyxO=k9o8AOoX?Nx?8$QhUpAo^p{p^9xNQ}RZ3_g`Lb6jINUS2 z8u^4MJ}5h4*u|J)2rj%ZbbSPMTlJR$btS93QJ;3WNjVPff&D%VX>8>RjCvO}=rNrJ zf`dIvTaQWm&V3`jYa=Z|Uto#_Je$NDk|1Moec!TPA7>yVLEp-IA|NFT@+?ig1^(Dg z&KwTXm=*92&=fpIyy zEOmacWp;M6$(C$QCy(s z%$bteohBCVzpZOHulA4q)Br!7GD?f1qVks50V`3rJ1#*b_mB#|vD1RwZKNgTrZa1b1l!pP?MJy)Um@4vpztpRg zzm4NKfS%%^|6S9^@J74o^Nh>wa34vq^Nh-ib*F~~p>l8J_&rZ_q)N81q=u$St~N9X@V zgG=%e_5GS=K-az-C`(%z&LHT=C3KP9KQDIF`*A?x$8A0XZc`;uwjg@MCANOcLb}N% z>{x|*``)1-Ti|t!^^M~f9H?;MfRnThzrK}@ehU=W<*%n^rR(x>v+?U^5`U&7-@MlEXJA9*|$9J`6hkkb$z=P(bzmUTdci*=25 z8ujPO*IrrYJfsi{FwTP`k_TL^y*<#|^FZ3ofFPipeu2;^ZY=_$g*o>l;sN zpnk=txI?4w4^*%C`|=8ZUvLk$eo7(Vu1j8-3zIQbsN6B+7QvW& zW2(sa-K951*!P2|jQfS~ZCk7u8MkexoJ4)ap(ApAv&Z)PdRc^*#m%rX>W%FjE1x*3 z7xxv1_8H5hB)w?lf(5ev|eO`nt@-)D;T+-}-v;Ay1bP zkB}D4A~&Yceo0J(BMXPj zI3ac&;>67W{fvre!~fB~AdeWo+!q|75vJuO$ha@yLB>>3g7*dgqwnaVO8FiAsGO(p z@6j0C_c(^Uxew8cVjpr+5BTRkBy9Mp(D00PpXR#5ev3#&S^YcuIXysZOEtwpq7VIz z%_rJM{*6td{H5qz@6=dE57r3#0#6&17$i5SWKjYY8&gHT?=e&ywmn5>+@8XoU!xZ_ zC4NdPPT#XAE9N)!-BwmDho6zdHKj34?-Ke=o}L6H?hNOb667>#lan)95~8%ME$LZr zbXm?Pfh=0q*3HH1LyosQuD{$sJU{9b{g<_Mq&1&r!5^i(maNw11L#T>`FA&bn-?p< zf3?kH_Yt4)3 zlPCi{1?6K}Wctgc^v9dynhbhbm03%iLB+$asmFu=#eNtkrm`u~h5zlE`hV_w=I}QD zk7E)PXE&8q2!}8wRE|;&8a9c#=O~G1u`i?Q3A{yS2(l??@{e`G2o}cn1b)QpgCQ9^x2xSz- z=O(X9E~cw5rRik9Qz}gS>>RzDu4b)vu z-8D4)1Iml}8cs>fZ#4DOjWoDEaTDeLBHu>+CdyBwIW52@RL zyc4BSl(Laspt1`o6{h?dO0~(w#aH(zHjeri(6Cn2zn$_v>RzP&$uw*d`vN3>UN-EdB_$~w*&Rhq&%H;P`;piV@hHiU8w(O z8ZMUMd9rUQuTfXDLky)gl*D+ikpDzpnYuPX!p>3|2oQ7p}bgEBPlQ`xaBy|r{H-XYIN@CfF_WqPyY&%CO zU8XdJ`a4tiBT8cba+A_dic_dR7v9TwuciD>N@5)l+p~@Q0QIL(noTB_zZlOY8Yar`q5hW?)0vXk?&(ytLJ!iy zvigF$BPm843)7W6_{1v&6HC$`nuMbRGAZW7BynI-l8!X~{rJICkV0iyaWoKFSV`hCM~^rzLJ%IKB0rHrZ7DQB6SoNP>en{vifF~o9gjxn{S$mspln}7jy z@f(KIvt2FmVw@@4X@sKg=W=|;0mo>BY1Kqsh``y0G%*(0PfN~_hH>e`(Jw}3jBikt z<{SOB-srFWy1ZzYw0fdHbG(rzA#sHmVf{Cu!JE(!fM!i=B=Y{WCZgj@YbrW{v}QVX z)H|I-Cy`e12)gX8uITZm)e#+2;szR_F>y8iUxWX*)Bj@Gm~dX5u4;E1Cq~mBQ}IyT zD2t}QV0R%Nhigo^C%$-uVy7e479J}a;Ehhbkj|zV!G}0 z*3Bv!#l*`*YmgEl^E4$&EG4=KFmWeMX_DWVxJz^$#>CyCOLOx*bwktDj$&ts=}O#0 zN*4f%j@=ShF~3WTYmwjn&T{(NF(5mQVECIM-3mu&afMP;Ev{rCs{Ly!NG&TSIj@nf z25g?VM~FYIl@M`^y^F^6S%z`x)kf-_D81vM#UUodqgvtug%h;6cM8W_E6k<9czi1h7oaN!<+Sr5}5!?QCTjkTMrn>bB zZGj;De^DS*?LV5G%KZEO;NSKU8BLt~j}MJEwK0uF+#)Ty`Z;WGn#kii_`LdeOGU|? zSuxRuN&jAd#Ip8>>M@}ZHE2~TOPwmzq4pEsb>E|y&uM)~s^zEW(2Bb8u&-m0m#n!G zmrIf~H6pwAC|H}@!3+Mi~aAKGg1F=oZea*SpH+qF0j6Z=_zge7YSIk4UT zERSu1u6n_Tb~R!pBn!XxWV0X|k3~5{Q8THn{1Fb-o)k~#zB~@Ib*fg_s#>gb#RIr; zp39-7+`z8KVJUQ;c1TvU=BKyx(z_qy0x1s&V$Adlio>i;4Kz!j8WmT-6l)U?LrZuMrd~3Eq^SQP_hp5n` zTy>~44M|?JW)k%Ungu$DP&r;pq2Fk}t;!2(b-MY-E%)^+Y33v1T==6x@3W$j@Rq8% zZCYSbb19mn-FwN=6Y=J@i6Ogi=qS`BV|# z9P$2wH{20^x1IiUi@%;4JyATh zmo2uLbVpKXS}iHpae)9$(`KrxdtAIn^LwmRQ%(^$)om@LA>*;?{aOLpuj$iZNjXj1 zsrVypn`ulHf15>D{7JUWq!Mn;ZKZoBwxDIjA7`6eqm_l8218?Q7upD_Ds(lzX!{)>U(g ziU>MC+kC1gz~j~@$Q_s(ngrU(hmVnm&!K|!Vn7Q$>QU@r#Qzp+5V;`bVvviWTrB12 zzesCL!Q)Bv6n;IP!s)hyg7+JXgfi7~q6o;0?^XtCwQP$R}9RrY(b z{9|><61F;I@nn9z0%ZR0SAg~Zx~*h-V+Dw%6(CbP@!VUv0t9EeW2Tku`FdL+pkY`6 zFpO4!5=Z_PM#p&&H{XzT+Pcj7B>!VG;bW%;2Tse*SVj81=F~!#j z-TR)>=l4tM7!$+4f$GPfWB+B|3wHj0nDPHSQJMd5CQ2-iJ3LMLf)ve9&jt?a^#t?< zo~SR#gjBKksV%S;peMHc0)5%(J4k(bbrFl>|MT*~IKr3LvG&K(fc~`3V*IiC9N-Ie z-q8H$Ga|m@x90gqbgC#?AUU)wuz=rOvb4R3Sek#);X41hFytnpkBG)0#wETxiI2XP z7*k~%XZmLwV=JL?WNhP<(r;`K|EYnq=rzg~z;6e6jdC<{EBs%YcUkGb&-?4`-H6v! z<2#qBV9*q2D<}>k#8F{EI;audI9skZG z?m_!x{6>5+jj;IgJ58FonMIy*R#Scz54{oJ*-Wy$zlZp~ z_GW!=_S12!jMv|z`MO`+j4$d74G;DIv;O~Xe1_N0+0ieGNEE+b==;mC`+I$9-Sqi4 z(6y=h$CxUp%Rj$|!o+-ql{JORnsH5tSRQ)WxL`+9d-}swz>1x@rJ306i%PS07}=FN zmTB$vq8Q<(EIZA8N{_ak%~dJt!eFzfXU{!>uWFBtRqIvDy7{g(m-GJq?59qRE71Nx z&7@AVB8#3Fd#F&v{7GfDZL3?N-+6bfeS42q&w6EQmE|uQytQhzuWhEaCtL2CKBLK? z@l6{1P%Ng$yGdvIERCAgkq%qCdMjiZwy5=mwBf1q`W@=hX5f{LIX-K;^4jc46Bm3^ za&o&*%Y2u6{P>H%e%#>slF`?H?KHMo%cSl1s^0pxSi9w$Mx}LIKPF#+)rAZGzWkPd z_2Sm{Uh^mSPC1#o--Dwso2oX5+y^-%|+MOZ&#uoXmceR2sHO*z$G}%*frDb&P%$X|X z*i%-?|4#hQyhr9tiXNI?*S}zCWG4TXLvfzl;|z-**HqJvTCG1G+8?Q{oH2Cm#wH`W zPxke{H1Xu1^B1S~?DbuPz8ijZcQ8Ib+GR)8d2OsM+q5{AmZfQzb{86UEI6z7$$Twp zMA>61f9pR}VaDDitK!dh`r@w_xtG+r^6P?{YZvVJdv&`l3FC8YoHG5|R|S$*kNd1x zuSsvY3cU9?>h}*Gv|j#sHF-FxG1+O9$e${iVd>eYew#%}(p$gE+y*O;q-gd=i^-p^;?~9gSPl>BK zXnL$a<-^tX2NMS7TRUoZ!T#@mK6za0{1a<7f3nirsKUnm^{V_jsm`Cz>%N_IF|yk1 z?+#VUmNq(ddb>*R)~%|%^R(s8!7uD%yS?qN)@y1(bNih6_H@2kbC$bJlNP=Y`o#nb z_CAxjXxVwj(eZ68EiGB>cQRdY)?Yfc_^(?U6fQrhJh0&B!Kd2&_T~K? zw}N-C{hnpplKU&>cX~KrZ0^6lpY`ht+l$Q~ZND;XV%NQ;(vO~hKIW(KTW5Bdo;G*O z+HzAPSHGIE&b9VSOH}`rmy=SKb}RN^Vec+qZ#|bfXtSwxu?=5Wc(P9HXJ4NO2_5q$ z939B#LB#$duTrt$+Z7FR4;@K+jlqTT7s_9xaEdqwLuYbu4rXX8tCE9Gy8c4lf^?BW zj)nu@>E5U701@H!+m$QJOiGT%4V8!69Jv2GN43T^D$_9Yc85}nYR^%zSKkgIm_7zY zbv2#0Fv%u%!p{ta#m-p#eHcQCo~5eL^eLz5hrgm_6y*aNAkI z?Nkl)!=c!>dMSxv^bcvf$lzCdWau1@m>W9zL%CZtK0S9TKxZ#0S(H(9UsNAT7G)LZ zCdG$_7ReSWv5RtgTxF_4ujPY6q1@XwL%BTlLS@Do0#b2m9xn_5t>@8O_O+2n~K zJ4C16^>MU06|x5B6s0O9i{d*U8b`ZWgPf0Bbn;X$F{YbA=}O6>ob6#yzM({SyTlr0 z+&7s*x#TgSapWCJzqJ-KQe1obUoSg=b9*<1>YK;5jdMTK1u^=3)TPThN>Q>XJ6ao+ z`IIcm3Ho23s^^ru3G>n^UOiWUbB#Io4(G;mZZYR}aPA!E9&j#_E^^UpPU2j3&JCfQ zJ}n@=T>trtyd^6PruOE z+;qW`KBbT7l&_vEF*cNYMmfFa;va_A&NRyDORzdki(bO_QONRht|{j_aqiI6P|b&C zg>u)Ig>n~HhjLE3>_V@3$-2;Z*HccnV{GrQ57`L1P)Z-VnsRd}S(GF6zutbIZVs&n z>p8c0lD;fy_k_Kd=!%@aSEjSHxW7|H|0vqOb|FcnMEBX#ofRs{H0l$dNa}Ma20Goc zi2B~9L^mVT8y-ZdZ>djQ|DY-wT`RhPa)es`a&r)CM3(3vWknRi+F(p`<(sfEgDzmgu#z5+`w4wX3L`-v* zR9c#&NN8h08^+VJo`F^!EJZB+`G^@UWhlu4)H7L1I>{2q91<}XV`yqNKvqeKS3ajJ zy2RLNRg`l&ldi`QvP+6e*ASkBoZy%Z$}PwxmT#0twASg@--vP9Xl;9jn7=q?mlSb* zh~BC{(n>DI70Yr+iGYY}v-FswiVGsH6w>7wJ;6^bmuBQM6i6H|eStA#ZWapLETQkmelon67>l(vxFe(6wKq zNZw;H7^XlzVX+vdq0~~Y$77fd*}yS=!(7OZ91~+$2syL2|L=GVFj9k)qO)H~^{6F$E0AAoW=a8cspFvZNR;LI$xEHC%^`WhrU+ z9kP(6wBZqCGfM@-E68D%$_9-th;b>WS*jbHkUv;z7_vZU2P>CyO+!wIm!-BL36hJY zuAva5Bujlm2}nbhhKBMGdaI_axv8NBgq}YurMaOVgzi$2(!$UbvVf(fp(A87OB+LP z$ZnQ)hJld7Qs{W!FbZ;+WBMCDg4}0$$1oZ4oMo6{HiZ7T$mtnwSOjsgj4&*R#7j|? zQHFI8dj5zk^?_j%q&7)MO7V2<;&#YLmT`tX5b5w`5;YL_85vnIi1|Z`s$@6LL`+0PC??T38#1TE^cYw^-^JA3H668OhStm>)8crGv33WHHG)O7V0RcWKB0mM+GMkc%u`jnyE(v2-`qfr$3e z>*;N54iWREOJ8Gq$OD%C#;y0d3^4XKi*-H|NkK}gGRQax@;3FggG?|EL8(;g z8%HT#`NTL3vV>)-F&(AWOHt`c-m!?;&oT3iA41NvEH+Mo+#-2EDPCD>{0!o!ABA=K z!Z_DVyCfxvM0{+@O5;+*q>$916i-)&>(ZZPt#Kt{MzE|meg&Dpvcb6djhZ(acOhmW z$9yYgEz36Je#CsoveS4Ra-3z4@jT=z%SGdLw9j1YCF3nfPU>Y$}hMH7Tmn%~TmNSvaP@ zsVXE7%K%etNHG$9&p*i22vS+blrar4wS_e0Qfa34khU!Enz})HvZR~(LWZ%7HVuZ1 zW%DV7Sk=rOp-N};^~{leaL*5?!{s&dR!7%|m3rkS}Y zq$x{Fa|K9Ome%HKkW`kA=6aAREIrMwAxl{Xn7cy6F|FPjgUx*);&@e;5$2(gHB{<* zO7Zl4={<|sPA^GOl`-bY7V%rkT@vw$R6a1zg1lh)&^#9s@x&9d2i1=5>ki}`0r8q0R`uaJo>JIyyCb6CDN-+`=V*>AoF z*~W6%{3qlP%Q5pK$VHZu=BJRmEN9Knv0c0%5o;a&MKiyIMAJj&vs0oCn0}5E+i5u| zbkU1ygw!L^_W%yn25BQ>hMHZf3o?vLx#;D5qMnbW&@Xsu5HgQT#i&_G=q?(PbCgsi zMvd3RI{%FN#3xe8tmcKdFnuvDzClou#Qd0OOiVvW$|dv{y$# z_OWzQ$D!0kDN#x%bpqrT$ummvN@sNz#22Ld#3;opUDO4d*!NbKqAESq6^LoaF@4ol zkbx`%)b)_jEQ8f=F+G#Go}uba#4P8SRCPCGJ4>2+0CJq<8l`w8T|Evl#)RZO^*m~J zN>P=M)a!^zAko+G$?9*A;w;nDdypzD)73|imMovCe?$7Q%u>x(u@#8l*+k8%vRHLP zKH``qY7nxRWvLnm*}}41O@|lM=6NP`g6t{&&ROFl+J@}oK$ z(v#(oIsr0@<(N7hGKuA+Iu|mJ<&?S{vXbSh`VC|=%QbZ;WFO0Q^+(8ImYeEn$VHZW z>IKLxmOs^BtYWJ)(OF=<#r{(NK#WVu7)7-_fW%0NR~(inkUT6d%PUApmS}qAj953` zW{II!st9StlF1UZiLv*TQcKNj$&8pZj)}8mg?z%2&5{6FCS{D0!;%-Wo@0_N$&l?V z`7OmECs_(w%0ce26tYx?nCYyvzNMsC>Of*xiddT3{`u{%n58vh;yI?IloXaymX3%i z#ZubR4bp(6nq?@YB}+|9n$1KlHjzYpRHdP19Aq;~Bg+Jo62A@V)7;oH8FGs2X=3>d za#f0|G_%apOR==GtboL23DwiXvJsL?imLRs?1YqM8E82IY08prxd`dP^^CGywuyb_ zyBssdat|@nrDV2@u{?mR4U2gM+0ONhwY-2F;+SRh4q5}X%XN-fZV8aMl;1h#Crhyi zF?Ml-qi7#hIcq6}7(YoWm5x{LTFOB3u>5JM1}Vz&z)}lRO^T{KvNVJ==a@&9=8*0z zPb_W3DHde_mwIOD6d{fQ-Xjs8Nacm47i1dCOG{tK5|&q%cOV;C6m1Y>AB#a73OU1K z)KVcgSxnkU$TJqRHVR^o3r&xzje%rlv1lJa^08>zI7m4bt2Pl*mxb<8g0y3a(56EA zv)HxikkKrW+UJm|EK%BQ$YK_UHV?9a#i=cX>}7FjOCYCN+}anA8!XY5b);lb zdTA-Brz6+XODl?T^^-!s-e{HWVqfv7G?NHB6u4jnW9pe(0%8GU#stnP3qLf>TstnhLLSi{)x;6|_ zNJ_Hyx%MGyt}cb{3DrJAOjoYwb8Q@CjFd6TENvp>6Db!gv$QFYxl(Re=4!JbOQlrS z=4%TeYoy$_EYOxfwn?d_Ezp)j4oaz@Ez-Wmoc=8d5__1#P8v3DQQ2s;tzmK>A6E)K+Of zLxxBhs;$=UKt^&sYqW=uNnFnw?J;DQl$_d^+Fy{BQa&Vk0olT(zSInnVkw6+}6ra@w*q$|g@8Ias8 zC$xExQc{L0KWWP#RXFC9wh7XZ<+QdP(wXIqwinA{u$0-_S?vg7rbzk4a$frhF-xU% z)6Q#WAseL()h=k4QEI0YI@hLMha4ukPKmBh&~8AUQ=gWL{&rihY4;+H2Kse@`ozbk z{H8rYOdb-w)J-X6Na|1uTJLHv5YsJ8UP1*KCjv!z2naGfdo&MJ$gr zA7m}dQ!O*(`!I=z91oM6kP9SYE`rvlT4IzqlDQ?traaa1Bj!2BJQqSSk-7C!Hs!fi z7%}lA`n(&gx)ckO;)tmeCZ!=Q!=yY3Jtc)iOwTmUV6BXpG%3wAm$fnE6OPGl?GPpY zrYs;4pJ`fxwO5qb-oKVHs*-5!hf+JZoa$We~TZyg6YEoFo?zjZw1rj&GR0qaD} z`%5V{rJ(g=jLV;>PxAwd^yDHE*KtVb}X zXQkMb8rBntxg{mt+E~ipT&kJ%3}S3~^wyYQZEigWiI+0a+QNDXl9yvzT7Slzz9ofz z$+6zT*c(Z)DIKhLA#GTO388i#$n|_IWfIF&>qErMmGX=AGwTb;Iw=E5#3g!k{+(r} zRfC*hSzz@*PD`0!U2V+@`Ay1G>qcuH$TN=FXw3(S$g8)8s_e8@aENUurxY8V^{<4O zQc}{b=cUvSlgcR7n@e4=Rzaz;QYKh$OIgHn&sqyHU$We{)`RSpqAGt_8=>Z_Qf$hf z)+UH~&ZQob%%`>2nncfOp`<8}tS#vL9bIQ7g}x zl`h3bF&!OZyO=_IZv$u`q5pN1`xLJt|T%|WRR zvXn|PAEl0Qslv9!7}sr$ZC#x+jaysA0p9fu46kxb3uO#WDNZ-VY}cE z-)djT7*%OvyAH{mABE_zXLH+4EYsp7HK46*cO9dsRD0?Z>yN4k5zD=&6nZR*?HOcv znEZ_?9LuHJ+Fn5Bvb3`qoMLTR$I{VefgE7zY_mhovh=ZKgWQpF&^E?KH_1^wrUIe4 z7;CG9m?#o4&CP6+Y&9U+q#U%(vb8{|a$IVmZMbtjRncC?&~wdfBM>u~V;0-eAd{pt z(^lEurJCuPaI%!Dd}VvzDW>EI%h$G#oMQXBEG0(SVf!4@L$8^Tt-8ZD8#NmWin5Aw z#j?w`&?&alXcE2Uci9$0;=<%B)Kh`wd)wELUMzcTn^Ec$Db2LKwr!Zx1yU4cpY1!u zZ01t?Y&)G|xgTdaX!`**|0X3q;;8L7O1p-A2q1Db2J?wtG&oj!hw%Pl?Xv+x|qUty1Vn&-MUvT$ZX3an}~>5^L0DDXMbU zmId;J<(@5@OSEcKN~l%u+Y%6yEG0hTp)CngL&{p)BU^q*t1u}H86c%X#3Ne?$h%Th z<*}_S{lxp*d}nHC)}5HS&jL-XZ{ z7y?NoDM^W*vl}rC(w-$b;(f?qmI4vuAQM0n2HhG5mSUjkEs~36H#8Zf$<-Lf%A-P#rMi|^;%`C;TDnfPZMpQ;A z2g{j=?udzDxe+l6l0(YFh(97GL-Mhh?F%5qxl|_mdPohH%=RsiMqDb3eK({NOHTVm z$Uv54`+dk5mg4q^Xwj27Zixx~`L-aT3@i#sIxvKVL|h?qaPo`Lp3kQY+ucP;z7kf`FJmLF{YfP|hl$uitN zHCp^dOCS*+RT*zz5iQ;$TbN~neHCKLvP`mn38~65)xHHazfB_6gohEI*>_^>jiji` zeEZ30aZKBeWsUtNq#wy>N~*Hg{xVt|In1Fx@rhIp*zF!6Ygi829gyuThwN_1VV1*o zdVw#My2NtC9)SGLa?~CRdC79jo(1A45gPk(dpsm7%L#i9NPd=+_FRy1EI--vK@G-M6S1$#Njc9x6ww;+dEF4-$X zF0ov;SA+b{a>f2O5^eIe>EQ(SWxKvtXDab7;Wg^E#)`C3Ym~oMfAcoR<`&5qnJhCms zA%(8@i|h=EV_6c}hlHL6&$2vnAY#h0Y>a#lQiElCU}ZCaQU(l&wUcHRj!S^6m=Z( zQVLz=6?GcZ6InLYVs^(Lkbsm6kuJwmNG>U5NS;HAaw(VN6{G@56H0VVm&4{4%XAp^ ziET$!GCQIm6J*T&$aserGF!?+lAvE~abL<(bPVdqjF@9GMkUGW7fbLaOEyO~#Jpt5 z?nr>R%Y~*Vha(ZCad2T1 zQPmtHAiY?sJKl$kWvSzs2wA{V*D(#URm%Oy`i?n}V^Zk13&$eJ9hSz9r4Xe;XqsC& zRzfrqFQq7@mE&tj0hSJqeULINogHT&Rav?@ZerbNNTTnJdpe#WrWr{ON~+S+VF-wI z;{%p{j>v#m4?kxaT}Eq z$A^J*n)gmDCmrJv)1T$EVWL!` z(p-wFJar@lO$J5jMj}2o#q2DBm|h%Xm6FPm)maZQ<5?1&Eg&;l$~y-_ma|lLj)3f7 zspoG0mOy z;y$XUGRHJ`u0c!#j%n$ncL!5UTaIbzT#uOU9Mj6V5#t)pF|C}NQEC!P8|PM(TEL~+ zId>ptCC9XL?nKPD9Mj(UJ!(F|G3}ju5Oa^jR9Uo32j>rn$w_@eRFZ>`Vk{k<#~{_D zT#4%FJOydbF`b;3AbrB*XUMQHxdC~frL*%cs1j_L38Am(iu zlkRxO8HBWuLf=N6ageT3#yCbe3qnS+q&bU0rg5o}&N7gdQieLxofR?my;9O0qnwoy zbDB$ycGiGAW%GO5avBbF&Qbfv7$5Q87OkpD_>5ea)8xYe&imI$|ehW#Ha>cR6xf?Q*Yg5_)HG00UZ4;`DFKSBQDn9a`95NGw!+WU?3EF=rd7Uu;>63bTSWk>~< z9nN1Mjid~9>~#JH873v&vD738cOdO8J!Rt{IS_GUhX9F4t zOETL3jInlTzWTTdA;wRl&sQH;5l9}E4_s9sC0S;=8bPYCEOj-9)MeS=>PsnM8@+u;cnDlUNT|NKr|~A!cV-%ml=om6F+Yz%>yue}%<- zjB!QO(Q6jeH8OjC|I;X0Tpou;`1*K@*k z3NeE?=Dh1y)H6v+X4iSwZ;1IaEaoO+wsSq_T~8776USU~*)ogvxh$oK>yj%|X0hD= z;F$Zal8AZE_1t$=LQGWMP&@zOs)Ly9QZl>#aMgp9mqJ%HxEez0vAEn#P)|#)C)(Yd z9>e5PdT>m%yERIUWbwK?B4!FpW_KsZY$;Jnyt_9_t>Tz$?sUX_%aX%A8nTxq!95;w zmL<{s3FJ0QUiW9H*<3HQCM3J(Atsh3pL>30@q2hN67ead6mT!WoK})C^o$+%GL)*# zr3$!LpyoC#DekWzeOU^-*F#cS-iqD;8Ou^RdLv{WOSR}t82bh(^meysaTkM2*~>BY zqj#Xx36@6DM1#=#Md9r=_^u8>6RU zzHV`;P0@=G^NLIDjb4oQiE0>XpMB9QATccaqgO!^SPn+7h7@Kw61@gejpeuKFCp~M zP3+ZG<$m-!NJkcqXH&_xpdm%4a%6axdA{vF}qN?WyNM@F|JwHNnvvl(u!W0%{>FzlU zd5fi|=LAYMWa;fWLk|UWDeYMLdCsC#KPhEgLp`@3X;NCbhI#H|O&G_ehI^hOW(La? zk1MO#23N2w@MM8}!?Mtm4e~w9VozdLv7MffLT|?NBxe;{({+wn;>nLvhQ^`xS>h>_ zRm_E(Wx1zBRwK#ll16?=esQVJ>CJdLu7?Y#qu_%zeD zd75Afd&wAjf1js0>KV=TZ1=Q)ERa&hwcFDMvPMcP*IrLIOwSfBwcqm&VveyK@(h5S zWjX0dL#cZ#r#$J1F*gad#%a$eNHohO&sa=zHYs$D&GRwlG(}2fmk`m;)wtBJo=>uh zy+lJ2@hPNuy$4ZqCmEAD+Uq@vng>gvH|cmUBj$asCzJOoWERPCN>NHS@Aa%^s(C;4 ziBG}kJl+?GxhP9Da^>;9g8VL}M05dfWSp2n@sdn&%tlA=UN^)krIV|)H&2{c>oQBJ z99`O*f|xv9sgmh%RPhc%%vdQgN)_*? zkZBxK)%zJ_7E3MfJjimEy57Z*tx|GE*Yz%o6I;O%DfE6>?{dUkm(s{p*Siw(gr%+b z8;Gr$-aegN9lg6T&3-AW($RYWHRqB-&#>|yjuY#AaVeFl)M3<9OG@VGj^3jv)rL#; z@cxQY-KEeS*4|qvHB?F?S1<29$T*G}>Q&;!5}ePH>NP{whDl_+n4WD?qLfrGy`F?* zAIFUF#-r3}meJl^i1~%(BkvN#++!KO5|mXbi?fNYa; zCHgb38*(g6ypTI#5`b7*=+pcQm5R-Vtw4$xSC(v|Rr8aSr=%(~z2aUly3dzowzmwV zJo85;Xu?=eWUlz7h}?<+`FDLF|@*)gXiV(f_| zR!BLL+LR(me31T9ROP5Q4w5b<==sT;0+}u)(R12c1F}R)BuN9v*Bo=s+X}LqW6pUy zLyk+KJ661XAy=gYJwJQXAy2rT>)sghEeUQdnPbS|{NGGl*tM43S0N0b#cN_8%*OSX<%qeRAjO)qe z6Zf6Dlx18`9-j}gk?YClON1QcdJ6c;L(X$O1$@;Zx451ZUjxWrTu*UdCy296sC`QM zQXyHTM0!g4#z68(QI#^jNsuy9f}V1|xsV22PX*rwNP8|-!M7dKhf7uT9nC5B5~E4P zUc&6DhqU2(8u|7^dUHKZd}kmdIHrm38e}}jH1pku%;cD6zGsl-9Mi&Q%_Zi2 zvlLZn;fsdskrMQ@^5ue@<$7BCszPpXJ#BrBAWt}^t*;Hl(oS!&r=Iq{UJ#!Yx}(Q8 z7?NE|(9_X34pL0YeNQLf3P=^Mr;G0!NF$Ev;@b`B$T8h~#~|-Wq35&t&O_dn67=-& z-GfY(a^KU_=gciyVly7U4q3r5qkV5dzTud$zIurZ z6h--gTCY4Lg^DTu;KRFWDfRh(s;Zz7~B%XZ(# zdBnQWn4|+GIzIG$f|^H4QIws&Pa)&OWCmnbn0$`0Z;(Rw>-lCP<|mHX?OTYLs~of2 zw-|Dd<$K@qJn1w&&q&nHVtV%Y)`E`B{GSy#*=C za=_OGQikQAZwjOm%OT&lkhfV5`))z%hsgs-voLuKX&WZ5AYH=5m}H2j=Q@xK6{;Ne z*^|Vwn8fmjZ*Y=0=KqvLeCTdL-&n|8mM6Z6Nn%Y{MzRt5%=ZcEIVgqBSNc9p5^K~Y zk~@^P`kwh_LyTQ?QI)@aUnYs)TVhDWM^#?=wjd^vW6b^?s9F5>F6yDTIrtCIT+pxR zGA2RM{D)AgvXrep&3_b9i|euauVGxRN%V2q{dW=5lVhU%_aFmV9R8;m`&bsQ{~6>{ zDR+Fa{^v=e#w8pR>;D_|te3LYm&I>P7Ok;~C9B^8`HoA)`J*8Fq#X6d`#q4KxKuWO z5ORfMviswb#j^OF8~K|-mP#oY-N@e}SuCB+Bw~6Jlt%tmkUdfg zQmJ;B!Yfi#is^`P{UPg_rZx3<#q=1uh32A-zgO~mH1}N6Z>7^`3tfWE+?I(7zt?6UR*Qe+#+HF(3Q4K<=|l_J0R4ch}p;>!0R7 zk}Q4~%`AnUuIxXBm>g0{_&@cZg%szQ>HaH_DlDJ-e}OdMQj7hbd}8hGC8eEzi9Zu0 zjY}={=YmXQ`NCfuvVcpi@b`p##WAb=!y)@w*7(OmPO;`JZ!?}ohKn1lWw zA(?xG)|Ny5%a9T*hy4#B%~+23pXC!RHj3q_{{>#A)8pv`g7$M z+r=Id@p))H>(7^8wAcX|bH#GbUm(BOF0PS?YZzjb^Zr8l#g_Y+#L`ogJMS+HiKD(0 zDMe6EBkB_|D#a8XG`JLxY^LT^BkF;D&1{FU-6 zM3bbb%Fq6K`Ng%4vq;3pM$#Cvl;w94F<)y)^qL=piI~F3z!QHf#B8QMeVU*6+vXR0 zqC!r33?}KyS3_-yCBO48SyJ>ZO+&VKN7Xpj0s_IRm!9hmclMRK*tf zB)`~eiFYN45B)L_Sb?R}jbe211-?Y7G%ghgY=TT?i4APU^vn;F9f;W|B^Zbe?1n6& zRy#ndDwzWNF{f9lPnWpBVZ=NNljD%6-l3TIz)z6eVR9N$OiHsrv4FXNSc0`UrbHl$ zgx-z9QYsKzK&)fENyNI5pp*_|fsBqXE~;P zAQ>@t!z2YYoBHT;(JfFuPy{jArKn29KxxQZEY$Z3HgHLcSw~m z`2*5EOddi;g~=1h94VsaX9dK4b}LB4vY@Ag1zte5v2+cX3yLl75Q+HMltSu#_bPHS#l!jE5@(W2h zNQ*Fe3u7NBh4w9h%7_^yrCZ=ipcZ0ga?F)LUC3&dYk{_y!f#n_1_nb8hDmxsF@+bU zBq%onVNf{a}66}hYh8$Bg_zq$^ zNl6bD4UR#~aE>V!oP?NhQa%h83(mn@%p+MtiQYvLT#A^(EG2@=5p#v)H^h_-uECtz z2kJt1+y^(Klvj#MvIUZzrA+X9ND52&;6Bt`k)>krN5oWRsTBMP&^kk_Tybc*8Wqz<)@Gh47SQ7EKJ3*-y{2eiKq^Kl+K$fx82tL8s*GZwjK*1MS zUOP!P#*4G$wSq5E>bR6EmRdnWidYY?N{LZw2UU8t7`-7#ib`Tl5$lFwkY3L;txnJd zaY<>W)eCwd@g#XEsY-)jFh!ijt3iF@{IZbj;-zIueU?VSoGIcM;PrW{J;7Qi)tqB~ z4AzEpWO)#54C%$9KU(Cf6DN)Mwn8A=Q zSZ2q32-(K6DCRSa>qo9*GjF5y+-6DOy;pKL@2GP$^w5OKBBzB&GyvekeuMTpHpS zqSve{r(zlvR%i+nS5Eh3{rmRn`7^qK|anPn=;7d43a$T&6*o!kP#VVaRxbK>omqCmp-W*rn4ALNj49_47Gsuq_JZ`PBV zK^A3@0~zE&2FWz)&6+D^ke(T2Y6jVoL9YKF^6mugit+y+|9d*8tcj9H%DC^clw3XE%gGB|=)zLP%LEWhqK2v`AS>vb6Y+D9SGVUhjEd*K1Dqx%u|l zzK`GU|9?FAe4gIdT+3W@&CE4(X67!6RMS7nyvdQRWl`kpqDbGO$R|aSbkFi7H!6yp zR1~?fDDrqwWL;6D>Fwp~dZ8$i$6smRbWKmf-)P@7((A7Bkvsd8k33rxdAVQtW!4u( zR@_^DnY-^V9~oB^*=IocWlk)L{81D+{ekki?kI|kEsCr!iqv_qd^txJMJ_3dJWv#w zTohSR6xsHn@^v*UigYfD++GwJQxti>DDp>9q;z2U+K(%WTvZeqS`?X46j@yq+414> zbsba`xw0rSq$o1IDDq8Fq{g7~bsbm~IlCxwPf=uiQRMTY$d-f4*VVKra%xeeXHn$a zqR9J0%9s2{QKWQe`DKnPidi-&x;~k4=Z0+v!ciuMUmb`k#R+l zPl_T{hL^9aX;GwOQRMcb$g@R}MMaTHBg)s+s3?*zibO?`(M6H>iz0s(MfMt5zV;J~ zA~zOAMioWo7e#(6ij+QHzOHsfk!y=0BZ?w(iXuN1MRtFpd|hpdB3Bhf9xaNzRTTN5 zC{kxs`MQoOidZQ55;ED6;dDMQ$sKOeu=2EQ(Zpv3$wRiz25NMeZnyj4g_MP!!ov6sbS4 zeC@{>SvncXyQKaUi@^wvpseEM1mkT2qxfl1jYGZPmk%y>9oC5g{Iu)s9 zQhGh!mxZ#jFN7a_p)A#sYDFDKb)+t!uAy$H9-^M6rcev0wbXVu__j2nj-xJd%147B z+)9;v^oUa^bD^P#g|diRP91Y2zET;do&~)X>oRCgtQ(;BVl9D&#`*_S>)+(_Hlo@> zN8z4fC?`X0V|9kw$La>16l(&Nq1MRtlSIP)*41V zLrtdUQ_HEJsI6}CrPQMKp$?|nQ)g0FQN5@^)YH@})O_k2s&d2@P)(?#sne(nokB^r zWq-u1?;nM1dpre|V5cZtF3C~zR;xFZy3qOYa>*9VBW7FwOvuK|h183XZLKNL*f{SD zNDq*Kd;{q=55#ZPK-MCrtqNo#q{b8 zVoijs*S5LCt2(s@wJ+72I+Qw|>P%fk-9X(&^`nMT&rnmSdDLgrI%d3VUQQ`_7}9Z?l|@kRv}&14&B`}Up{$2&|M=A{7mD<<9HDFt^+n!Lc7kk- zmqK<7YfSA=wWe}ZXUO)vb0KY2zy#ebD#Mc{$uQw21Zy>(jKzzM{ z_<95J^@g(dUHG-WvaXSit3zTnMNIeAP!5Eweg4Q$rOGhGY=k`pJ%$|l=y_@?^$xXw zT0#Bpl$CAo#@DJ)N>+BHN~y+FmO6&&;$&wRJA&v@$`m10`#F%lkgZX2cA18lZRt5~ zxr&d3e$6ZHE3HjiA4+npYjckuB^{~rp{7-Ixp~k@u|8%@OR=NqK7G8(C{4XT&Y`I$ zO*Q%U1#%@~?_s$>?u6_Z`!1yC!9W&48{$%G^et5FIQ2fntk(uXgSXHePr2m+nFLM4 zfDB{?^*;1iyxeLor$=wA_b0}_?kBP~UM{KQTf}~hW4}PZmP@Uu1^3-6Qf*6Z!GEH* ztmxNSy2ZzXKTxu1>;7IlQF~Hl)O7Tsf!xDV zMnSe!Yu#_9;OGNc9jzeE8?t?&oQIfhtx#@&bkr5LzM}2xa|8uBW+ShSoMheRBW5G# z6UatR-2o!&;?^GpRo_Z$YYW+Uz8$jG-w)~0JCK3UA@OoapDsb{k~sDSWb5_|q z#yT+OTOUeq#H?iB`cQo9LwOIWM{T3^`dA>or779=Vc+ID&|httP>x2bj_gqMYC@Hf z%MsJ9nvv_No>U*F!jbqOV%8g@AS-ViV@Y4V&e&{7$5klrI|cGrBeCYT+LH$l@*}Yg z<=3}x+~0-N262wQkoI37gCW~L#xeFbWc{+(rH1m>V0>FH&bt<}J^nXnKpgX1CXn5R z_)$_HdL~ZQGlZ4b7_sL!GslW}xg^J($ZLD!aOe-DhVnLKN0oVyjhy!(owbDA2Mf=u z81Y zh|P)f-UV6gKIpwTHUzR+!4uT;ke;Utw_9>7@pS~OBVZkY_&Si+)e(rVBM@IlAij>I zU$XMmBi55ySxfywr5^REwWy|4JL+PmP;Q1!-cI{K_eR??pCHydj;(^`#64c`G2d$q zsWQm=S@yaCy`@@)y(mQZ|K0{IlnX&tziL2Y!(%AHU6-snpWpoUUUQe&x!)Ew#~Y7O-x zwUOF!l&`lTbtrW*btZKs)r%TJJ?9jPo2?wtLcAg?md>6UdGN zcQG~s(sN!YUoiDgYL}<{5xoTZ99uAy3}pM8p4qLuTM?_ZgQoU|>cr{~g|R+>&WN=X zIvdK$4o~}D+l{&z^BLP48!@&&btH8%buM)km0>BjFxH29gnHH~lxfhzar@qb?A}A| z(SF@pLhr_@$3V6oJt>{D{t~CYftc+Jv!UA6wKvv7)39%aQt26=x-Fz@8A=_<`o0Ha zy%^KkruFVJ#7r{AYfDOV;ER+fuO(tu^6`+hpc9u{04>3Cf&AcNfuzUUz1%=9fou+Z zEp-QE^?nO=i`!i3S>NVPkmg9PdxH4fW3wQCuQ`Zk_0~g4Z)mFCOS3t@re@@Els651 z6^Qn(o>P*%f%x7C#P>!;F`PMzdMzvOp=51+Rz9GXP%Ef4l)l$wIeuYGzYJ-y;5o0Y zs9IEgs*E~}I)OT!x|q6->P0c*Kg|n~k5t~>;x5rM;`@OpX zq}wtpy&zlje$*gp3^jvVO#MPtd%>5|fZE?FADs^AIiRpr7a?XN;&x~$+8435W5hmn1etz z%h-NAjuvrjcgXgXB=uIto`n`*xx(6hKO2O&!}&x zpQ+UAe%-23yHa~m&8SvXJE}8v5p^wfCpD0Iih7xvO)Yf_Weqg0rXCYFLet{8XmVAa z%$Ab5*{G@hIQb&w@6HrnfhYGFYEH9pg&8emM~f0jXVM*_vmx6DFNJJ`^`P#c22hVt z&r?&W51m5!7HYARuG=rr!Lbf|17Dbm)gHP&mcJX2k^2#wj#xf=3bH#6#t`*V68(>KP{^4*qu7#-%KQ z?7HVm>U&7*Eo^<#=4;;c^N8CaYiWPT?(2r>wwDc+St-y>Czwkb(|0rbE3B)Kzul`{sX@3FR)N>R3z3Jm_7tJ{3O?qO;*t{1nLh@%s8_L_$6p63VB@u^~=f4prJk zWCyAFmT$pckhNg#t-htn{Gf?jE)e|{;3VV?MH6k>ON{P^#nDBdY+m^jD7 zq3)svQ=_R#)HLcHY6-QPsxsHtwhPsO+K*~Yb)vdccThvA3Di5(GU_*K>v_HfyHZW5 z!>QA#E2!So0jI1yLA^q~=M+lw1tNC-IG8$)>P($YT|`|)-Rx9xTTWVN=ZZkOI91%LOPG4I zQz-91+T)?jhwSd^VrWAZjrlWnD4YIft!FE{-)_ql|7KlyU+UoZ@ylKvJ-_|)zcKsY zR|~Jfil2^7o{9dyNxA4DthvsbbJ4?2N&7ZGbudeLgc|m@<^6vp$G_8S|Gm8b8@>DQ zwEn-~FIeTR<(NexNEX^6jfm?LqBF9ZsD{okd+i-A3I{jc__C z8VBk5?WAZjHItg}6w1etUCl0|zNY;ADwMqz`(L4wna9zHeZQN|H}a6pRk}h}o<6&! zPbG#0PcZe5{F^1iv79|$mz4KBOG!#j?$=F5s@>U{0ky2FCC`Pdj-=iX5wqWg{F76; zsL986C7g@OAnlio9O7c7a{Ll}pFb{7?>c`L>srMAh?Vp~AH-~a`Y5FLpYc5UCw{B$ zL^YyXQKva|h%SV*1s$RrsJop~d^Se>ma>zl9fZ3 z`nI&DPIJQDJnB}cD@x8sUqRZIe6-dnX+bDAed>Q}>qXrQO^Row3!ukPN+`>q_jgvU zhin_kXFhLLs7IVbe}%VSt0KhgY}JeEPYt3*P_I(+spZu7PPn5>iR2Np zV_jFsT6!tz%K&qWnMmj-X#jUykvfsda53_a4N7pe&KWZfP zGPS^|Bz}Tj+l=)G7RJxW=^h`- zEr{9Cu{UHRr@vE)%!Blo^b+|T(mp7WZ=ePxnpcn1R$GUEcy*yJa4L~2Aj^9jq%#WK zS7xf-=eN`)h-nK-WErI66i;n@W!nSq&p`J3LM!TINVgH*8DQ*6%8$-mbj#QN&gbpW zD`u0kEw5|4b(QPe0g=KMoxGO5wad?Pj#WXQxVmd8bl4Jo^=Z3RY;E@ zfxPJyO2cnNR>oVV1*EBX0`?)_f}V(3Tkdlzk&#f{Qtk1HP`7wY&cIfk7H@^O5VNh& zdbOqE%noVEA@}`UG#)WMMr7qB=yH^om8njl%z?DzQ1ppB-BSXo@~s_h1KGhTAMFZR z`~ICHNbzwals!MZrc-hY<)0c) zNiW3g_nEbyTT4?i6ftdcif5O?dh4vQ{VgSpAS?MmNPp=nT+YwPDsGkj!e)8(7dF!a zC`H#dB~Q8XLYWAi68FX|sB0|$UINari1mzPTdlQGZ2dA8u@ujt6}Mn>`z2Wqf5x`n zZH2K>SaPxzbVS(kD(O={i?r>ba|YWUrln}Tjy3#7h2x|iJMkNpJ7N~zY4h8+@Ld4k zlY#i2OrG`+q|)~`I{)+i;@2pUV^N15WAPla8$$udP*%q8>i6Vpu-tJCbYvILEmE@3 zm4ZINv0Y~^S$W^(&B_{Td+I)__77G^Rx;G9yZBgRoHn~*TxI2Grk+ThMO{v*FX6oXI_gs9=t(_9eKywT9l_XWN{_%+@+*wZq83rBsqd)ooieiPkJxwj z)ZX0(+9Fm<>KN)2r(_%9EkDGzL5@Il#$(&9J7Ok3FR`bJd&JxF2c+uRFOXlLA#vVH zKZ!gFb%+kZSzMRPN{E=P+f4Ss0;&;HuW{$|th8e66sjAQJYkUBFS(Yf1E?X?2>*ima`e?yU=*7c__&n8N2@M&%e7vx?CXsd4WLki0P3g zkSm~F_flQY*d0#)@7&2setq~)E0iVZ4ZG?s`9RN0G^FZPejuHwq?9R$+4h(TX&phl_0xN+cK8*4TMG)~H#@bqFn)taTh$?I ziqsy6<)fBVYp1N73~7$6bfxq!&{^yf#(GlsPy?tT)Kk<%Y8LeYwVYZ%y8x3n5niwdcRRCB5|)y4^LWI%TG?h5JM z!NU85{SecmcPI})vX9RC^xmQEQF^@ByrE3r;I9MThU|FnkNh})AeJm=zt>i@+>cn! z?oa;eN-3<@f9oYBo&WUDs;wGkS6=z(M#StY>vpOS^$<0JdXjpHnnul`KA=9QR#2;` zU#KlN`nFW3LaHHEMjb)rs4i4D>L#iebwBkeHQFhZ7a+U4klZDC9WmR2Nlf2kZq!hZ zVYTqD&6Vp>4I%B_Z2aY~!{X)6Modew*ine(qHb+uLu_5MA6zjO-Z70Av-9j0KKO$vq_D`IL@)}}qqkTy!p?rkcmvPMZ zOT{r?O7guWE5+*2>)%b=S5XTBX_5B*cLZcxt2<<)B+*TXX?b`P&dn$7uH-5EYU>BM zyruCImzp;tGg-=9$a+%0mtp#du`k?mcBezPRz6Bs4&=eOWPOu=Xe@v27s^&h)t07M zTUL%h%<^ts#cIn(wW!^xeW`<}!>JtAgX&EUaw=?Tw=Dwc&{*4iy;EW8M8vL&Q(vd% zQlC)&aLP!_Eq&j&gLDrFQ;X2o(Ea0E`$EMEmtAcO1Xtf)+1@b9Z0ox(=Dwn%}8IwO#P{$ z)RWYBO7FjD4(w5g)sDw$?X7)F>p@mWDP*nE)UV@S>&VozTxu@r$>jz>w!VWQ+bf=8 z>SXF|C)|s9uZw^+9uOk&- zJ#AVC-n+xysPE%e>8~EzSA};k^;uZ01Md;I+VWB5k9=$_WBMGeEvN61nkF&zO==Fc zkowpOU$22|OY4_vY`cAh*twyuW&NstJSV^RG(yb!#sB&cNK?eD6#Z@1dZ-0r+c(ux zT0>S|Ten;&{h>XOTDa!=CX)6GzIKUJ)9~$mY!YK1QD0Gdm)&ywz?gok$zmHBtGS&o zxem1#)tG8d9Zt2UuBPs#9-*G0UUn*6%UOtNzvQC@)KY3CwVwKg`kj($zLY9dO{#?2 zk2;KMPj#U#rEa47P(!HE)GJPQPt~@5vZeLDfNgz!w?OCPh0Ez#*G9w=lwx_494isK z3q2HyUg7HA6N=ukHtoJWzK<5i{Qg$BckjW}QpkP--eailKnE-SGOB3vSmigI~qBxybjQIaqJB0VwW0< zKkF8b>{|HaQaT68M~$fqaF5zzEg3tUTENs}89RkKoBD*y-AIk3A};qZHHn%-&0vnt z7#qx3JKXKEmj2GzmDJbFagdAI^9MSH3j08>+H@P`qhFE3^e46Djy|>>Rg2n<3aP!Q zCRCO>gla?OoeKB2;*o<{t{Y+4dyqr7c_>4mk=W)HZ{G<>wR!Ax=J4l*!ai8nUgR~D zl8@fOawa{Fn|^-5l#=(5IvdNS;ZC+|$KEc^%T)@Jk`KLbWp0+lcKLYaaEXQ^ni& z;RpQJDL=t-<+pUwQoqe{pL*v&nxT%Y>Mm3_cR4b~DQ!>JE1jf8hOG$+PMq6xs z_1@C`s0~*W$gAsyd)!o4r;69@e5BeMT?*;lqr&C%>s@ch<*nm#zeBbas_){rLR-kb zOQ)%(qK=$SiDN#sMD|8ZzhsPOQ`{bk=c*v>(@^|7vbiXSAP*pRX&f5{+17di(me%tnW#4)J0dNFY+Ej;esoG& z5X!Oj{92w2X&s?l0BOJA7c8ehdO=pQ-=j)ox7`ETZ+{)TNgwE4;^Ps+wHi{bhgw3` zLq}4_LDoYZsLo717dkO6#g`Yv`>I_hUxZZatK>*?4Pti8@p~?T9R%PTZY8mwhwNvPqYYJI;hf-~*Qz7lYjGXCWx#)~NxYt6~2mWqjDA$$vn9lTV z9-&`0x4uvGA(p$Sg&#S3917%P#BM_jUzK;I1hNs@^gFI8(XXvOf#p(id#N2`Q_>F_ z9p`-nvN@~1as3%$Ha4t|zV&@SKSDhV**R+7|!S)521IZxF=KTLiN0 zo`GBwFPD7(RP)+*FjW1Jnw%vAc@a6ReRCi?&* zf#VLuUOu%NWI6OX8M_wuPay@Ot+LwcVL5A6Q%J{JD3kW_d&)Fw5at5<#puHI^jtV@^t1Lb^w#3f0&{jQ!RGmeJ@$bKOO|0KzH0ix68$*wHo=|Q1GQhCp6|A>MQ@>o2`U+y&s;n%e7CG5nN!w?VZ%7`!pTAN%mh$~rz)>VZsc!_?E5dLC1+X6o%sy^pEGnED)3Co^?6Q$J?vKbZOxQ!DRpZO%${s;*N; z8bY=nhfq1EtenH;u4Za)Y6zEmmdm}))CJT^F87ODE-PEL@U5!pR5^ZozDK+Tb*rlE zsG{vljslgXDRT7ri&VS~jZ~X6JPz4e=xN4Yfb>1XEsmC|Px z?au69l{_PEm0t19iq~TU^KRMFw?&V!T1QH@MojO&q@*gPM;}Yw(d9_VPSnm$8EH(N z0sVp6aBT|dFK21dGl`axme<^Jh(X#fX_-qcroMsnoSc>)8LM`HFQukaAle67TOj{H z%(Rwja^T?#BZ&_l4rAycd3QcN7NGPGio{Y59%9g z4YiK?*$G!pl=h_U0os!$?Maiaul>I2*EeasmD1-5-9}o9NlP(lDJCuD-gr4*3XY<# zj*R#<&xl|1jQBOrh+p%J_%+XnU-OLkHP47&^Njd4&xl|1jQBOrNR5MR-7->(+Lfy3 zR4OHq&G4E)`Yc4@nm2RH{ZBpl_x-oIrEKo@_~*;hJ;k=P?kOhSQ#NPo|EFuy{nF|^ zjlKJK{g;b6V>umRxu^?u7Im)E=8seDjlUYPgC`Ohdr0>@9ETyT zBOj#>_Nq$Na>5%>P{%9(r{!|d-Y!QjYC*N3PIt;kcc^wek9Y*S0VRj>q)Wv!3Xq*O zrcgQuvE%(ah(*W|$Y)NW{0Q9{m+~uQ%lZ4Zc=ig+rpSdjg00+L}OC$H9=D-~5~=7qw=p&K~SY-5#+`kJ)y_ z5oBwm*JWBqApY!iHvdBD49a4^GxjGHwDPHG zY6~a)T|CCNgLDpuxAGuckJgZ_M|-ArglvtvQfE`=QQe#}G8fVjn~}xTa_T!uzZ$Fe z=Kj-9-T(iiyo@wG%&rzQ(t#3h9e^g0kz8U!qsn%B;s7goJktQRRodWUuY9L1WCfzShx?h_7y5*w(jW*xH*55|mLHRYxNN>jaQ4cu%-@d;8nfBRUVb{8& zu;%vL#2CoNpMTmWIUi-@CHB>;)a%rAY8K^34z4f|vwdNq6TTnomcv^@)Th)JR3DsE z>`b=;F>Bu%$o2(4vhfVhkv_FHRSH?&hE!upueLQcBN-RV$o|yf)bZ4*PD#HM*84M3 zt$qJ|y+P~pYgER5DHGo>W#ap#OzI(rw!TdEpz2e5Q4OiakZy%CY3YQ08nUa(W888$ znnAW6r$XA#_}vrIyoKlPr0**#Wdw3q$)h0K3R<2j7ro)i%gP+5X0im*+M3B1PH9=` zQj_P*Q?eQ{EybQ^wUU2vISRK&rK9|Ds0y{UQ-^|?mX0QyZwx}J&I&Rz9J1KckR2z- zQWL0`AZ zF@8P%v*i^Y8GH}nZmp{gvlgdNZiGs&DZE3P{FaL2b8Y;_6{p^Y<*d!g_P7hN#z+lh z0Hx!g46%%iMa+)2KI*s)%0=O^zAgJgwx_gk!n2+32#h<6jGaJrg6ueSfm7l5^IJ9PalHA0<*cuK z-{bi(w+9sNGy2VM>%YI-XYh+E%F|yIlf4JeEnuwKoY3z*8JU6QY_HIMwif8Mkj3=* z`(&T7)c2TU31ml_PhBh{%b4nWHzQv%bq!NDEyb>i{y^%vxLcbMycXrI+WxMTjBHxU zU$rG8X_RN{;ma%RQyqVH^zp}>px{ZJEnVJ>RHt@^v^O#mQppjdqWNhOoFQ;8TT2f-`4L(dsF*T8LGJx&S;RGQ+ypAcm>`edK#(P zf6c@n+tb`<(#)Hdv2MAvJWq|MCOQ@FjWv(+*VuI+Ye7ggpc+zsU(H4Syq}AjB30X$ ziw=bJ*p!P7bHZ_hYC|1QwWo@YCHbfWQnloKbSBl^DHq*L-AfIlo}ngEetw174Ptt4 z4o@pVwnxpS7E+6xLRkuFTS8e)={+O8KNQOEh?#UAYtl1B87?)G^KU7aD;2+7F52mM z-+v`kQ|e%<4Rs224s|(oGj$L3F!cmAj(VM%LoKE%YTuVkT}M^aW@+cwttwT~demm> zo>WEa){Lo#Q5CIkJEnG`D(Zs^n0hr;QNP^A)O)Fl`f4aspQbjq|0XiWbZS1el-k^W zUd0?gQ|S}@_Sk{i-0e}9IT}(esMgfxZnqPeqYHHjbse?2+xJf97(fl9#!{O*4qjo7 zS=9T~7u4pCm+zS4cWTS_etXoUHg{a@!5mGfgQ#PvJk^QnN}WqxM0KaGqOPNErg~Dn zslL?x)Ie$|HJlnnJwrWDy-2-6y-6*gKBN3yja-x*@BNi+h}a3E?m5xEM<1a#JWjb1S@?{4r8HATORNg6u554$|lFGUA`0 zvyyL&>quI!Po!A;^yxNJacy||se^C*WsokHJUe4w$bK^}Ir+QIzNJ?0;yCs1*2tDy zQEs{WPV)UX7}9H;kAo>*0GNA1!vV ze6*5UTeKXmdbjs^_367!OTm+^dHfbrrak1JlgUL}BBtXs7u9sKXT~<2kDnBEK&qCP zk*<(!%gY(->C}u{wVB+Hm_7feSBr!3Zz}#igT0Bg5vlriNJ_Rm#lI&~9kQ#0T_CM3 zkli62ou$lMDz_n~SCFN052asz(2`4K3}U*Lr8166Qr|&LpS3TQg-&=!WGi3qM#QY% zDkEHd<(_WofN*5<<^UY{WDAypS>zj-G8s(y-l%(|q^|CFu zA+H@(k~<0h+B6rvgj8FjDNc9~V}*YX`3+YuzO&gulH9=~f8kC#TKt zjpBaBUVECqlV9qTT#Y5$GL+<(?|reH-R)^gl~Gx$C3O&WD0Mj1nmUHkzdT`e=wB)^ z4Wp9Z#oHo>jm|Te_e|;>>U`=Vr&7_oR+_g|^sQ-CTC@dvHy|zA0@HPj-ALU+-A3u( zXt5l3AZF$Db=uq~AnXffI!XebVbR+-pWB}2&#)Lt>wV0hYm>8cAo`5Dm7>q6n_fm+ zOp__S-(=@neJ)a!i#|iDT`@0%?27b9$dolNyDz&1n7j!3>=>|JCX2l+^68ROA{e5BjWq)$GolDkKRegB%)5x4nm zXiB-(CvB-{dn99HE?b(kIawor#KgDXx!eboeo4{BP_mXwk*ebq_tv=F_mCYK{$Oh5 z&i<(!{RLW6F&}T~mrKUMxmeEXxX3BlZb@(8xQX#%y?X_gv)Zn9Dm;o_i)&o{gz^MS_O;<{K*YYsh{dnc zQ0@3>o9UE)x35%co?){kyj?TQ-s??f*LY(I@22S+ZiR0SC2ukLIalGEO-U*D4fT2d zK8If}d8Z+i0s;ql+c= z2E1mnFJS6B7uE+l?h9j!kyqdE$wld|R!89*RsKCHk-DIcS+F(YFR{Y}L3CSUT@ZEiVq#(nlpzE!GxbfIfYKDvdiO6oWbM?K5yud+7T zs=T)PyEn9~r9qLZr)VM`X<{g>9va1Qfpfjm*QJxC6|vSB`4!R ze^Inn={Dc~7Hvy$9e9J}On(&cGdH}Wh?pJ2j-#%C?1-sf-!t9BysuGy3>AJS#@|0E z{Nn5%$YJlNR6Wb<%0428$1S}QF(<~7(exxzZGkNnnu z`g>!@@7NT^{80dJ2VHU^&LzoLb{*!!vE?`d+IIogZo5y&*fFXPDZG zI?gGOGa%bCXH(}vS{vT+hx90#kxyMJo+&!dpP5dDG;c;aL)O0YA>D!*xz;Tg%B_$+ zmyxv3w;&YXsz8z!+=U$0D&Llh>Ih}HTP|eYP?9*6MuUyMr$XWNVCMj6~+BD3;`S+2zPZ(;(~9xzxv$zs9yF2W-v#z8}i|7Y1?& z>c!jEkfk02X+Q4}&nT?#FGoz*sFXP}@)Tk>#%=xxx~p94SGpWYuLZIWv3~J#zcMwr zD3IZC3wDOA1xcSaLCp5rWJ^EcmJ7w_2*u|JCD}56zuXv&68HOfb`xgMWT z-%)a@->OxqI#fgI0O~lZ6LqN*{?ZzxXI<+xJqm>KDq?m%dWTv}RkZb!ZN41K+4lH` zS_|2>{E@L_#`6baHgb}&p}lKIBtOSY_P0=~clUeL5xCZv7HFIOzMt${8L5NiY~B7_ zeOmEeQG$BycZk0mC26_u@<0x}U5`k^pjNS-hIHbQk zLamWEIn!aDc%_{Y3(w;H5xX7B1@bs_SFG{W8&JPEHXG8fa+S)Et9>0wtF)z4v0VAq z{~E`9$!RI+;alGVvetKibbF-bTu4VmT5g22_4q0SV@Yje82kI)@avJrpOf%y)_&13 zl$IGN#p?B~&qvj-v($W4kJ^tqjOsw0OJ4fM^(|HP2H%#wsDr7_)HzORc^tCs`>azw8V}jIXEHUFnnArq zy+?gSEpf_4pF0KeJ7hFqJPh(?;UzHYlE0>{e0BPDJvI41Cd%P*FY0% zsHQ?%Ua9y|S1Jn-(|xd1qMNLgQt1QPUXjG+xmZ40&E>wQeuk`+i*L4lrc|zkD&MIk z-|B>~I!NgHJ*B(`i-h} zt1qu5)rGo|dX$<*eM+To^QDB;5mZ+yqJ~k^sAW{Dr!Q}Jsuk6hx|JG1O{Z2;Ti@=> zYeJn&-9Qberc+;0Rqybnlu@Tqw@{B$bEx&yZg=`pj-t9#4^We-6;#z;K5v%lLS08a zM2)B3qt;MWd;9VlP)AZ{Qa4jWs43K^)JCe#UB2W)s4i4QJwi>PmQhvi_NDAY9YbA6 z-AhfN7E|k~>i78anp3Ax*HI5r6R1Vh?^NABzPtmd)2N%MVbpYLF}04W+SixYggTkJ zff`CpqrRlJ=;upmMCGW9sJp4r)Ld#Uwd1|MycSd^>Sk&LHIrIJZP(wI(wJ&TT|qrW zy-a;V$$h?*QtD{xBB~!Xj{2CYbiXfUZ>l|Y4KPp>0jihE$UsKfv z`tq7nIqEX%Ug`zvQ)-)seJT4>XH)&Cm#O7c)j>Y*e$**cL_JNtNBv6eG1!;Vmb#J} zLd~GQrD_lHd5@;9q#mQ*p?;+54fT1Cr7oogP?M>Z)OL^fy!%s~savVh)I#bHs{W(C zl=jpO)C1I5>K*DIRHes!DZ5bzQJtu(sJ_%_Y8JJO+CbGA=Ic0+>P+244Wp)0YpC6Z z`%;dkE~I)=&rq|eAE{a+d?_ud4%7|Q5NaCr8C7|tFQtS!mO7u(UqNjys#oQvh^co# zHfOz;8csbyJxfiZW>D`@-%ynw_a*O2HK3Y1*%h;0hmJx_?^dMc87I5`u=c&iyfYzN zkGWJb_kN$teN3&Oesn68y`S*c5LrlnMJ|=YA$_B-R8EBKZlk}_tT@Ntrylkc-o3k9 z%j*nnfSSq0kX=n&=X6pu64EtFdIRs>U~BDrk6z`!gjBui#kGf9E{uOYv?ma6eF%R$ zIIiPoq}mmbzq_9j?V;r;B_)rH4&*IASDx_Z{yfo&=0Y`fb{9gl>7*3c`2#( zjI|&oyHgp+QjdVNukcMV>U`>E>VD|wxQ<7mKVprAft}H%jiu-xv^MU+?I&x8!7kpc4It3C^&7IQH1+wv?dverQxBi*q@Fnh8n>+sg`BB#$ zb?CS%9Ba2C);iu7210sIAr#+#`RHlH?C3L@dXM^?T0{L#Z8_fO-Ge#^(%#KShf&8+ z?Ws=GIn<@pHB>KZ0QDI43^j>*i&{)AqrRj5pthXg+q@ICC)I*FhH6ip5A}%eN%x?7 zQ4dlhsh6pF)KaIc{DZMSA?wMlU-YU=HK$rrCsAipmr)UQAN3$Ln$q)!)jOUsZI#7l zFt*SsD_=6U5wg*=)kLov)Na(CRE9c~I*!tBR$F<7cB(Lg}zEf?fJ2AE!RZ2Bp27)KY3SwVq17{59OveCX8 zvN_=fs44!+L_TWvsxSEn>O?1e;Th6jezI~tbt!ciK*)q|0@PUZ&orKBsg@sPmlgdj;nA zr=ZtL<@u?847~!`Zy1Xq9XV;)Z<>GGDN7wd9Rg`f18E1@nsMz+R}_n zb1Ie3ApHV*seB0uwqmLL3h7f)Y55bXj#%MuUdfwq9j9X-j8pxZr{z+_nj?m1S0U}c zd^CibM9p);86JyvE&|9Qc54j20}U}OT~{#`^`(AQL^8>Oiy6B z^Wr+5b2=&7_DvhvCq*@>`c!i&N1adIL_I(~LrtYVp?;vYn(6DUN9{+orOt55$hnZt zPw~HyUCH&O205kVX=r{tBK(y#zFdmf2Z$A3`@MmfT?HD3iIgz@Ax|JG4Jxjd=eH^dlOzQF3 z{{F#pklsH?%QVQ=L!T?qD|$THfS6v<5fexI35EvCM5DwUt0 zUiaw;`^_o&n?C9IFH~r1S~j{IX};-`maXUdR#k(n4|az1ER^P7OixR9#Pm)~TCRum z8Tz#JhV%|lS_VOn#dSOf>EAa<%Nvj$fzwiL9=1DD%cKdUPiJN1U`WSMnVbM=c^T=# z*yW7f%GdzLMl$vyV{bC{5o5=_hrY+zudwxh{~Sd{YxMm4XlcAg(;jXpyuHtPJ-32CWl z8&$NHNpGx0Df&c@t@+LmsM3pl$(y|#a@c)~0g&FeNXO6E*uJ2nMDH^sdq7&Az;d>S zPKNZJOo_BwV)dp9jsnT({QGlM($cmlMbC6;IT^YtUZbwib+Imnbe!U-LiK^HC;fOX zJYPQOmc#wdlWnG3_xDp8?(|Tu=29<9AftOFJFc9 zZev#7g!KDYW%BwmTdqvrp+120yHTa`=yKcNN@XOZ>yeM%h4fsD^?eA8pJxx$n19Zs3XsNPeahHM7i$o| zgRk4Xf%w0GlaC(z(zjp?^%^yo`Ukax1m$1w1*}>tmEobXb-%-l9tX?SI9=) z1=N+0_CZ>1fL@LB-VIHSrGIzs=)E-cz_0yshe5WSzUipT<)U6LHOqIGN@X}=qXuc} z7|7n1ea@*YeqUGLmd(fn#8g@7_qe?+k&)Cl7ONk><)W!O%JztDF<7L&G=#KO^`#8b zwX84uQwMUnR*;VI%5oy4_gQn%Bj4J3lyB)nC^;8RM5?v)Wv8U2Wo&6iUPtPtZBAO6 zi@yAeI>y9xZ2XJV7vj{Nzw<5Fl`8JF&2LMHQgr*4U*9+WvbF(9q z!oR5F*tm{luU-8wuUp|>vFxkMq@EFk{^0ig8M#(Xvu;gvmR6NEnj@P3;Qf;5! z+o__G|EGPr>0i{*Bd+6EmztDZaZ4}7a{3l_F1o_W);5$9f=U<=x? z_r)f8o5p#6+a%UJj@9_Sa6Jx)V~r5AHv8TvY-#&Va-0z7xNwu$Npb8pmU5?4VJUZS zlH-av$H+}$J>uA8mNL~TUC?WDH_7o}oa0O8@LRCr9$L3a-qCU1ZGR~2jpyQ6eZ;Ic z{CX6&V82ar%!_lh-6Xa!j`_U!LL&AuEwAEMU9(BvALG3DZW8+qu`+oIv5m1NIN{5O zIEU(4w^VjnhqLJ;ss>QKSO-Bmwe1Gl$NBFhY+*!Mnd{FZ&F@HzCz5tSd{+J=B)T0Eo8A> zA!EquA#dS(;Gesaled2J(WyUM3-VECs;d*eD^B@(1Gy40T{q0Tab%bkw@<$p zr0bTEF-U!AnCdmR9Nzn+mQm{=yCSIai}f15$O37sG@euIj4V-^RQ=6nrDamx3D1R7 zZ$nduYmPOLT_yYqX`kXdRKNTEV_T<;w1f0L!(60aRk6M2pVvzp{O{tgK~~C}kZy%s zG>2M9EuofEYpCCx%EW))tgPVsW>x<5<7!7puV?UeUP$+kivE6RmiIEUau<4Bdm}3u zl)D4vH-HhChn2nc*sS%L&5Wc!Zjip|4%F5E9QoLO9 zJ+}dN*bj|b8w~YPkc?-Ynv1OG?@l{bq{Fgm!-A+XNO4z$4aUVRqgU0kPBwrDy>U!J^ z*;cqami{%`i<@X{1WLA1@+@S(IE{z)Xex42G}Wb^6um_)pgyO*rGBHf*us~rzm@CN zT_7zPJA^ulItjAn&S9(@brp33G!g3&NCc(!RNcwczR(1W#6TXVMp9!aeVWgfdkHby zd!|t{A^Yn{a~OLMvcCF|u}>NMn)-qI1F|*RYD=GYS87jcJX&kZ9l+QTR7a}HR(>0u z4{4iIG6>RErDQ1e7&Q-Cfxb$~hmdaHlza|-jTqi>+1m2rjb>_hr%?8TG)E{cAiJ}3 zxJ$)boYX~-j+a2XLksZ>Q4oKROur6@J8Fp8y7i{+hklDk;!sGB2YAyPnjDYG-)h=f z13T$9R&QEf*&&Ei?VV-&Yb~=7dkgjAdm~ux?x$6Hq_Mwrn(Xl!(>}0oxJaf0=jnvigX#dFN#dwB3M#(Ap3ewS( zlC{)&Y6F$t&TlPk)gxoH1%3t>MR79cn-7VCqEbEb1Dn4>gz?LrtV+P#;j=I)(Bx)aE%|55L_)`4chizkq+i zKG}l!J1{#|lI=2@+5+2S`*=T3#`Dkf#q9yf*8i}?oT4r{3?oZrN1Z^zU^KEzZ2QMrQfa4)MotpSu^op zKWipC?q>U7Gx77LW}G+WqEnHob>yP+oNV7eeY~z^cb7Mm6Y$)K#ja(nC#9pVTfCq5 zLCiE5vg7#E&{=VLdN#0m@uIr^$e_m!T@Tx%G%xOZxl#i0rQla1^!o&?Wj;Euoh%*e#|-B9kU74FF3oCf_Yd$nenQOV<6G?RTfYlr%k9lr zE2;x^5!DkKf_gEhhO9iDb6IR4mm9~_>5$d&KDCMpLZ4b4vJtU6WWC$1zK`7iX(?s0 z6ta25ILv&l1->_MhgjiErgAl5jJ4T7})3S<7S0A=J=q@IK2 z%H%CbM{Joaq&|hTrDd|3`VsmHXF8lU_wsA>2etj)KGuLbfI6N!le&iLOO0^C7X%tv zAEf0@NZW#^(ID-iv^)msny2MS#$JYWJ<>80vfdrMuV0Um&@Gen8n&V}uV{V0Yhvq* zFOFemq`kqXPkthFUyG)(08PaRLy3-1!Yuw>Qd?+>S^jZYBKc(^)B@RwT$|f`jHBnTU!eEvWoVt5X)_ddv_nI zIn|14OXaCC@8B;s#Ce~mCQxT`xr?c*savSKsC%h_)MM0>)N|CU)GTT~wU}B)eM7CM zHc+Xo^+rbO?r-OA{6#yeC6yen5;bUHIdakSkREOE^>k|8TQ>K>UzK#R!Y%Wb%ZtBk zUByblGmxj-FXZ^E>@Jq%DBM3bw5%kbPS&GiI5fyLc^};lfP~@ zW3fm}+##^LQNN(JK$1IXA0w~LZZ_gKutT@@sW$hSz0RMf^$yi>Q#5rr%FD&l+0A2> zHMY-zmE?ZhrNi@ucl#Mn3&d`TmpdA=vwcVEVy95vgyv#7T&Y6~Vl9C_iuLvkkx$}M zRO@2ZIH;2R66po75a?Ayw@opSLo# z3w8Lx*7~fpg|tt1kPeW}9(ItI&gGoV=?*K}=$r%x_xt3qjhD6Sjhere%U zDyQP=L}wJ~_$$NqR8z|>EtZO(J<`;|FPl$C-t{OY#lPrYQEEo!VY%RS{r$t&Q7XRV zjO@_LW-`fg_&YV2XY1C&l`yUsOmAafFujJB+Sok?cRy?vq}Nuu=E-xLp|nHm?LOT3 zsKex+%nZfH@OR>l@p;!{IV&YN%&QtzpK3xKOdUxbOSPj;q0XebQ`b{>Quk5AsPWWm z)I4el^%eC!^%Ipkoa;u_q8d47E{Zq zHPo+E>IlDy|1^zExb z?MCfIHKPurj-xtL=TetbH&DH(hp8v2vD8Fr8Z`&9HTsbHocap70b3>|Yp9>7Ke^l% zt^Kb6+d{TwYEpF}+is9r$ZjXk?SnG39hH6e7L>)#QOSPj;q)wqaIVIa8;8wsFc3mpIdJWm{3zsm~ zgSwH5sN1Q#AU&?(z6JFlWaSOva!)cg*2VBQ3V7b~XUPtcKM!_@{CTiLU#jX(WM0w#S5$)tZz&ZJKgsd7<0oZoc@nvWW`u|Ca52T{jTe#V%O z{A?~C`Pm$vzjxyqPeo9E6z4gL^Bl!_j^aFz_xZ@r=I}SA+>9q5RipfDE+6^XTt4!% zxqRejbNMKl%_VcBWM-7imXeuKGF$Rn+Viem0l1xkKdVbsZu<$LtXKIcA5*&oMhhelFS} z`rNgpOumD(&1Lc%Ri&+u)qr%LDU&+Xo>Vg~*UBj+Iml)=9U<$3vmx!jT=cMu{rwwh z_=5gie~G5 z{*mMUk>mc6*U~ET0re@QN7gFx4=%TssT--Sj`Pda zfb^)6l3LItY-t>Up~e5SkW`h&hm^W~9^cxKA@p$J!wu+fix< zxuc!s2;|XmxR3OPo`3f}0Z(4ER4w>iux#x-2upId!PCOvX=e;*`1=w zCwkR|wC@AipRrRQEu|!0qXTzWU3hXOIlq#&qer3O*Msb`(=PP(gYbN@~k z-dskGbKvN{p+J`$JmD>Py=%3IAG z+JZU%bdCmihBA-_9sjz`JH+41u=&PGSWdS>K01rKoVuCnN%f}gqaLP)QO`PMe+5Yi3HJ*Bt`jA>hC4bTGTgKK?zfiwX z8>uRteZAXKNADNJPq$^|_|t98Q}Pg`?W+-7(6y56gL?=yf+`mvut?SL!b-9$?vd9B zhCuhk8gWr2S%z~+jiBabmE`Fas(H|kD^)-JAI9!KpwDstANY0Mzr35aWecGXp);Wo zLS_hIhz&V1LnAaon-GRZCWOs0AxFp<H2`B(WS}$Pvau7{WMlI((n6*Xz3P>$d*+ z`s3_%9=)#XbzRr}<9)yH_b)`da+EvYQQaKPLG(69k0JV=qYn`M%+a5SMmXAG0nREM z%|zsUN&Q`nXd{m9MwHCaYlt@C=m$ibadgE6j=GwR5y}B_3xu zYCtsgE2`0nXm^e#Ug)ToIocc1YaE@5sF$N_5xvdPV~F18=mSI_ar7smH5~15k)yug zXeOd>IJy|o4;{lL+yh}LuT9irbj+VnEam!tgM)Kv5#97H^*4m*VUAL&vFC7f7NW*=^w*ma-NVt-i2ljZr-&Zr zXro1rYU5~EL@PKt0nxJ@U5V&LjvheN#Ze!k*E#wf(Z4v#ybA9x=ICfd{Tx*x`k148 z5q-|lFrs6>qfw<@jn|$y%11PZqcTKuIa-3~OpZDbRdcja4UXUMsciwG!-pw)714|z zDLVTaT+wn=wiw47Uc9{`YT0u)Zwb{cZyy{RKU@jH#uqm=jh2gakHa7<7fm? z@&CyFaSQfhjcXc{Q5i=U zBRZF(dk`()XceN1Ir;_BLXNg+a?~P@4o9?@qYDt-z|mcZmT>eMqFXuo5z!qSZFLWx zgK=~SqGpcHNAw^^w-qsjN-agd|^5Ut_pEJR;$v=q@d96g8V2adi#w4S4h&3IhkXdgs>aCAB%H=VZN zjffH)J&kBQN1q{@#L>q0<8hFqJrSjIbSk24Il2zf6po%mv@=H^Bg)}uqkrO)NF42k zXc|W+Av%DgYY-K1^cbSUIrIswti94$h08b=Q!I*X$pTO4)Z zHZ-HR9>i;b+fp>{VMnF?4Uu}e71udC(3xxeli2H~(O(ZlG?$}!h^jcsYIoGH9L+-X zUyha|O5K-Qyp3pYj($Tlouh46pe{#;BRZ6$`G}6>=ypW2IC=@u@f>}PXf{WiJcT`s zqkRzF!O>hqcXMBlkh@1QYi^a<|1lYH8YIkSs)js$^NNo`Phv)Enu9 z>;c(GbsBjcG98jogGTxw2SbvSw;ldb%M<;OBM^;K87zy_K8MU?$rVZb2057p|AYU! z{KTc9)NxKttW^`sqL{R^bSc{^dwc4~&TE`1V2QUX9+Oi!Ml$|J{lu%&|5vKpue%JN zUqdub<#Ntqbq}PLWll_PWN9$cYH~JK{VZRqXCb&5q&8N=M!F%lvEYC3pRJXwvZs*P z@g%E!7MWKQ{+6ujSeC2r(a!^r@v5JtJLz}GBajJr2QdCo-APFcLs2+pNYWxn6;a_# zC#XUeTWf+UW06`b(SD+8msWZf`gs|WqDD68Cq*UGuBL21DXNu4`gtFJ+eD49$lfvl znWR#7q*fxIBbuycuyiNgfLgd9Qk$tcM(%>((g#vuq!scTON~f0ug%mbi;M>ko@iCN z6H=9oXLHErs*OdeQ4FvwP>BURH;V%%Vj)Usw|PH`j)Dg z#jeJds+mQq?}VPWQo}4#JqMDmvgzPd-Fi>-jFT6R=PDxyKyYe+tQ3iAZLQL#QY%|) zYt_agwN6B)H)TCp;GbOK3w^EknL0nOLx+Rs8t1-qAHDC4Y`7)*2qne8kR

oSOSO?>AULHXr(PtgzPsvTv1h;CRdFu$ zY|k6$nZ?d@cU8+G%MIL&=Uwd_CB)N~`SL1-VFre+y=4{{J%O;e>J(Rik*HWoXc zX{wh+#)BL6YG0MMH%gf^NfBha%46x)|3l9wLH1J%MWUYfQ%hKE&-y1?I!LAOLp_UBK@L{= zEZs?2i*SrX4pBu$_Jmx^QYI2rKZIX5h@TSgb1Mk@^R6a3PBvzNCnqqmED&)2SaB z4=#b!k!mGNcTz7}(J@%4`i%5Lo<~lh8Wf3Y6{@`bs2^LaP?d`CwL}yCHdA%7NUhh= z&n%U^Kedu|ehYGp%8AJUY5aIZz}6Li@(4DpMq?eyS>9k?J?2pHo#Wi`1Hl4oXzx2CYg|n`yNVdcGB{N>utm zRBO394AKaht4dhDjB1@m3Ha}ojgCdmeaH!=%RdqF5ae`8!S!J&gl18yD!8AkRi()( zRW(MgHaTag1{QnvJHzzT?cau+HuQXkYW@Gn>ExVlbx+i4HA|NY$8&~S$094Xl6%fL zn97N~0y$F^v&b602`N(@F*YJGR#Ij6% zi=My02+vnpIGp3x;T5WoMP@%0K(LZg0U4NpVP0@V|fa!930 zok2O$a}%NqRc%ZzK+Z*~MI_O*SXSd=)oJ9xNcxRD3Aq%lE>=3CIurD`RMjPQ2IWvZV=S~WwippzT*oHYMhIZG^3sYWh^JdT`2 zD$B?%==k)I;zF`{eb zae0v%5YZDL^mvLf7xKKK;~hCHOZm+IJdZhX6y@0KmKv4EVppt26|vYAyH+h^>DD)) z*1PEEdR1@aF314n2GwfhQOFmNI@KGK?;tm-K_kzZoST$)G>=)6{ED2LRl1SaOwJND zJtox8QdMN6-{jn)Dq})9%T%3_uS`z8YK;ly+^V{a{DPc6A=w zkOq}XCuKb5QqC5T+f_EpQk4SP4swUekI7DuJ5{Y|wLNn7fHbPwS=5hxtZY>6BGF^z z-75DO%8{e;Ahc>yB`mVN4u{;M8e>unxnH%%q!iMkdRe-Y4mH&uQfrJH134Et52^J= zWOpNX0ZhF zm?~z$K89KikT%sQ64h!`Z7kCBgPhYFlQziXYKTQ@Jq>w6IKM?s!$~A z`AJp6Vvma_)k+rW=M8SvACuLP6)N+1JBucSPpOWW(7E?%)gP0O(5eG3ecM)RA#UbruvJjT_jqu7nLfeo^7ocRXU5*`USN*RT)dS{uBL-LS9mB zEKAk+8}R9zfMiH=qMlz?qb#=PmsQ${b`}%R>J?SW(yezuKbu0jREtQ|PnTNBV*BY* z{jq+wLaSF*=4|S@Tj!yl?I7K%OeE^3TPZTmXYwvyjPVPS%7)b zqgAh}GO{?5IwQA14&r{AM56KZs!vTYseU>7c}ESgU<=ma**D}}m3=C; z>edHAZeXc0ax{dVWxuPsM50>ns^k)CWzWX%syvo%{dcsw4gI{YN@CIk`9O6VnT?!Q z$cJjk2%YCwK>n?2=PLXs>q8F$|5kl0c3%Hh>sVx7&!N>vD(^Jg>Sf4)DrV`{^m}-3 zKt5KDBGD{9R&B9X?{m&-7F+96m3}()EVb4kXN}5>$v2SCRW-}v#LcMnBV?_rH}X#i zUE8cxEiCr@vsR77`f)a*oEfEd7EK5TRdq~~kn@FV7D=o{&-9%7E7f6S7%~|-U#VUe zTk9(|!Xoq9hI3NSu(hT@hEy(#%ycT`YgNM1t+&1r_gWy|sAiF94Zl$xv3~aDoc@>` z2>Dix#Dr?CQ&nf$>NKA3R98$6gM6uA#~O4=uRVtM6%k*iI5Mt)sT@3qkcw>(47I=pBL@3Z#qM>E&OJ}&wG25QbI-Zwb1PnrQHZNcM51|lx>7`qzggzx>0u+=K->f# z3-$C0?nmtgp?P__&d7n0tT9pqN#a)7^QF~!Q9m_CE`!j#JWb!0iSv)TD#}S)z`|or z<$g+8>=qoSD=wfM*@8PEXJcI#lU&Gny_&^t!3lcENVo+j=uso#7M!3{D!F>%A&h5V z^fN(c8VR?~1f6Fj+&U9PnGlTTIl$M#60| zQBS{!`%!B!!ox7aiMrNExXu&x8YAI4Pt+L~ORI35QH#Z1RZi6HEcQOhMBOtcr=p7b ziRaX?$Ro&6Jf8NLG$9*rL%4)m$@V${Ig@mHOy)vTbt#M8UYlxqEff1j;^`%_*KMln zjL@&x(6O_rZep?Pys4&F9K%O6TIWr5)}_)T24g|;7> zMY_%tiTe3JT_~ce(eu?9&;M!qmb!56*Fm<{4KZoL-?r7mEHba<$k|TkUCyndp10S9 zM(DS2=y=~=ml$~;LPzfQx{}3?d3)U_Inmi>d!3FO8ngw&xo7GeBVo^(x zQ??~I4?DP&LG z#yNJM-%EEH3C~e`X}WHvH4M*Dd+BvX!ddL46&@!jC!EDzI+ew4oxOA`%W_4J4qu}B zUOM|~ZWV2>eRQ!%bViz{%SECy(lk9}Bs?Qc)44U=kNOE~NN1#Jy4uLNW%39zO|KT= zS|gk@%p%*1?qlz()2^X@WV`=~oawrhr8{XS^b;iEbs1eH5^bIRbYra5=A6^RBHOD8 zJ?@XMU!|T!wnokYIx8kwkOOt0NTL|Ec846SON`8g&~wj&btQ{k)q{0Yte=CqRbNb~ z`k}h&TBIj|2 zV#jlYE|nZ!=lPt|5R)dfKT5A>k?~xCoTD|}8wy8Q3z?;hS?r#9j4n6g*W*qYa*ol} zMkYe&EOCskH?k9iW^s&eVX-4TMh~$_^*fU&$GhHEzaMg(u40kx^%SH?*T>{}$nm;O zBvFo9U68-)E+dN}Z?N>U*y?}R2|S|<_k_B5jiK}>+h(Q$bTUx z>lrL|eNNHzi{Z3&UO;tc9Il3Sg^@SSYMi2LjD#z8if%A6h@1qsYGtuwK1FBa>NXtn zHk`9CCQbO;T;0ziBg{t5X*vVPIgKYg`<<@os+1(}R-BEHbGn{kBplD_dXABB3!bhk zSnPOC*KLx+``B^Z&l(nc?mbIawuoIO$4^hhFcVr_+oq zgPe_4^K`b6CP)QKzL7^E^t@o6E@H8J%RF5XlUlSoTi3O7r{$G>o1_aWzeog0%!AoFzx%i_d(jF4VgTcCT5g!}3Oz23-wk<*S=3v@2d zp0ssRm&>!-1$u^&DUsB&*fm_Bna~VFw zW#xOw<$4Co;>2yJMQ4&L^c*AiL+Fm;6}p1OR=+|w#`^gM{am5fNh=;t6N+4^GteHh zV4>@=YF!|b_z?fn_1IOq*vMD-m$uhcx}3$6I~Q!XIn&FpC_6qZrRM zI{7wgB@%3m-gO>JchY9~m#Ww5LL=MZU#ecKOGKh|uGMucb{4g|jl~{u*XuzRsWl$8 zZon6e+v=M`Zq(T<-APn|s^6sZjhqjm>Nn{kk*NAjx|&6*Z;gI#(rq!xf-KR4F=;~C zWxDEiTYXRD)a&|~8~|Ca2UzSm>NY)WO`FfbpCOxl30W39H|w z>sV~{yL3maAA0<{OVejR!~KxXNdM3yF`=`~-8!|Aa%6-HP^(GTuq;meit2QRyhk?~ z3C}I}=zbPk{T@9mIXsI?(9bC+Pf4S2FF| zyN6mWPK4KE?K;iKZWuFNkG1P;7CYv4UBx2n^9Fiu*Uc<;&s?FC@8zC(d%caEr*vja z`XNv287$pNGf|74`97oP7&$4D3X$l@eMa}PNcGRr&oeshK3nT+$g{eZWf4Cw7=^s3 zdzvW+uh63B3CVaxL+9Vm!Xs=#*rjLulf)jmuj)BQzC$Z|1bJ0g7zv-Pzp87DgpV?> z>V~i%9QV?y)yT$?bh6l0eO0$TK-KNNi&ynJ7MW=p#{8$y!a?gtH*h{NcBbP=wBO+X#&H%6J)Q9YN=nT-K z^I}3r)9bp3MP{)LX7PsZlAP!auu88n5}pB8>C}g*XS+VDbT*6hvorcxr5Ccuv9mj* zSFeuA49Gh=uhovQ31Pp^d4wfeu@7~Dk)JWsQ_$)|U2Fs|Eb|upP?sAC?|FWxtBs^1 zhmNKXb-j@s2%YCY)GbDij`~^2V(0atE`5~7Bl9|st1o1cdC?kvq&s6$g`5GM{g`ca z1>|GBgk^E!ebl1&|9ql*jnL734RSuw`EAt7R{um7u}CdCPCwBVEcRIbRJXCn2piDP z8a*KWB>jO}bmV@fhmCB4M}WJL^O^P@|7)$!^b8iMwSseMSZu8?blwwoUaunOOI^y+ zopbx*>{cD|SgsKmt)z>;pMBiwtf2~VcWbV#*%2^nbagc9x zGmBk~Z*|TJyBeDyXPqvL$ySi>brnmuegd_&gZ!WyM53Agpxan%&p+tFSU)?W)v(Ta zifYLSb09zJ!kEx?=FhrtKV576q8mh_>c8kN7F+!nJ<1~Myf)g`7GV~JJdP>GOBAtqMk=}1B>l>RI6v~n9I=We>$5**6@7DAG(~SJBhA?E{ABR z+DHcEYLZ$w@O(2I)krBqv)W8c&i_#bU>k&d2C^W2f542N21rH$u;?)^bjZ zk+sO7XImRPD~c1KRCv(5;;CQjRQQ>W!c8ne9GzAth%byl;;-ZB$^+rpvmp^NWhTR2`PiEPtD z(P~R)7K^kx3bK_`!P2c)p*roo=}x;yw1(+U4~xCFNq5R$Quxol=92DIvq-Jk=sDeK zWwHC%|2ZiyQ!A-H7dcxyxiKk&Y~vKiWC3JbXCX^>5`BVZA!K`JiIMC7AD0%BK2!5Ir;VjM={HkriqmT( zJc~|ohDD-UQ=E)0s%2MWiqp>`)$c^D9USjf%8}~#Lb9A9mhPltJY%5aYZs@?NLeHc zjnH!uI#PCV=vUh4oN#rN(`@7>2tC5?;&d3H=PS~xS0ozqF3yZ@>c_svV;84VB)aO} z%^6{lSv-$1@9t#2Ce?pI&s~r`oIE3LQz(TZQLR0k4i@RBk6U>?T%Bvt-S}Lmnnl*< z1LW-KG{%IkVE1x5V)6-c_ICPN?EB2~9Pf1*VYt2WoHUVWJb6wTi``y%P7{laa4mY? z$606kIUDoh&x1JX4enWA2>Av%)0{$)sOM=;6^re8nnU0D9`1)fqSe06XiP>R)19b4HDXk8#I2DSbSP zXgtR`wJdg9Am?p6o<-=V$eF_;wBX@HD5HWw|;6wVuNWPj}X^*vHCJ$9s>e z$EEyz68q>`>Qu8x&olA2Qm39J-m3mXYPDR^r=CAVtx~65B>F`28BU+cq0dTxj+`?b z@88lY{2cU|PNtFYv(jfd1xD!exnHAInNt#zpCM;EEiAHieutdnBtD{^MVb)JcbY^J zmp04FFK{}HR7cWhWN{=zEcRLL0w-^PdX{}`LJE#vrzj?AkV>bK#qOCGI_p?$KNmS^ zA5%YeRWEX~S?sD_<_uj$^VpU$%-8US?E-=*jZFNY7OTk-oW}SL%7IEH4?7sA}8BOxT=es0wdw7 zE^_9u*wt9%G_lC49*63SoRu*-8FIDbeWviAjIb0^vNV(oAW06^0hVfkQbgJ`GMgi}cfu zei|I_8|ueyi`$(V7FmtwkaLIA9uwLYcRGo0xw`ruwO)ZVI>juuR-;qSBDLP&oRuuL z)?Lo@b=(hMF}{tQe>mkap;~u4og!*n3(lgDCMV@PYGrFRIhia{>kH1QWU;mGaT4F# zTI-N=uagmzUm(p+sYqg9)S~CP4>(mu4u{Y^y$75nMoxmzwd4v_TGKsb#U%+nlVQZS^wFsbaC!A9uXcoz`440Br)(HRtxfsQ)^@xLVLn9P7{kA&ofRhi`06CTc!VpdbYKm zbp}}E`07N?b58Pztxns0rBfoJvL3=ce&jsww6WM)&pSOVQfoEmr2Y2SS}!=wEK=(u zB0oCTq6@v@W3VynOGl(9(l|8Y(Si=F8!PQice zylA_3Idfv-O~NZIPMt_%sj2mv(`4j6$OPoP=Crfe>aRJ8QR-Q$Z^Jn=SY)Pjo!R45 z#e|+|zV0-|WC~in;q-_k-a{>V4zkKwFQUGJ)S|{JC*yxq%T{0I%wUn~Q_;^Vr-8-J zz1K>~)vyMfo=c4-C&h$U2maYDd z)5apz=`rP9XT3;b$A{(7>OCi+Fk!soN9gG%o0h|n_3?_rAAsztq+|l7F+8>r%$cpE>0$ zGQxSB)4*a!__;GDup_KM&RVBFCRakfbkgx%bC`wNq?PWv;R@aUPM#SlU?Z2!D2x@f~#G2-k2<8H?WrC*wY&Q_mu`n((*(IBhZc9O)wt{e~E} za#GqOa?SRev&P6S5c+nM-<dseWF{#BCC2h`kCmqvDht`;+Aj9J@a{$s&C@f#Dv}{H_2^` z35_S!ZI8(;$Y$<3k?2uo3l|?l_{*5LaMMJhF>m2!v)D0j;kL8bYppHZJ{Fn99Msyv z&7d#3GJ9PUqAlH(F`+SUk;RTM z!yRIg@tlsHGu%9U17&ovw^HF_!S-$$i>qWTMV#pMizMYZwpRm>xHy0n=h#&7$+-er7btAXxW3hY7 z4sIcRp_p0udgNre^9Z$A9hsDl4+ihX7dqTFG zl0mKPRd=?V$r8_L9+T6-BJ*0w)dyMZyr#PK+uC{2oq=84P8Rt@#xhjh)mi5Uw z&cLqj2+LBH)P~1*^t`K^vK{qfXOZI;ut@cPAt%SJV6oMAb30k&obVoUc6WzF68oTM zs-Ej6=tU-6M;!%OfiTxiXR)<%-5D%)HFDjwOloCUEZ5Cuk?{DQU2Ima3*fH<#=I=n&WnNQ|bAVgU(yjM?Lf$!(@75SO zB$7sv=rK3n?TPg>75(J9X<5{>t#zPV#Uk5_&Nc_Rog&fMufSbxWm7G?sx#e&sdiqsBWIS|!_u9U^Q63jaGX0}bh&Y7|6U#l0nJuEV>mymP3yN<>7bAnrt!#zjiIl(O!(aTYN6lif-qpF`-=Iw!kLEK+@x`x$1jTjvzFWDh%LcT>E= z;x@2!C+*!X$Jc3Yn~?$todHgBdyLGCWQ|C)Z=B|)dF~n( z8Q~PPn&;;1P5s#Mob9IP*`B8&=Nz{%CV7za+=VRNNjI&K@yvIZ7`X#NW1jCe8+jZ; zubRzwJB+*pp*t1x-CmJs4d=Tx`%rZm;lZ0y&T1Ar!UgVE1s@zs1;SpEmc8cihkaIHnsdAI|<5s#6Qp!>)lJqEq-nCfeR-=TZof#P z142jcmF@_O-8xsgnFY4iC8%|!Tf!o>=<2=Nt!A;c7P)Pb6VcldX%Yk8)LE*t*&#|u-I>PyTM&AIqF3`>d|BF4Q}$`RLj1?dxM+BVqf8{bMuXa zukhBnJ_xsS#61S8^ zdTzp4m%7a?cI({Yc1TX*JdB6l1$T?vYvfu8y?gc+cMXedce>+oi@Tm>sk#+8524mA zZpM*R-R|@CZf2p3C;SfWdbhv`z3#aOvTt>ZjfAghE_W9i312(D&21EkUK?$2J6P;^ z8r)tMTfMdna>~Y%QCLd#0>}kxR!Oe=vOOQL|?;3yVDp?sij; zrG6HxNu7ANIC7fYERn?DBAIS-_JQ;wy~&+ra%M(SYI4qm(7Q*P+$xike@`fNCg%d= z(0zZpsT z@m!sA=sQ0jbn|19f!2z|R3y)WevH~H_>vmMVP zZZ?ZOnjUe7MG`xsA39PVb-fd))#AinkSc_ax@krZgwPeyqi!~f?fFr+lf~}6kGeI* z)Q{a)A9Wj8WEKZu7LU5^F)4(!x!#G?N=A4bYPZ>mX0LB`i{X3FK*a35%`%j5{DXiBnMP4&*%R4jY*d zX=3qCqMmK_XWb$esr3Zs)W+l)$a8Kdi&Up;n9w_UUT_n0?E26n+KX(fw+&QX1C zn@Cdltpa^+zesdt)#s*^P%Y^v9sTsV*)f>{dB!(!+4wVQf| z%;JzP8S^)8mXTt}4QTa^JDtUj@Ef;|MaFX*=d{G+9>_X(MEc=%rhV)?H|0#b&MlDd z-Fy~1o?*9IauVUE0Dg4qjnrT~3$O}5x-BerJU_bYS!6tqqvs#pl(X!LJqP*OEn$)M zp?AHmcdKIZGID-(SF+gg{N|>X$@+wk@4vfQMjoK?;PL%;ce;oQAI*Pvi%ibqPTB6i zyJakP%)h%`lEdq>8r6SyM`O~2nf~c^%(Juj3OUMK9g`m+j+c41jL>;i&JwPdXJkAH za$K*_NIHb}OxG(hvU4PrMy5e%&vd<77CUCwOF74m$4jG}?3he|_})SmS?5h5f!D@j zS2f97SZ>CQJAw2FJI-5TT zIIoFC#XJ(`Nc&~xQuEqp!h($(7-_$qJORkXdtgVx?-zHv$k?@=PHt}*ef65(;WmABeR{ylP>ZsiS`R^f5Fm8UMC>UM-%d3h`{!V2!WhDFA6F(lpVXR%vw z8?UmG`mvuN&hToDgr8K(@EVPT&(SixHY4L-lTVvwcwH=ZJQ-frh19c*rv}wCydoA` zeOs@QMMg-kv2N#eibSt+W_qiQgx}MZ=?$^iTA5znMLY}M?l+)TrdJu0CX8bTuU{m3 zr*4)vY$QBVvb@B_vKm`sUUZi)%gbi5wX(cw7Ma&_)XMUDS?s)a^m6FbV6KGkLe5TJ zg-A57sooMJJEK-F(x-ZDM#9g8PW6UZZ1t&L>Lt{(tu@svWsxzABFSZgSIFp zH}>?}V?tYbFR!2F>gYJl^9nBG>Pht7BXrfYk5_D@6eAQVH$uNuMbDD<@v23ltGIo< zE*85-?c)uw*joE~-a@J+^Lh!hnC{JDS)8~Owdf46pI63WS7Se~KGv!St@iWQu-I*} zzn614^(@u-8?L$QqRt1;K>GD3G# zX|0?2tR)hxDFskb`T53NtBrxsJscHcPDo5dpQT#bIt@)}tdCvHK{ zG}AJ#T_n2STjuq$*ji=Y2#cLpnU{GJ)w0(%WnLbO)Y?3qdM=8|wve;EY8E+CvLNSp z4Kdjba<13MVrNm|Ro+asx|9Cwla-(E)f(CS?NAy;^bQa@+syY?njHGPr^u+0@DX;t zm$HO=j?Q)Sy-F6D#eNvie6Ni~#!Pn@7I=LzDL~Ez-YAP5^M&55rPTA{#0eM=t@A}* zrAV~S7kTw8cAYQs*0D(SBhm9kUfwO-5AQ#8$LwOSJSN8?=VGruCQZn>)SJFcs)z3& zz08|svOG_YGipNSwEa%#QxF=;|ho!8MIGYz-Jjb5*ja9iBy ztub=TyYgstqqpA3J&`1Cr+(}RZ}f&(?AE!_%e{kZ@!mpL<~MqCVsalwc(Yd%6B^+y z-hfErE7YQ^f@R*Yksl!okh9G5?vz>l0ikcRS>~m&*zqj$Dp+L29z(5VUZb?)@jL~o z_Xb$(k#dLE*(g2J`#`D?-s!D25`N##o!*dcXeJH3>eW6X0OLc`0X*x-hh$t+hdx&VHP`!X0M@%#v`-%A6M^U zk$siMe80CYCUo!gpI+WQcBbC{;T;lQb4-#U4|*$OvMJNrm1W+ z^_W)04^q$ZRuwFE#a{AiSmL$3hc;}L&Ju5x!xC@RKBiUgm{x1Xv>JSP!&;*(@meXZ zloPMDge5+&7M6Icm19~>e`Ld2MJ(}FWi0Vp<&SRIs)i-rs(~fmD($fiTjj9CTNSXx zTg__3960g<560eojzG16;mUycomUye4F|F2&X|;Y#tFjdv)~aTS*Q#fU*GhhB!&aFr z@m6^(@m6hPTJ?-+H87@C{?i-QDrSk-Drbq;8XVJVbWE$14(d7Hs)i+gd^NJfYqgDO zmG#VqBg|)sw<=whyyBG@se;@J>GBq`EK)Z??t;AP&FP|k?3LAPUImLC&uiW&i&Xz7 zTD|5KzDliR<(m-ocr7e49=eDBy4Ncb{o2kdZ;gohC#pY!epY!SCMUeBzsgJQ{_A*F zd3h|-^OM}FBqmh7*K3Ih-Nky-Tf-t_eip6X@-klI6-#uZI$iVkdAUaDP9R;6^?5T` z>}vFR^(=NZ`n*ADr3TRt-K*^LQhK;&mX}cLZEsdgXgu$FwMNdm5v{O3?|F?P(evE* zyv~@=_e{R$4aJ1MDgAvf<#n#bt?0Gv54=1Udo|ea%`g&P>3!%`i$qs?176n~)Q`Q= z8}J5=gjaeWdnv0VC%n@8#LG1jUg>@66^TSwdTYFjSgY5u8f(0jEV2dZ3iflakHsFj zpL>HW_89!!E9#}{cI7|!%30#As#)T#hR3u@yh;7UTcxwaTh+0|Yc-E))iI`3*1t9! zVLnT|RuN0QR@azT17lhZk7-r%)`qpJSmL$nSmL!t$FxfA+i*3qSmLc3SmLYEHl|hA zm{z%OZ#cq2miP!uSmL$%#8Bhyv#mwWmtM+; z+$u5LFZUC^@-mH#Mv`Y_qYuNJLKb_j`^xKQk)FRn&tG{N|E8X8^&zi{MMg-k6MgM9 zibU_7`_^j{QG20QE!uzUb+Oo5-+Ch~QtMaL`qs<;=&!Zbc{u|-FFx1(4>{j?l_Jr* zP=4}ijhu;EDO=+=%e+P-mq6$||C85d!btcnvcGyYEVkCKULT9p+8_P= z>Xm*vvhly=T@BjrGZL<|_6J$)+_gXSxt%FJUTA-m zWvQZXSGt62m48P$OVvEc)ezrb{XNNYbv5KhNRprNgOyt#22^jzCXZXkDb5y`Rl2c^qfG>6u%-SX^@@#CXqxdX7M-3RKMLwcxQX6-(#c; zIrP+dsy|@l-w=8~?Noo5#g1^QU-%1Ew~w$>{azOPykM%ohDBzv8&@x;oyLrr-W|G& z-xU*DpIv?LKb(`eeL(iH96!UzLlF9;Nsgaya(4GCMH2Lhr=uWy`n5(1Aaq}JPru1X_=%@I{SFpeeNTUwMXI03{p9~f zwQTjh{DmyC1?f6`Z@(cXbk&{buM|nRAIoFGG{4WtWC*?bKg}OxvDK&fIltRlbnHy? z3s~&-n&#KD$OzBG2+<*n2SpNhnK9@4 zBO+=Aq#8N-e)1^wY{#7MSFp%IeDLMH2oevbP-U7aQ3O zLi@(S{z4c4CF@Bqo{gFdsKF04dG800_ z;4yx`5&C`!$yvu@$9#;x&aoq;{qPuHxg>T!JjQQlk$J7+5h~BNYC`t0ej$s@>mB4A z=U0d%Hd}-0NI%}MF|q@M-hX(!-@szWbG+YWFl(V#jm5pXO6_8P5P}9q%{C zWG&?H{z?`Z&v%ewe<&vFAt(B20rj((-v>*_>1;on#g1pTpU)z-{)<+#{UtGRGVm!; zzm>)Abtn6YjkssNs!T@CDSoy{;<7bzZByds8@Vx(A{JY{#II(N>RX|o62DbianIX9 z=K8ByZ1qyVAR+VWM9;e-=M2BtNchgZGyHNR;X7>4@T*0lci5icH?Y|8oZ=aeiADnYmu|aPdD-=gwC0Z{CpNW(?$MjBjHRJ z`J*f{(;v8>v`N&n$ZwFV{c0AwKiBx)WIGG`7VB&LteDW_;9|c>MD6mqJnCKRSBWI{ zfY1o9^&4622(R@=jf5k-)-Ox7N0_KYt<8{ggP$d$ zY9Q$>`9|)9Y|m0`T7_qc8~k!3bPUq5bAw-PT7~cLy}@rVIdpW>qxlVfo00JI1vmIT zM(Dlq^sVDJ_-l;Nd*ek$SnO)t;OA^cvyg4E3y-jx#m=EViGU z{b9*T^kb%U0d=$QrE#moU?gcQQtJ@(bF*I%lS0T6zeHN`KL2;fEq-lGPKGS=n_27# z>-}MtZarx&t{f)eF1eqw1y#2ryw%S#5^ncf{U#O}&wTWJt3Mo*D#&s_u_e!f$3xdP z4Sq3;y!Y}dc_Z!KFEQK`s>043H(hnV#clone z7O8`g(}0|R_)Rgn8`9*b(ifbmMe1nev_S6l+gYwwCqU@Pz0XhkKgzM68oSTWWwDsXemQ_=IIsCB=;+Q|73`n>Q1e(Kg#YpGfUX-7_rpS=x< zeEO^t@}S?!Vy`Y9@_SfhkD^t5$RA*lZP9~P5BnoAc?a@{KO=+Z9-R*#^-Ec#pAV7q zm|r8J?!}#OxZe^J`V8F@e$NK2p7g!#c*UZ-5KsCGS!C|(Fy<%yhM4>cS>X?|$O!3v-BW&I z`@gP6hhM_7I1#?L@EN~SM4dk<`^GbVEsI@^XZ)3t!>bx>hwtI^3p4F%(AIg*UlNmK zzBCWPZs~7x&m`sIq`gJV!=zhshOyPcb zgt^Fh+0PM4Z1x474?$k_3ykDI4r3`cLf<{RHiL4?S?ma3^+%0_d%~-J^9~O7ghgsP z`Z&{{CP~?mYS}UO`8h_yG57iHEOyL&e)3Lsgco3htNpB)Tn>5PuV9fe*FZk- zTUhMM|JzUBnfk#y;hW_s_{h&SQXNU5k??a9ANi#$cFZ67jV!WaOHu11zau7hLO%A> zvZ{)ykrA|t#PIiLE&F?k5G#`mUDE6Jg6r~J%s6H&Kfo!gM}x!-H#e#q01wf;II zk3m+lB=5rgBpzHWTW77G$zo@**3Xk1-Vf=MfNT9ZF?k974EohEq0fMS={LtDK+ce# zzbn;})#!nI<1fjv@)qP1WAY!!?|vnVY%je%et*bsj0xR2`Jdm(V)ukU{N%l;=f&zGRHr*9fBM-h zw)&rbfsydI_|tD^vHkq%uiKmZ;VqazbrodhS)uW`!E_dx#ikH1D2~ZCkRYg$R*43T zhn{6`6f_vQ2SSe*8wH(49*Ja-#g2KSpnM;yF12<>&l?53EV4dy21o>1(FS18O1E< zJ9#z<8jVc)O3tgB1Z_sPh0H>$O@b~KJJU^q+Ua(kn=qbDf}#CngtwZ0CIzEL9)!@C zCj}|{bB=l%G6y|R3i?@W&y#|@11LwOX*cNF)g^~Y2=vqB3s9~|=NelW}WIPMeb6T)ICW|3k1_cM&>Ni5R z3W^URu_N3zn0_$lByJv(XE)mgvy40#NvV;SBB?U+ZX|U^eu5mh9qz^lO-2%5%VXts zK|70`#dblDk??5RE*L1_5k`-U+XcCY*fG;}!jxbJi@nm@AxJ)ya%44L#7uVx3Rz_D zrK_f_poB%{PT#JxV^Gav&ulvdL$Q9k(a%mn-eJ_U^wWfB=b$$xZz3l<7>vn#kX?eb z88VB1eS^mwNKR19vN-WEgzjeS7L*(LIg)A?yFR-G>sXemL%+rO8~yASG#qZn^AlwE zpgktPL2`q>nCMJ=_AMA;vD-Z_C_cij*v81&C#YfRPAWpJNswtlgNQx@vRyzjC=$Kj zcv_Hhr0r*WZdDSKogn)L3t40hb0PZ$oh)`d2L^Krd0vV4Q0oBX928U-SqE8!KOPj+ z7zy7Weo)Y0#91dt%0WRZi(SKmg0!QkXItx_pq53(Gar9EIB1Ru{Z2$d(8D5o)R7p^ zp}~5|Nt}gRG@iqP#L?9A;>1D-ZPUYobQW9vu%JwG_P10kEawKu@j>cwwjX*F zJ|W1C39V0YFpI^m&xygX+E3ANV}19f}Gh@eJMYy{RlbbK?RG9c`fAJpe`og zLCz04SY%(NPw-U)YhpsrsTTx^lc;CAs+B<*i+xUgVX#m{&0Z~A=fa@T(9D8gU;SS8=SzYPBbkx(ibTiz zCBZ0*)Ef6Uywf6>ak8z|gc)8Ml(KZ|V)U~KaxM$nSfqLyOJ7X3fh-KxNvo*V}MS7-wt_*5fy7k$pz6+!}SS=FuTpbLtNY8t6j(4i9bpYh5 zAcw_%4*Ke#u7q;r8w}_gvL_g8CzQ6n#) zAG(`b6Qs*)M%8Z07e_gQ9NVv||1xt*C>wI0%Y$UvoeO=IDB)pG(UC=8M z-D$rr$UK9qt2;lJ^VoGkp-3W}>2*N~i=F9pK_!dKg6=pHZU{2Yq!G%hE?~)Hk>i4XC;i4?VNB?E z(r*feVyzaU)y+ZSSu)dg=$RhTmISp%)M22&X&2;uM*Q8n1&$T$ce~#206C}IWg&k+z}KS zIn(6a8I;6?avFn$M(DSUspq?bB}V2`s|?(Y51Nf!2YC&x?hcC2;qmY>NVB**s1;H4 zOH*%hPNR{%Zp5>V@wkT{^u=T~a_$Y*8wuxrUyvx5nTB(34$_U#+&@CA`-2=KGx<^PID_ z*X#Fs`MvMwe9k$a=RD{8JkR$}(5ea6Mo0VxO?HL3zZl=I$-W?+@uQj?46-qPa2X#V z<~bVVwfI@ra*;>y_4srl^C1S`i+m$~;dK-f&i#$}A}-R zzfg!g2j7d&6C&sSeteA(c~*W9A9p?WrS88zh@VBGcAF34(@FSld>T~sgZNxc&I9={ zzFcc{F~~>peI#nFZi-L;6U~d=0%OKKVRL-85cyv1=J-M(@_J))e3=mWs<%15R*1a1 z*c{&?L|$ENj_(vAuP!#n4+xQ07n|e9gvj@oH^;}7@e#`Rmp8{JaS1<#vN=ADM4daE zJ_!J@dcW<8~$>d^u2{Ef7d~19zNw@J& zxRb)G!L9LSLb^fjC21#FXZ!-K8lkT*;^7aK!vDh8Ml;Bl@yVJz4f0id6^U92U&ptV zt9jwGf^Xt`GSRPa0(LCl*F^GkeTC6{6l{Dt#h zIl`$B0VsWh)tZeb3+G)2n!2@~Y{#_bLk7O~ybB)3}XVv0;e8l`!2*=31MeQ z_5=LICz5&+wQt0k!*^j{d?f_?!FvHF{F&5Hb^(bu7m}z?{F-K|CQUeGGp?4#Oyj|o zz|2{i>nSwo^$ z-E6aE9dCuJZV6eRP>wJhgq{&~P)jTt? zk>{~~B_k%rX+5IR!JLN0(=;Ok(nnNOl-k!x1*7+OEGpgy@~t0tKF3^VOf zp1BV4%!QadGfT*NkvY%I7t$I^F^TFc&m17(mB)LcJad$!&XC_@%`;~|hJC4>_G~lx zab7X``}}8{nL=a@^UWe5vd-t2HA3XEIM;0D64v=Vvxh{D=R9+eM142#JTv==ZO3z- zSxBO{Dkafd4NYk^F{PFJBxcrIm652qpJ&#R=zTR$X%)0?Kf)9ey;UZO-dD?%R-IE? z^-pQF@Tu+l$|uqLDkjnU8ko{*Y)Y%Rr?;<035i~fY7)J##wo3gzimIlBoe(21#3^UNd?y;UlSKEm25ty-qE>X_1MR{QpSWsvB7<&fxo zwNGi)JEhgolvdf#ZQoZRiQZQ!iQd=1lvZO?TE#uTedUWu^vYL}=zTRzX$5~od;7|h z@Ymc0uw$QRwvh1Gl!YJ#W{)PzAi??OuqOD_@dDG>fSFgZPhnTbE9wi)WFh0BWC)SJ zv2dZ8L!x&63(Z0vL$5M9(EEjEnI>m|6q-Yt6o6c84*iq&zF-30Spr#Nj&m^qa=LpO%Q#lInY6wX*??-<}!0klUk4~O!q|<(*&~AOwptb zWSN<*$txh&o9@529rI1*EFpMh)ekW@nHfUPhgtj^t~YKnbA((HN+FkUrZ<_TBIXK+ z`H1q=3n>E`B54tFJIEH24iZ(Lo6M}2)V!?yvG)Q^0+4dERueorx0oH8BtcAtIl#rh zzm8rFRb63DaA6;U;7nJT>7Be9pMv1}Sz#8DsPU{Y%XthPi~S(;3bR3z13^}rotk8T z+-8n)p}&Z+2;>gacp3XrneQ;uN%(Qc&+gt~7HV=Tw7SzQ)8tH$yUeUtFb_ZDn&7|c z%yJUGqRxkyKbtKitJvVZ5DDRH%nl*)ELdaqk*M*kF(*ZynLoqIg*?*jzhnNS31ZejAM4E_A@Vbm z>&*!g_3p`fGk9H%2d@U#o3k~+d#m+kh9=)YUk{qOBz&g$o$DsEm-^^l7 z9EfQ%>ovi5|DQ42Nh*!UAx{FtJZqNy7c;Lko&#A1$KiRijb!8W*FkoHnCHzNA^!)m zH^@KCVIkunsURCn<4syWM&vg*Qy}9DX6{>j%r3}$hAY>OI|1$IXc+5T^nGo}$ zSuf-uki{S`nPYF$2x&*cmHCPp_YR7B4)992ezKtzuDVyuB#Pm?#2Jw16*EVZ^Fg}I zMiTz6BG%_svr7|PtKH_Tcd@T65t;clGm`{Gjm9~BQL>|3fy~NGYd)7 z_c&fN%Y?}9alB?W^Hv5v-@vC3J!TJyI;K75AW5Zh1@wiV+xd@~-cQvqmV@9g1HWz- zYO)08)oa#kQVjBz*&$>Fw8EYCT{Gi7m1jA`yk{;UsWR@w7?{O?SwYerSqp-HS$@Fm z(**1Dp*gMzUZs3wCcclE)hzyJrjT?SGS8q{ro~`io6H(baJSiHHfe&p&1Q202|uPc z!$3(m=h%YyLec!PtBwOjOh;FDIPY{NLCpS!@Tgl<6$$4$5?nw?}j|X zX1)-)(+-mBt3h zTo1i}ZuXMgX2?Br#2g_}Ykq6E=JAYs7+QgRq$=M8eQY&TNVY^|%ok>j5c!#pUt>WFb{8qJKL}3Y?77m z2px8NsMw@gEyMIHZ0br$xjgDurU&Ke)%k83uabpBg%?Mwpen6QC3c}%D5cHgV)AURx9LZc>2wy zNyxPjgRgN>*2VKgyAGMKG((Cv>4pg6IqWYIMW^3 zkR~|OB$hpbeeujYLY`e&A4#Rr{RjL849IRQaVy18opBbsvlJl%5QDE)yR%F#Y#0Qu z7r_!>8dZ6HxIO=aUG>biF>3r5wkSO6nDkS!$X4tJ7+S)mYl-FpZt6(X;D4`J0L zmBt}PgkJFvVeKSU#t}m1vEVE0tI9YL1b2XRmMY|I5Zoo^vvLx(>gKaX619iVXB{MJ zUWc*)5_JR*V`D;=z*P#ajSOadjlHY;oeY*lqWa2UsU-Za4Xc{L7LusG7O>*&@*K{p zv^;op4rdLT;ITM@wQiRull73SF;0gOo&=RYk`0lpGyVkCI1l6)mirBj8EO_WmVg|~ zdP(@0v9CpJNE7^wSr#+K)G@_to8wrbCODqsSsF=q_!oW`vn&#IZ?%|}@K)jV#$r}Q zQVH*yMd%&6#cY&B)n_rQ{#NylM>(4{Yl3U+1lGmHco6d7b#D$E*5oRP$zkj}%0n^B zKu%`KBwNDY#X5zh3XykGr?5;R@=od$mPgVZ-V>d|N`%OJqElFfXeIBqPGR*zQvSzMBZDS&W44^d#gM)LDFr=`=&G5tnYEA-4PT#rui&`MBRy> z!*WRYPO<{3aSp5Dtqgg$bsoH9O?kr11*~SAi#$&+WW6Lj&z+FxLN-F8?i31{@dLKn z629UWvV0Q0>hPErvSJc-ZF~{yAX#U849E0d$b2yy(pur!eF+=a1lQpuEcg-o;+gU3 z!4j6G3H~C-rL2uat+C5k=1YXZ<96gx!$&Pb}vb>|M?M z1~x#VDt{vzBjF=_7h2uO5`V>3e1wA_H?a&7HNu-&jwU$5n^~bIIG$Tr8HpOtt*n+r zji-{OPHuZFRR7B|jU?(=tY+;(sbYf+I!ctMjm6xy>~rp6|LmnyPkClk$dlY)-Ocvz3bTsNq4ySKFAhEXoQB` zdmmc|hCs-}*EG`~farqtOIhIMn*E44R z2W!*>pLlFwT_oM%?=ZZ;21wNP*b6Mq#LVg}_$SLJ;e9!&@QGGdqe%it2W!z}XOI`! z5Q!SkODvILW`50vRqbRMB&%2pR0G%i%PfyX_5Ly|Cs8AOg*6M2SBx83CyBZz+Q^1T z_-~Kw4ddC!W?R_1s%jU@CgCH*eXNV6*%-rR4zzle6w! zB;*5-(?LF9ah|FeUZs4W@DP*Yxg&7RwAz|K3l#UM)(~oBUxjt zgZium8E4HTD@pLV#7`_`2W-V-9)y^mSr!SO`(q%JtY4F-L4ITIj@!=t50*-zW@=bj zJSLo}VHJ?5nHp9Zi8_}fR;>{ElrLg+knr(rfZnHBW174KGTlnqY1{G4u(CA4V-ar^ zXi~QWd^*%>B2izPeYyY*O?qEpM;+&Z^8&& ztCU3DO?Xzd5P2=(SwkYv*YFwX_n?($CGN~KqYQ%hRt||;b%9l+3C=WTRcL}UO|ZI1 z)Jzkt0Ui_1G|?I(Q8P`n++DDDHPaoe43c%mt74`*TB9UpFBrAt`Iq%y{r-vHJ-h!8WJ_0y{%>;ay)xmT_k+Im*{jgav1{0hAv zU?uO4y>pp17oLwp*LgM2+V_D`^kRta?AlDk4!=1!-0d z3Gdy7-qWm3O=f}|Y)z2x@nALPSp~CH#qhN$-Kr%~uTArU zH5OPCLgeet;a0FW_NA_@4!35L@cPV#5gu;kYcdDq2&Ifcf zjghGF9Bn1f#@^MK7g|{)y!ZLg*D+SVCYd0|TJAnnAG&hD)thCdlBm9pv$A+hSfAsp z0ut5NaaI|LdM!BKsudz%3y!xsNceb;hu#-kv-ic`xtt7=ZDo?EYMf~0Yl77{$*Lex zBh0btc}zIM9IKT?jWEaRAyE}O*%}ujkKiemyC05+uS2}wImOE4V&uST!Rzo`tB|A; z{u(jAZaK|rCQ)}%r&%lo^QgO?_8^v zMAh(IYm`Lwb)Llzz|5+z0;`0iJM62#s^Jp$b-vXiVq{0b1<{oH!iR; zxv)x6`3tRlE{6Q>z=c*134g9$04wT3Yew~z*X7o@CM!U$uz~|IPaXUf zkce?7$W_)7l5R_W8*ZspCPd!LEVXL5M1B%uUTQV*JmL2ymRcPoyc!Qf=B3ss$ts3( zZv|Oq83$3Fjp%p$owa3FqL3YD@D;wyN)aOKv&_mCBI~ov%1fg>w3BRr%-34QBz5q2 z3nE4*$a1S@yO`^(W=*;w<_4>ii*cyv{U&Qr*0_5LTqY(VY$}uGETq37J4A$`9))0xB>A$TBO$wmZ%U03?ULQPymx6Rz*(BYO z+ab@@Al+7>ko6#V1iP&!l6v?BLwLGEF+(J(uh*;zO{yX0bu003UJZPDfLCa}Rsjjm zgXd1KRm)?-`ux{w(FE6gpVh@BT=VZ($w%;6{0t+!2l{%)$|F(ZdDkk|1i!)ezE#7; zFd3iMfYm4R;JLFF@(fsGS}Q!tA6YDuWI&Ehfgj_hlzgrtt%DSi>={d>ScV!pG| zkEa+|qY+~k9OZE!#jygL2G$~_5V)Jpi(>L6KT8~`!z!FYbPhDi9+ zU7YEp6_>+%m(SjRv(kmg8vbTgk*qQff;_kb7L{CbgAh4F({@k8R+Yw5$c$%- zZTFFMM;?Y}AUI|lo~Yu#?iqOH@DpUV?Foue?^ZardphRf75g1x96OCftqs@C*ChTR zc-~^yXc7g9+LM~>0y5K1I|DQGJhMS|v^z=QyRI;1{Hsqp+a-B?7NZ~sLCh|8-kDq` zK=3YLce_i-3@1W=<7p4uIE%-i;IWux50R)fwzut`jWOz7^4WGK$;Rmk&}sqnwV%C2 z$ZjAXL3oPYC}dv{9O3@Gnb%Lw(^a((Niu?gW`{_mFI{ zWUB@CAPGDf5NE*xJMlamPdDv;coriU??@kRR|&!I9pkrS4!0X+ zEBMY4mv%1U2oJaWHNo$C9AS@>s1at`tbmV4jxf_+C`6v8nRWrmD)x7%2KIHNT}r}_ z1yU zi|jU%dSesF-=MEW_9O{E-*JRlcHsrsJC~P1j139jts|hqFqnI$Ac9+$!^sID|WKo zr3tn=)gIOak7=$QSGa9ePqULqR8>#2bA`yNo@N(wvE(s5-L4{06+7MT(4=ZF_|~&M zPNI(BSvI=}dsls(WiKRAzk+_2oi9YL@U!d^DPr}WWmk(la)f8uojfL7&u801n&8~? zZR6r?=YEczNTSy2Id&?E8sRzi5+Sm$bLYB>Xdh@oDglLVJ)zjj+fbx=dx>0b;JOQ!XcA zr^DQ_VprRlLY9EwJ<-*6t`K>iUTrTCBJaDew#!J=c&@g`NO;ds=TOYFug)R@bl)iQgGOZfZYrFPtvd=_#%rFN1Kd1qH@r*bh~k4B7@ zkf+pMNTSAEYHuJ>y)U=hu2Q|<4Xv)XM@iIEqZ@3a7-PCE+1CwrqL8i77gqHKJB3R` z-nHFeXN#DhAm)C^e1lyeV*UWZtGFBNUM}J8cY{4bqDFY5JxRh>9ggrOJ8>zECv0_# zokpT|n_KMyP4M?%E9`16O#asE3cE?j9q;g0y%qKb615|(uzN|=`M$!AyL#K+SJ>$! zs`r)lm?pT_RoM;KP@Tiyo?UHs3VB@gzSsUsT&w%cyrcbMc<&cDr4ZN8#w)VUKF^ zH;@`T^;)W!wG&*c<7&CbUMNJKarfAHTq4i>lV9QAV;7UGG8V=7&UTMoAzHaB_+N3o z$8HgFCdBZ}9bCe-0exMEy{i>fYp0f~S^O79SZ7ygvKeHZ-NS{w0h#fYy3rmKGAR0L zw8yv@a?Fi3TTYqTR)`scJdJj;kZ(bLBuV39%t+v8L8F}|M4lIo_6UhOa~tir>$jc7 zdOL}PuR5H?gLb+mIEzQ@ToRS%al3fCJWtreH>zqR9t@w(ve`{a4g`7DPSfOAkbl|r zT*5u7%We@OciJwyLx|k9y6iqK#?4~xU3SvVykc@U?y^&b$hFaBFXUoe)(NkH(0iAi zC!{XSGa}>>kR=o|DdZoa1h??M{tJSym0k915>=lryX01ksWUc1%vF%*Rl8QmcOa!8 zui0HBm4-Q!U!nEbZUtqg^8(M59y^5#-5uWyt^Q-TuE3Z|V>Yx}Nis;H_KpAAVOMCEzk9@SdmEIzRFZ&R5chgl5RrCf|hA1vSrN(xA@ZJatKG*Xtl?IBM3dtW!OV$w@Dc8|W5hTa+6_XkhnOotzP2}LQVQ~|Jtkxo#M}xpZfD;~y&DgJtOohfE)~)a zvJT`|dz|Fe$eSR|Acm7xgRNeTdcyLAePK_qG zqM}YpJ+%r~OW(%8Ut+IWWRG&H&}%JKF+~RA-!I z3tjVLp1F?u0FGyiCG*U6lDR}=p1DpsiCWJGI*la!H4fM6fliwy{gCoNr&kl4*FnyR zCOEG&C$5p#xuTBmQ3pE>nkW@?2aobM!aF>pL9q1B;IlNN(BJ=AFzF>=)%>huVa>*p|MM3dVg z&jP3PA?%AEi+e#bon{iXeik~NLge~6#u*eM*H4y{+@!{gv&eEXG{IRM=j3UEbw1wd z3^kG z;Y?3=vW3W*p6(P0*<)wEYn|@Ya0%yry3-^?&h&I=_M?s)YOcldCe{wQNRGu50 z93gUtyum5t66U$V>Bmz@JU9Ljo($aRjA@b%nQwO7zpI!`kXxNBO^yRu;dGL88Hd2! zakr^**fZ3M9RY$VtDIRvro;U*K5waVGPoG;za}L|#Na*k8j2|tg0CPvPpJ_3PDGVc zE%L~7xk|jsY&20$fe}jSo`LHJ&$!#$n8!JiOPJZQz}GezSC(CA~V-Gty&(O zSB=xRU7ov~(e3iwOK_Do;Q=S@dFm^? z>u+@OxEMFy2hRzh705p*#`p^6^#VzakSieuWxdlS|`SPQ50VfV}E-X|f#T4QEu7+d%r9iePe^bR-{AF;dqRSnBSh{AGuI86FdtRxNe{73(v}<-4spmtUT7u)&$SE za>O}2tu;#O$#9mr+wtamYUrO^((bA`muiWvKY zTcJDRbMoF!`4{Z-h@b;=k@0xVIb)F*mvcTC1}`Zg$5%z}~k+ zWK5OY^&tvhnZ*#Z+I2rdQCIJGxhX>A)%)FUmJoUMUgs8)s86QVx$Y)D(_3I(w?gJR zH;qd;uQhJUC)B&~B*auh%o?{`lRA)kx0y@$nzGj2KvHL1y=TN|fS9%JFqbfMgIhR) znO7P&Kn&hHG`Lkl?f`ihTHWWi3uy*v1$n?75%Qd9)#$ogd7jrno`IP4Zncm>kQYE6 zbQ^_y3(^VlklXSFZxz26mxo>VOD?+!dBiOtsWehSUWZnHb!UxY4E+6fA&L})Skbk+kW7s?V@;|gPGvLa>U80E( z@}gTNqz7Vl1bNBL{g$`-L`bKb@*S7&Kz4_im)#a2=H6UhaZ|p>m^DT+$i5J>(ajce z7)Tn(Yi^N{(?J%1^tkmT>InYFZ6V?HIUZvEXY31LR_m zJ~#VE%%d{D<1QiLv$zIg-gPT@O!yhsez#GG+*{t;W*@sAS`D}xv^+S%kKA4^%$p6* z%pv9@cSy({Aa{fO&vk#o@vLO&Ah_lS-B~1j_ruJa+!~TPBL`yEf_&_@PGBqb+Wm>! zMZ#zCH;DPf9php=2CZ<-f9fXwjICC&mq1>Cm`~jlA#Z`;wbrL@rjXIFRe_MWefSfh zPu&WVmBt<*FHxR;9z)Ltdq9TW*}qU<;X5p!g%!(yR(%ljnOjUTe9XfjTigvK-G+=A zaf^P%JUj-gy45Y`!rp*9_(c8Fl+fRGq(a z6aT=z>WrNs##jK~E_ZXeggf?_TST&kp1|x3F=KA25f_edACT|eW|B%{8RVG{@{=1x zFs9O|0yzfcXE#eo3&_bJzq$oNUIjS|WYSHV##;@7Tmtfkn@_UR_zGkxNW@E-jxnlY z)4XyLRk7(_Ef==Oe*9gb>0XbJgF$YBJaJx99L<7dgWzA(o#CaDsQScv10-tIF>j2w zqF22&kcW9KGx(TSK%Vs=w%13p()cS#Gl=8$#&0`j*Bc?>V}1%^JTK1VG4hP_y;(x! zFI>eum^jXT#@`_Gz3^WNUM9t;J!+SX3&hhd|)Cy1aiZ#JCmg+TYf=^)PdL5d~hQ1E;#z?y9 z8vAW{x{~Il1lSip2M>gpG%t$;{%-Pp@E`}|V2{OUJQ2KO<2LM9jl$h)<*!c(t0~6X{H^RTF$7eU#Uw2|kfN#v3HrI88nQ zUgXW*VcX1E-a<_<^J1?+6U=;qSE>nS&hctUROVB>ejdZt!`Xy;)T!R6kRPC`xaLpw z*pAq{T0gm7o)G!n+gz`cM6I9GynapawemEtdMBC%eG~aasOsrnBNxM&6ERTE@Onjz z{3ddqH!NaygP1cQCeNGHB%dTTY1^ZfI5LbqIL`WG%==UcZn|As2h2 zLiWBL?yDf?5-(*Js+fWD1jwac4oRi)F|>LPT%@fm{ofTI!W@ zF}gr-MJ@H3MT~qWbg8#Nh4_e{h8(r>|?8|#U9b_iN z{K@MfS!Y}XvNOr-{V-;oaTCZsAUAj!DJW{!y2;BW;p-5eW8dU8X@ciqxtF&;AM=Zl z=SawNvscB1$usU2uTjMGLJXd9w|MQE91pE-@rFtGsyhYbR?j#9Gpi>j6<&@Id979H zHIVQT;=NUs*Un?YJF?rn9xdif$h^uM)}#QW+KZb*v!Lt4%Ruh*x=6aMHxK03QMKLx zm&gFf^$=6*8FOibk?%mtNrr?32f;H>kUFpDKpt}d$n7M}2XV;;!Rw7bdrQ)|6oS-3 z%%45uU@kX;+y}D8>nBl1XRViX2*&Wa<0qNddTE+G0<9XnS@S55CBI?R=%ov(Xy#Wt zjb648`K^scuYg4L)#y!-s2!=%bJJDt9ne>!*GAH9eGX&BbNOMfOUTb+rVo1qLLzB= z?hkvTLM)KCAkV{I@_at#JwwSM;k|F7m{t)Z`)c+&g{%_uYWDht)QCLIUfiK-%v&K( zvzJ1m#{8(4Ddc4_!biPal6A%)$hXkyQLjwM=R#V%CL!N}{01>kc%4Fi1DTNtpWXEa zgjff|`wk#adlN!-0Ku4Nyu`zBgzJpGM9gzus*t%L`$EhMUOh>jaRSI9ke9sy5mO9u z7D%^eWbiy?LSFMygscQPA7XmE79qF}mxH|J4GDP=V(tQY&vO^>JpU5%ftN4j1CTWk z^PyKFp{AkklDJfjkTHsh4;-&to0}#~tJ|FPo&!*b(GIkgvTZntTc}=2dC( zCCGPPvyi<-t8uSW6KwUPH>3%+n(%@nu=hISNN6<<@{5^3%D5D?H8bBT+klnm)f&$)i5 zCWnHY?+*z%3o_$6ywFcP0sC5I;MsH{#9Zvx2)P+zaMfMn4-2^);%P*JY6TO219Wb0AlP6#M;L!u4~FKX&rAnXmEVPC-#4yv9!#B1c%_7YLCf zEb&`O)bU#8cW#$wnLoB&o@@Q2Q+Z!9&$WIviOO@G->6AB%;GwKkhd~qtL1)HF6OB; z_R5GDRS8`gJ(M-rJH#l#nCD3fY0UfzA6NJteuXA4Ld+e08%dS%FUW&(r$0ur zB_c;yO(U!`rY(T?IAHGU{B}OC za8Cd^ORW}sma@)oJ6p*+(CS{lI-lxe$(7LHH*$%{mC)d~3XxT9@DtCWR$*1|^Lt1t zjhbe-%7e^}e%iShQ)$!+S?`w#86Ahaeu#O{Zxs@QS>OmC@l(#@t#$#yIyd{t=X2Q) z1grX}Ure$kA}jW&UoS)+!4^ON0^aIik-5chCaE)y0vUzgANPlZoB}cq@}!@5A+}P- z{V9L85P2+~@-u|UWAT*VP>8M69njN$2N$CXGUJ1Zr~QQ&QH=2j$PAK3l1gK@!(m?V zD)Y48Nuti~Hh(}9d>Y^8XIzYVc#I8s{_Z!BRMJ_1@{FH(3C47X$MjjhkV|+>pY_Xx z$Yc7f-y}qyDeZoT5LxGc_`@Xdo+hmD81(gmpSpzl3eTMv{cIuf+@Ax$&b;i#i$3W(H{Z64{OVH7Q)g5_tMegd#BUO^QplJ71|h3KmO#wc{;-f5A>a7Ha-OG7 z$e5olq(R8Hem;rX6TXwXak#6867K3s_7YdQ*=}&&H5IN?b{5~OaU;Ww7 zzL7GAudqM+4MOBf_{C4Y31e0o|AHFg`SqJ$ECi1r%J2Rp$(C^S{^1AZJhR+a|M1gp zMp3KRh~|^1Y8cT9O-f+yMzn>5R|6#yO}qv3bTj!HH!YgN#gMOY)1nz98>h*YIW5{O zM83YqMTbZ#jbCA2e}c?2qQR|{*^m`u(PAO8Vs^BTq|%7bgwJ9@D?2(SBnEODh#O@U zn5WX%8UFG$N;Eo4$bA!B5~ArO8>h*$V29|~D&D(XQ9DHAR&$Xx+#x!PL{)6ZXtpM6 zpsyXHB_zCJC_6<5d7iLhNzpMbVa1Z7Mm6@ODwY(@6e26OOSGA!JFL&H(Mch)KD$K= zZ^t}!RG<5y_uZluLa;tfAbUg`gkXJ8_KLO%!TO-=6YUbh;1w1nB|1Q&DmEuNxMtgm z&54c)krkU0b?a$7;W?NZttR0$#AhI>(KZtG3OhI2!zDbw=0=Bv$XD38(McilOgS)` zw3fybUdbFBO&22TGcTGWM4qSfqDx5B**z~>#wEO7ofoYZB3JmlXtNMGo_WzuA#yzF z(Lo_{Js%cj>u`iy!q@i&(b*(wMJ9TBY+BG=fF(OwdDRvs0d6nW$Y``|Nu_a^I4c)L2ZbCi z&dTGWV?vG;k{xCDVV+83p^%fJ$wC$hIVGAd1oJ!%Gd(SuF9h?ToE@#w@}Qg_ZPW6g zToN4=a=d7DMbx;T_kN;~Yoe(_P7$&^nlI#ZAvZ;=W7(QHjNzzA1FOGx-JMOhgg;d#PiS{0q-5+2j4sM~^lsbg9dEfXS->8fZu zi8`jMqr)U>C%Ge<`?wl2UOCi6J4w_rt%(i^k;nAz=(rGhOzWcV6PQOG)B5NvA@Z2s z8_f`M7E~4Y=li2MB&w?GqwTNr@yM#KkM;tjIuW{kE;BG z(KJn7g5DpD=9BQsqdXKHCs9>xiWc@_o{iIFRsRxgBvDm;B-%@&s`_ZO_`iG>@=R%o zPLimqwnUTP#F$D$R`rQ!nh;slr=rX?2WP27Z;xx4|h_&l0P!jCD+NOX)u9n-DRg3Z`U z9n&wP4J7KAjz)V()G_@gTKzGfg*>L;MpK7S)G_@wnj=IW)9<5&LgX?1F9@C$r zHA3Vuos2dMk!Q*u(G4W3s?&nT2t3w=_iANTrv+_7WL2jHy(Fq)(}QtMwm^NR2g%bg z53d+XTu@J<^I1Lp9)SG0YCv;-PYcwM(|kVm4bx^Gaf$)_LC zK^}=(hld44T*8VS7L*B*)i^8|6C&5xf}ng?ULUz{EC_0a$Pq3GT1o1R8koBay&oRL zC1Wc!!XtuYP4Ict5kZC~F=&+;rzgNbqUc(Sf_$wj*2=%py^} zFACB%NrJu>1=+k+xT3Ox0+C0ar&&R<5LqAi6yxr^FIk`CgIXc7KF0^mS`3~A#|NDx zd^|Y!#X-g%sy-<&p6sBIM9uw#po&X)yiN!jgvjxn5R}c@c04Bqqa>Ba8*nVJuaknR zy)dTE_yFV}=qo2^7cvZz0g@Yxkf?Q-7fcF~M>#KmB=E0$2KJ8cQ=b{s?#(mHZ9(`~AV7 zCK&TT;LhW{W9D9nc_2s?(hKA1BPkT}9>|aI7EfbPE#zYm{2i*sphw775wkuR6Y{-? zSs$dO^BVpJf|Y+TFy?ddj)uPu0DV0aB$B`{e8PC}z1oL@A|6B4_>^MWL@QiTUxGXw zutRws6wLgWAYBL^ukRq{k)V^L(!eK*_#Ve&LH=R96&^2?mY|VDojZ>Qi5V0VzR&o0 zP^ifyWPUtoBjM)-$`gUH09&bj^~oTSOZb}dWH4KZ+)17cGK9!8<;kEx6Fgq6!H^KS z##)2w!?7=Q_4RbnD@0y>wFOI#z?e$oJgD>ZQg|ONs1b63kY|E+As2x#hLHf}sVsC-}dMPN<7SaPk37ALitM3FgLgZ?BCzy35#;Dc%ZqRV`_L5VAqK?J8LB%qPF%lQT z??1zs-wis1>C0E@@kS0W)xg$ZA5P2*{ zg3Oz+75`Nn9O2d=mqdMPXlqa`qzpcFhChq>MNlrJsvo|svK#DfL6eY2Am#*^`&U7q zkO>$eynqtO_ojAoDb{i6F6Z z+xkodDI|KU5)!>t^^{hPQ(6_TplXD3p9rc*^bt0Y=zR@MX*DsWmAeu%>#g!g^br=5 z=zUd8X_Z^G{RoRl^j760dS6{rS`AKVH8!PH=WW~fH9(^GHAFil_4a+Gk?4J8k?4KZOlj3TrPYQht&H2Z?<kdDuG7&yG!Oscj!mFne z=NNwP`AZnH+Z4g;x_oH$OVCJt@#~+OCjd>V1mcccL%Wd z--CiWoavT`?A?e}36Z@Uu~w2*#x0Ns?`4cwpOD+d2qUp!(Mpam5_A8InJbNYh`}+( z#Y)$3X%b?_a@THKXFJwRqUL4CIyJct@;I>pO>PG9Vq==z4idz&*J0*W;oK8r1th9I ziLnYUVKowCy+UL)c8tNFC#CwxYU~(G7b0i6W2}Hg&2;Bjb;GtZO^#*X&*c@EJKjO> z5i1q)ACLwZ^PaK12QX$GvyP1zzrc3`_lXq=*%Rb5$nI+`7Sn9((&;CM=k5!RW8V7^STnnEu+PKEK{Cw@{V=~YIuGut{X+w@cdW~m#~Hx#tMbV8eSMH5v^nmFN{?P zku|(9HZDZg@RC^EYuJ~n;U%#gA+m;-#_EO08eSf&@8zvz4U1xJ-=nA+UJ)A@CkbnK zMQlQdtl?F$eH%au>ulR)v{Q#5Lwk5 zW1~W3Rm)=|)8gq^$g18PGaM9E)my?n;WXF*@R?pH;ZC9i|4u0GNENcxjEA7AC@W)y zl$qBj17kgJ{?(MNOE)kje_E@P$F%g-$CN}1ysLJ0HW6|xUm}E=1 zKi?DU;1V8-x>%nOc`WK;L!y>3y;G1TJ`V4uhEcW0^C#;L$;OFc!>4QAg)5u?{ZAC6EXA z-oL~Kg_$e&c0l37t$6p_T%zrAE5_!dsP*$!EQ?EcOy7>>3z5h4?O2g$C6CwJu`(g@D8C)+7b179 z_hL!MV_&NB@5P$Agq43U)+Iz%{)5=C5Lx*TV>OE@PgwcQvGi;%vhttCMuf=9kHi{J z;4!lDU&XqF$jW~c8zq4ibsT(#94h}^%smlXRT>`1l_2A>6d^N({1D3$va^sMV}(NS z2wnrNeu}v{JP#g0lwV@SLgW$rE!KAikC8|4k66u_T;vg)p3rbMiaLU3!Z3+C-_3*x zA@X>c2`nF5b%(FiWd0${A21K ztuZfQkW0A6q6uR{#El{TW5Q zpOTi4%q4uMFD)Teh^$6hLMF+^X|ft=34`k}&&Fx88V4s7-pfT+V}8OgNhQteZW!T$ zgyj1$rjq7`a#RBRzwl388!wU)zM?640%qC(t&R(0o&#AAa(pQAn4XkSct7@~=6+H_ znI?EYcv8Y3iCR%P3C#~+t1inwo?nNblF&|~&WlqL{-3S;kLzpf9|wNk)8-w`@;*P_ z=jYoH8es?_gb@27?hrDuxI+j-EVr^u2+cBahuq>5LL=4)vG)=}$b?2C)2z)98sYnT zUDxY6*J=CikNa`o&--<~uIqZ8>->11^M0R3xP-)b=0;{WuvQ@#TH%%OX^{#hT_G{T z(;_n;#u#~>kQd2i5)bW1t@0uZNU+ZM`<=W<^CLWS2E^bmAkK;mFj=ac3epU7KRc5A zKa5$bOk@qukK_ad zYj}R7fQejD^CA^Y;)yomb*o2epZS{TV?vQ(*{nO+zfX~vkY z&|M(z0r2gJi1HK{ar`NYWOMP43716jNyIVXl1MSN5-a?YNEwMZN?a0&lZX{{S)`9i z9s30IGF0rcNZT{m`%!}lB_)g%Xj^ugRKB27$|D81jnb1jftBZFN0CkTro z32$H?Il@JenM~yVwJ4I!#UJyc$OwtJzj0f{?BpX9pWknbWRqZh@GAGV$k>|``>Kv4 zccI9wQynRNn~CxO%wibETpg)pB1d>}I|DHLQs&AQ5YPW;EtceVfh&5Il8D&zbJPPCa5yn#+$$SUp@E)JV zCm?uV;=#yllCMB^xE{WZ5GiM}OxXZ(FYG&yMA|3@zq^Z{wjPc2li=A3r7<$jq*D16 zTH%xH$08{`y!SDZrpRn2@|QUO7bzzB6Jqd)^i-sZTAcyUbMZR-nMeo8nItWdQEIhg z4)6WhNcep|uW2ODMO+dCWM`Py^O1BW@B|YCzjv`blKlZ6As!R(XuLeq_92Q~W6LAm zT>Le*Jd)eXTkQ#X@b7oO7^!C>kKr#yl#f^*|5q*T5tl@q3)&;;Oyv4m8L46-N4PT5 z{K>=-u8hP#ojAgkk$x`z2vAmy>)J=_a`b#DkdrNbOqQ3hyxBUio>Xorye>d>I*F!fTiTt-g$yUtudQ zCxUzxDPY2nBxizr6RBZRso+)9e311KZIJhcS5_!LL>ks{X@K!u39>oT%cLtLj&)li z1>azdJVyNzX(SQb{nyASiMS^DEmHq2Yvmuu{*1J6@mKhtk!~jZ6Cz%L{29srj*sVE z7!U4WkMT$3IOjqKU zkQu)p^-rXXi@fu%wvmW)fue395%p2j=8Y^*=sU=R@7CBsO&H;_3FLMdbAsAQ@;3;c z&NPVGQJuaSMb08o&D>7PnaHC}qFPHL_KQTdk&C}yB&w|>V*g51 z6Mp0)6no0fY6*$hQ>LlqOyt&?rgoFu0At2aCCTdG7R&?hTPD%el%KgQ0m1EMs`Vrf zfII|ZsVTqkn1?CGQS(V2BXQMQk|#j^2dzAHl!@H#yQ!(8m`7G@H#L)q+{(MDxm^5} zu)A7BA}Y4Kx`0}VE27=iDiTqj-PL{)QJ=lkVJ7^JYcq^+FLmr!9FOdMA9cZRTturG zY84lMJTugK5;2|`YBRMGyA)ohT!X-Fn4jkE>o@E0YzTd z9jo?|i0is6b&QD|&+)38fUV?sj#qP-$nhMn)^hP{n5{NZj5s1?t2vYTc*GIuL^Wj! z7qKl)RkN7LyK|?iTbRi4%u>TUP8`oH)!j}qn8^CfQfHHhZ8}RW;NtIUBEBVBC0W8t>@xbW4_u#BC0W8 z4JYxri)vh~rjv**c&VDrL{{TcwRY;nYFwtK?!rY><4U!Y1gp^sd+s&r7ztJbWq~?# z8gGTwcp2n+wTJ|(f!`Y}Q)`*XYAjTHn8<1@R0o;JYAjSoNklakstL(_rec3zsG20A z8Vl7z5>btt)i{Z$My1-vL{_6xO^Zyd#;t0VIeNX{l{R9i^qkvyjMkX#J%7WDN$ z)wOwF_!O@j+o4MA%(XR>+o6C zB@wIcS+$Wwth(iDE0aq9Y3Xvcc`rU@@l5JPRoj~j9;3d2S-hlHli*&7^0HczhB0#e ztWbydXXEk5yh0u4;(u~kp%xs#V*G2imFfZ#am}_;ts%i#;OF<1YTbd@O4hJLZDS($ z(+;(pi{Dp=nl^J{U$3j#B%-g^)dCXH*XwE{lS*YXY*T!% zhl$*RtJG!^ai?On+D9UKU#%(!^AYYe3*OQURb8#-kwii8>a<&}C&3Zoc-~P94w=~d zyJ{&DS&etqDlUFC-c{R3#CUqt9uhI09(9OBRHH{tO`q7;hiWDhInxi-VlMu6|41z- z5o`4$wT4=Wwfd3TK!SbY)hV<(lvhKn)lbzLCY8$3P!0B}P0c?HV=9%oAb&x{)~LlK z`6QpIHx{@AU2#~2h{N4yf3Q@u8Se&Yc-Dq zf3dqGWFAy&NtQyZT|mB7+escF`Cd)U!8~$L*{HTLk?VP*+P$3&GLi3k-KdT-k(J-5 z=A6PR=2w1`T0kNyzez3O;-9-WsTEAtv(JoJ`AzC5#fZxPq$Zq-nd{g)Rq)qLKdC89 z_`L#@U({?SRmw`3>6!3ruV2+hlGjMKstL0&PnGf}$zN&_$!e02)=TmZ$z&~SHgEMl zNut(H@)5~YEqxA;`IKZ=t(D|+5?z}7hw1opFCwYU*U&pLd55S!+a5+ z3y#!k&%n%bMIECxF^MZ8&oNqS0mj7HbtXQiK2{sJgp0^?g4TaMid=^$Ya>kL8ar9* zxdCJ3vE>wPkVLGpQ?xBy{55uprj)T({u(<)DrmSguk;0uW9FK!xST~jZf2* zn=nr$`$as){7Wli(iIZdhi7WFH)D*f#yMI$6FIMQw4Uu`n2DU%IoddhnAbU4(tr3Y z#8K-U%_R|6dgo}xB;q)Bp4LkuW_p1($V7fNzd%d5h0jZTHZRngNyKOKB5h{H#Ca8K z?M(Q*@XDcBtE%K96yv#6tGg9t5qqYP0Y{|EwGJlyIun1Bb)}ZKi1+>%tU8pdv_2-X z8l~D8iKs@Y7OvubiE5N;E{T|Fsg_0}s!^)-Fj>TYBX%5&XMr~RHq5h>-P1b-^mbYM8*C-uV+ulsmMNJGh8ecWDE6q42lfVa(myC==Q0UM;0|Vyh+Ef;tr0*HW#9 ziEMShR^BkN)dN~f6N-F}_Mq0uMDE=WYCX?kjNH2)(#G1kh`sv}ZL}Lj?gjtT!tZP= z_yVg$f2+2yVpX70pSF{n5W|CL6gwJ?i&ysX#F3AfduW9KdD@b0~ z8c1Fzc|%L+=Xq9x;JxlnEr;Y25WLs@mR9x!#>ivcYORrp+;dlJZCw0qx?0Qs5?jSX z8zB!qO@3Qz89{X}!W#lHA`b-YIURI4Hp_4!<@Vi)fm=>nDAp1o*jlY z_j?u-KJpCy9fl3sOfKx~phNE)v;rpa&|HW?`9Z6um~%kz_j(((K8m^6mr)+$|Au#? z79PgFWbYd_mq}a^nMbrz5|L+<*2qMzs7+eiHhDH_-P`2Ztd(uRzToIbQ7oG6ZyM|pR`;iiVMN8US3?Owse0$iAlN#oI|mK=3_^ zQ}hNVysB8A9rclbRD$fJC;x=KcZING)gU|T=}h9Gg)km2`M+RHJX8;I4~uCcd5L0n z(VKteF&|URE_x@)ILO1$YFEANH$KypJosCFAco$^q)s^;qzxph$0;Tg1b+)`>q8Wi z1M&vMIC}E$m`7H_)l&n4e-YKy^O?wP;pxR=*lK-9Y>Svab1NV7Y{>jBWRB_COqME_ zfE)tRF};Z729REe*-dX}A~R3d`$$CQ-Sw0?~{zV_1HacotoJPEVd0DYzEgMV{*0b~>;O>Yi` zSg5Trx%il z?RC8FPQ{od%C9i5ePI^I>**vroC$xA734&{m1G*ou^=bw<3?|2Ip|q?jFUTidJt(t5W>1hjkhv4203_F!iz&~)^m5kMGUZl~ ziyZJj}YFwn(1q7>6q<04dt8s}w zP9mytsXkrB%zT8n!Y|YFm{cm`(E9>tb-5lV!SUP-a;2VOOdLKy^W@m!~mk%;k>>27r5cy81)nDA;;!&q<9yP0(P)woF?2nhDRP){}G2(kB@^{Rki z@3-hfB%=3Q^_iCJ9q;Wd(sKfW^;x7>FyX&AsDeCIdajMFC!k>kM; z-leAo1V?zcUJwu*;k|k-i5TI1dK(jY^|e&*ClOaob^0iiWy+ps@$*idUg2Wz%aj=; z_v>R!mM8~<)Ind%bkmzS_j)~z3p*O)UxBID>q#=9)$8!HmldJjoI2)@DL8NGK89v<%iVgq_LiKy6s-bo@V_O-r+i(j!pJ-i>UhN#$} zKAl8VY*5c25o>Hv&m|ER8`O(QM8yX6DlUG-*6B?oqGIdx4iZtZb$UOEsMxpqC=*_> z6sXUT?xykjtcCi_1o>W{Niyt9HW$BQ-|OWhqGCVjtt6siKj_0GqGFqLbAMhRu~%-^ zXOf7DZPs&0M8!7ig(RY4oAojhQL)W>Es3buX1#@rU$Gzc9uiTpAN3&;QL!I&>u)Y4!3j%T?$hf{BAag+e)_a(&_wS2_j3F-UdJNBcAtT{HocsEan8hT+ zBoVWiWR#MKS?pk>&E&1bET$M+NW?6{M#@1L!)Jjb3>)Q4_%%QNc3>xCoQprgBqQx$ zmN`+}`${r0x%l_Kl8jsuaW6N?n0^Q!kLW$wn9XFdGBcllUn1Ek<-$GzVO4iEY6F5* zjTo%~IUhtbx&v|vNYuzk=OYxqV|9#NE`C)Vqm)Ec)itU}L{(j5fJ9W)Ga3)&vk+CC zZp=Px;=J}SDwxQ%v4_zR5Ulf_M&98QN4S?!!eoguAF6RZ#O!4>l3W3TzjxTj*uq=+ zvq&|{GkEV}7Bh@m5;2Pz#xRMP#lA+<5ff*zzma?7#916@R59VRSOnua&}a9sd#0U>D7LbS$rW>^+qRxjK{Ul=j9AT7ZVqbiO zcz!>^h%;Hje%){%jPM8};b=ZDF~TE_MlSw(KFVmL7*WHcj5rf`>jG3Bp9LIc)Et9( z;CB-s_}%ZLjV(-;DB?E}#~T^PV$2dn{3asXC?;uzRu95>PBxmE$hY2|YGh~e5sJCb zGIEaNBIZ8V7$XsL&oxqy#~40${9KT0R56kFs82VVxrCH+_*Kg3MhA(g#_7h`37DtL z-#TX)N!eV));YsSB@rY1myt~(MtGKydLnNnMwo9DFj=B#(0dEaJ>RHeBKM2)jHZC# z-d$kC1A=?XJYygrc+4y`@=wCPT7D~$#cG3Kj`ggKZ8e*Hmj*t^E4%H?Agv$)2{`WF{5iv>mnlO@U( zuyxv?stb%dCURca8!bVBZ(>|;3^9>wtjtKu!_0F1lo^>MVvUsy4k2F5wp0((9Xt~c<2F`1s(xzF^Wi@2EnHlw;0L!7{kAF z@(Rqf!kEc~W(xDV)yNG#z;AzRl{E`_ZS&m{MB-gkwYRXe~+<+Nu}}zR0CJt zy+-y0ERX;DizP+}i5TG$qvt{%BSv_ik#G@;TpRZr@IT=ne=>sKb(Hcp^z}B>aG8OXwKrrSdqm|@Lh?xnp z!chLrGou^^(r)CE6oMQB@`}+OkP|^VjOoR^72X5ES-fFX1Y|DAn?_4O@7VymDfz z&y9wwP-LqwjMjkQ74;WJQYnj3@a<>iF!wKw=}hD`|CdH97yoFp*61S<*ZgaZA!;SQ ziLurgClS~DYmL;a`3S}FaGg=gME*`;oiRd!-_5{h;@^oQfd4segOJH$%u=u#_&G(2 z7|%w()iT%?_;-P&JOOgJr6?nQ%u67*LN$Jr0>Ayg6Xa)K#PRueUl!iWpCD}Yyb6%sQYH^xcCOvjDhYq6C)3;%75a`8WZ{cR*I zU@;*v_rHx)5;6CGjBFAy_es%0AvE{N(Hasl_no5MBw`jx(Qy({jiji19q(OKBPp6j zBC0VpT0&x<$G?xgOSCf}SovL}g=LthQb~oF`$3Fo+D%*z1;J1BcC>(G4hY^+w4)1{ z$bH$4Rx{!I1zuI!(LpZ$Uf@PYnaI7sjTSG&zT`DPELu+@_JUZnnTucfShRyg>;e92_~O60LW)@PX`DXttWV%A764Ka%+3*HDV6;at(mub~uC!_)j2QN!G52it;O zAr!3P>CrJERKq;k3Iu0*W;FRfxZR-@2+k`%nide8*Li*`QNzM$3B{mb4GSm4VCD;> zRe>0+VNtX_AlTO>(Y}CSUzhrML=CTuD!1SW<=%8<)MO&hj8{g}wv#L-e2>E;+m+D@ zCi2@^S4Hc&u;)8?48JPcMPNkqk}qGL?t+^eE_RlJp$ z#ck1Q5;2R#(MA$6i`%2-Z4*a$XEbZ^#NO|XD%B{muO-n1Oyt?&zGwp%|D1APw3S5E z`Mzj3i8#yL7ah9;Ggm5)!EqHoTh&GL?&N|;V=gUBBXWfDqa`4N#QA-BG-D~xBdYpBw26t_f-gnW z>v)W)^Gne(Aynt~=r9v_zFffHd-+;4|9)&G|LVaT(Z&aO9x4O}Ge>1wE z9%JC|$U`3dromg$ILSUB_*SLWQS(6_a|p$}8_gj(0t7#?z8@_n$p-0x%6}NGAvqnS z8v6Jon(`3lk=yH&XgwGI{N5LBVIt4(ebJ)-Vk>!mUlXk+5$E?c(Rwca7F-i;Ara^I zHBs|nmd8JLe-WL{q>|km#I^cGw2lPt4dQoh2cmH%e9T|MyuOY$Jc4=TwcomED;NJd zd|kAUV#NAc7cF`WTg5|Z=fjh={ouDk(e(fEJYw%2ie{6DJ!L3bKqA)IP_&*ztg-K+ zy(D6dt&b)>&NGWO_I)&;M69SEq76c5MQw_Xk%&F_=V;24JdapEqtOf|@en@m#?M5f z(L9nPU|#qwlwYH*B*%f^@#nYbFv%Gp_>R`!qW%BJt0C6mShTL0%Y2Bz%v+-)OzM;? zLGZr%AJNpOFs4qq5#&4A7Jo)_Nvc3bK>muBlZgBCe@9zL#3xq8>}SHaDPCtzGG{)G znfd#c@zYjn3QBw{bv*&OEL_r9~KJj?qMz3*(Mk%(+E_J6uGCkW*Uj;%QeTi`16XH zZX0XmS2bp)aq;IBGqXv=ykcfIiI~?OX80w{Bd>_|FqK!BC^zmNVt;*O53`TSQl$rG z`WtNbJ02N7&a?7wU7_Uhr!;A(IaR*%fMds9DZh@rp&6)CFWWki*ShChHSLo+Hg6 zE+LWUNHhI)oY%7Ozi3+=Df*ha5ac(wlkCgn#WbEH%^cQ>e}f&j&XHy*ll6(B)lp^@ zmyl?6l*l}}7V=a>uM-8&DMy(N+hji4Y^OY;)iGvoK(N&@BC}tyEFpfyvdmG|N>(h( zOnC$6&ShVy*zsl#6Irorvw(|Vv23%JiJW`3*-ov*+)p%nsFj%eiT-%%VeaYB*F-rI zTek>@P4hhjvY zv&@7y`AkKgd^4R1p9LNh&M|W+Mr1z6%;(}~KG!Uv7?Js0vynt(E-(j}$js-PTLOa5 z?9MmS-jZtrKkHp!<}i_OAS^T+NW}HVMdlERxZap=nyWBRmm;nuip)|WbS?33GcV3# z#I;0;S+<&2L(KF_vzm)P)2qw|iV-ut%8ZkUnO<#bU2+y!!)we`ChPq?*O-}1y4W)y z-0s(yvq?neYt2Ryk@-5akBO||_2w`Wehq+mt~bZI_FU)+K*%uJJio3%MzavM8 z_j2zvOSvfj>f?81?>1`#G1%&Evppc#>K=25$ui{x=>1~oYl)fpE@tLZ0^>ZS!U+Ghk4|6!h>cR7v(a@a|^^gXl`M`XNn_iFq3;G&g)?_ zjR_x5HMD9p^8$ine%ve#2#)y)vzp{;n%9$N3(0>-n#}={J4l{3GvAlJ*Fv5avw};w z4r1y-o-^x69tFW|`kdJuXw}4GdMIY=jqnR>s86do$YiPV60~{_Vp`4c2iO z=&Q|a3CJptm(5-#i^F1sE6pL2_0W6eB>0A{ImSfxzS5ljAsaL6{R7DJiaDD}mm+$9 z)huJOL`f;+zr=afY+%B-GF&Yx9cEiVs`h|ynwmWU`5H36X>JL~CXm%;Qm@=P;~?*v zX#tsbGkiKWOFv>U;hUNuD||J)RR>BF)bwD|0ZHONe+csU{%+ceIzmX z-2|6mlA|Cd1$tj&jx&)JTVtktEGxDz#C&F!Fp(AOH=CL8`Wy~1{boEM$ANrd4si)D z-Ggnf;VU z^fhEEeX_4Jq1AV08WY*qdUG}t-WPs8U2j%%QBD}+$EabmnM-&c^o3O&HajSf=xf*< zVp7FcT>5Hn)dZ4nArhY0y1irGwDhc>u0N3OL9I`1LwZg zY$CazR^3*!outW^9ujdx+G-9m;l1PDwACC7$Yap^xS97E8==2nC{{6v*b5Y^oJ8y? zid9R3D||WRQLH8=vObE{!-Q|06%Z4$wEl@(XOfl8gpV)|F_WxPF8+E>u&St)*zO5d z3lpCC186nb>Zce{`6<>I&%=&&n0bno@;RTWSiNB@gNYn-*eYbgGk*%L60I7F5t(BTTK)r#9pVwvvpPuT`_jwB-*Y`{n2D^aXC)6{@4Twt!YpD|ITN{`?q}g}=hy<-BHCGnw#txsZ8ZtAJv}*4fW0XR=871ID~3#O!Ca zFj=aY7lxD@_kmwZT3blcKt7)a@2j-(zQ(@fHPQiABNJYqG{|#+)e(@xKxSGa0m%Y6 z*fIxM#n^VA1#+mB%_V#^^o83r!^&qO=apeqFyZq$3tAmvwNQ+h*O68a&%-jG4>3nt z!vXm>NT%hklf7RJa*Q=QAmt#(S>;^9c(lP)mu=NDk>km>+L`e2+zzcyw1y}~jOQdP z;Tzf4QiwUpO69_i^Z0w%94nIvzt(yfVsfk^CVaI#4RVTAu}!O4Rvi;Lo>^80Z^ic0 z7ogQ_YnWohc;;Bzw{kpqZ8OJ83&>p{r&*<3{A2GKRuzdj(wnI30f6eB~18sS8jpl!d7)a!XWdlR?36N z1k8M~6(Kg9VpRq5;M2ETtR{--p_oNhdmsis!!EM=xcKMFDr-0pgU|J+-{XqD{%#Kr_~UMIT^O#omN{wP6w&6 z2DpTGzbK^41G(4QLUNcd37gmm!}r#}w=hJ4ZnayfO+lWv^0_EtyFX`@abd^0uOa3+t0vHDBa@zh;CJj>tzpV@ zBlM1UDwbR0lt+A0SZ*b6;q}2|9cEr`rEp>6!4WREvI5cv@}gD7MG+sjCf`I%AeZ66o za|u_&+;O$6vT6e{*lLy4Niok+%xbGI5c4jCFG;`h%zyeaorxS_zcoN2M)K1tpIhZj`1uR(NDo+b zO!!-aj)T{b3|Or^M)^0~^ZYl+S}RT>?t-qhhDmOO%+-)*t(EjU8=-P8-6>sb%_M1B z$B(^htvnKOS9Yyc#)Z`o$FtU|4+xHDtu+>qORj}GFjnCh?`!aHMM;NweQouS;NNCC z8f2X{L{bAIMES-V56Foi-&*xsd7k?phF@QSthZW89;H^_TiqnBB*WGq$)0z>bttsj zV2yEMv%u@s4VL={%N!QR%#GGe67hL(qm|8twK@~>Y_v)!M%?S(WL1!?gx;$acmpcz zz4)(ds(K9HD}9-a?+}<*5r~=m4z$7}z!s}6&{qk>{A6YQi6g93ZoU}4vkmgQ)k)Go z@`qJE&SP3YFwb9BCrKB`VrccZHA3<(#Z0ozzj&)pK&qjS9qid8-+?TFRy)|EfAg4M zK^_E|Y*+omWh)3CqY~{lChHT$Oq1*$E+H|~Bs(vZ2tBM1iJ4Bbi^HeJPLJYp&PqRmu$WM``ov{PP1Vu?eS*l>>Hppz+ zDFJyE#Ig%WPJ)=XKy15UGH*2p1n;za_5vnyuiVY9W+MCA%`TgQt$57)kY_i$WJeTP zpA@^Ai(j7&^ul=?PJ$6ku{uQXY9mV;hUhaKKt5*B==FP z{p=c&2SIR~?r&%8jIHQ8qMze_fMLxEsE4Uja|I?QRysN4OOv(;lJBBIX#; zYU(JA5U+@i6*5`W(3h#Z{G0EC$J$BLaD@D+bf^+rr88NVI0s@d&+&E+m(V>RxGj#i zODLw3@*HnhFp(?ac)KAWyFljS?H(rULt@O?_6QT+yAClY+FCM>NA{j$r*iRo&$06; zM)aQJ&-Bq^zP%<2zPaKQKjwLgIdy{Io;%AfW|`$I=Gqkj@nD2=?FJ_BcReW2X?9CM zu&-RZgGBUoy4@cT?CT6WV^^Fh?+bsmdZt~)WWAsHEPF5@nE7lwGs0Jt$eeHI1q3sn zV|O#DRMx`?@!V8khgED|Q2IltPeM(AO3AFqd!{$Z1T*DP|GKnM|?`>}#2F56Jl-SJ{Om zo8fcbB_LPZ3j%Tl$TfC934Yr85&oX<0(%P+xqhy*lcSiK3m!?Xvoiv69pt&*&STOQ z!m8r8`);sHNd60gt;+1`fM9)Yw41mnk3$Sz<=$j>1_Xb1bCYeFtcENGf4jZVE+7$A zz1c3~!s?7Q{EuBnF>R3f78qfr-9|BQP+yhyD9PI(_}RSD)-3Ex9>*%}d?tMFUdr;+ zFzHgnyl%4x0)q2eY^T|L%wmMM+Z_SH5mwtnB%)$>*@`3UjO(z*b_0UP%o@8eAWy=0 z?y(!WDA|{VlxIQiwcAO~2YCsk*6t;_nq-MROi~Tf0WtU4sV?hXxeufpp&XpekS~QcqmAto#4q?Yyx@APG=%xp0Eo8Fez2 zDYwFtYkN4*3hVQnJ#n;aa=zXPa?#YC`b?Q)%4m-RT z7rc(b@w{&5atRk+4&Nk%nAhzhCY1_)%N?&6U$+}bu7McbzuvTam@HAmwar`h5YNN5 z*Br=eapMEKDj>Le zKd@T^f~&XJ?&G371hdG85q@NkknDK}-0uYWSR9T0U;TV4#Q)Wg6!EL)&-@titLJ`S zTA(ky2KdsK*Fo@`X;Q?uLkH~qRGd4X*EKMn0lS=u{H4HGb_*BwJtF+&%U5>F3|6s_ z7|)=cMIy$t&MqJk;~BEsNW^%C?DTzk9x1KN@AWuTfW_$X6Y=r*za(}ebx%k!i(e5S@ zef?zDr}24-zJ9ig_eY6`wnFdELgruXT9Sm4kkStFyWPS>j%Tag9}pbRR$Dn>;&}eB zH7@>m{;-=##CXQ-h65*#=P!G7=EU(RPU=Bi#9LA)IhiC5jPPyfeUej6BF3EHG%=Cq zlqpUp6S;n-IDK6F5l(UP4(8(#BMdvU51BZ^L?=Ie;&_sr5+<@fNlpb5*;kTN$Hng} z$#D;z*w-#j#$gltn&zY&jv_NhoQ!~63u`{&6flu}X-*3lzc0;6$>5pAeqlISBx1ja zIt3&+cic~Hr-el97q*jo1kWS(3&$yD!bgbvspHh}7=LAYP6xHZ@6O?V>N)90P8`o} zPA-WU&vd7RM2u%oC*>&KN{nYur;S96C&lUE;`g573{s5fJ;f=^(~U1|?_L9~Cdwd4nrJoo7-)s}{SI_W1DWya{XnOK zNmruCJk#mn!nPo0p6LuR;oo({%m+KYS$xbQ^P$e@aVT(23w`|rF^BrS&!aIP=F1fz zxRs?;g5VkLFem+Z%(FfuVh(q5nDA=sz6ieQ?X(7De~_b`ZYFXa9^;H~@z>!oPFgk} z;oVn2UvSSM%PAsRh624G@02s?3W@QY;N+deXDU{2w$n%=R?CUb780=%a-8Cmc`LDg za-7~%xQO+Wv@ioJqKfC z#ZGtfned8bKz&YkS^|Q5Zk`ioA}e;5Gt9-W*jY~XT;98=SiUntA}V&SlW-cJg{ath zPDd^mQLzFi;dCydV&^;gB%)%4PB)3DSfSJSFWyR2tk9`G3kBYV0&~Z6_k~Uildh1c z;YCg-lO;;!l_BK}nEORe%h}j!nes3Q-Zi?&=_P3fIU8c;J6o8@BX*G!&c{}AA1rcQ zCd-sbSA~>9XjSB72c!h#5~nE83hR8iQxOnct5-M;0l67sN}Z0NK+LtyKtS$*m>V4B z966r5AZDTC2IK*dTbv9g{ND1DAXQEu6Sls$Tlp@h?Oa|}u}$xGdYE+iS2FiF z!z5x0-s>cshppuAM(=Z660rsEa|Q}{jM#$rIaL?%zQhV&>a>!G^?bimU&vbdN2CXx zW-k5_=|LwR5IiFN*BKxYN2Es__d?7gx8NhrOeS(GKjNfZBxCS+_=uAmkXN9Fk2<9R ziGw`mG%=A?ecb8h;#c)?Cu=^Ngc_IoL&-9v8SBjBA!R=DNj4f z#VGu05bqW~?W8f0`};Fa1rs^K=bW}c46e-QoE{$IkGa)Jy@Y2LE8ztvi-}wbFFFMz zVis*q8HpI-3a6Gt%xi^{@Nb@ZU)Xo>^Uexqm`PVi%yfk~J52o*_UsR!&h7snX(`4$ z^1h89Gx=D^{6(;pFDsqSZCbq|GEY7oT73hpUUB+ZOjk(AYtAqexqdqRR`Z}0o`t1c z3xeN&mU1`9CdmAz->L!RmkIJD$kqwc4l=0 z-$C>VVwG+y`+;Cp{Z^BY1aaX_=~7Mw!7B$Tg&_FUOv(ZfC)n5IY7jiX_logMt_Q() z`+Vff3n2K0nU8(>7zCe)ed5axATOuDcfWiIUk&eKg1$cWB?^){L1uv9lXMw#0>}X@ zrkGV#uCX;vML=>OW{uOpBp#Z14Xgx^&zugD(?HGw`P><1!hh9*+u}=SoJ4Gk0VnA) zwptR!wis}xlZb6G;G~m?Z86|va|ww$4>*Gqb2api+jPJgr5I890lykz3$As{%lTRr zTX3y2lSFKtwN4g^*g9W1c_d=%eC-sIh^;f|w33Lev(E2bY@Kg>5nJaQr<+=dt@Dl3 z&qWdY&NohS2^+H__MLB>94;ZT1^vuZmqInphiZH)`kLATg5P0~@*2qe2{C;jxaMVy z*cMXOK@8Se$}b?ee@O{n%YQp5B?^M~$9$Q*H^`;XYRJiFvygY2zjsQR&^=Fx`QA~k z;HyQC!6~8`G1DKMGKv|d zm>--PiV<_)=rmHyR)~2R@@#b4C`MFc#OWpx)fjOGxP(MCHaV?V;!NdL!4@%#$x|2b z=W*N1Pfj;$C69+c`>pVJ*aYK|k^*_~82*bNb0o+!5F_PZATNN7ikPV-AhWulKkPz zr64%MKb?U~BAhsMtTw^isACL!v(aI2k0O zhKifVB~er? z*%$44enw03B@G0REmM6t8U&xqNXY~F=)j;{4T9%f8FL#5p5vrE3bJlO=I21ZpCID+ zEL*LDm`xL6J_o^bu8jE|1Xt!R{+OrT09RHZ)7&vuXL&xI<|bc_>xT=TPp7$QOyY@a zpw(}%eXq?87%^?xnU3W`K#CA8_DiX2Xqi)KzJhRyD zrdvZIw!7&n3wVs!?xveVBDTBfCSS*6#CC^P>|fVpvE5B~I>m_XE@Q-YH{F>OBeuKg zW|4^PZo2s-V!K;z2^arNZM$_O;!JJ3J=9994ci}~I6h0c6}H8c+u;78AA^z%;`#Cb z$e%|l%Jd21LCl`MJPk4Xf$TFu(m_&vSwS)TP7sXQ&zCNU!QVyh?+()}#F!6o$4SJP z5A<7!F(2e=*Ym9-#+>fQpx~Gfche|FjQJ=(1_j5H>1I=m81pfH3<|~^>x&rkac%)? zCC`k<`!SzEEBwUj%hXYjEXZ@hb}=WorM&k<5tHp!Z<9IOZD6uY>Aex2uR@+|x3moB zzD&tm2xlUY6Wtajay%!wofIQlo#c*g)9Pe*=8c#~w#xBGco}5IbFP$yAb6yeau4Y*yfe>Tz=b`*#5&J&>zH&U%9s`|{##Av zxg8|p9VYYK9uo1MlX>m{7ytbv^V|`N5r6+;o~zu9W9|xN!Fccu5A)n~E@AQJlMCD& z67lAf3)})~b>Nrqi!o?b=q}*mzrW=|w~0i&zop3SClPN)DRM_h_JTb4WcCtQ`41n@ zi7+1gcErEkG!lI43$D6icQzOQul8K(7L%L+G5D#r#I0qrOqmaP?t}f}3b%!cTpL%q zolN*jxHTDmk>L*WJfYj6RV~O>?l{RqAPtb`Dp$LOjW7{wh+DAKO%w79{|iB-ZZ?l(M4iM%qu#vNwDNB9i1y2eeeDDokz2E9~GLdVe z%I#yq$1@DAs@$~2EOTNMwkcL)v71G*<9~Ra7rS{}{N5M4eN2`qHpKi0d2V-eZ^u0R zvnTHFceo{7lmj6KSIZs#Q8WVt_kufpIThp&$a9x3=aSUA%`6WeGk(6f-_5P&)ew1> zxkV%*&jW5ZiOAF7=G}p<;-PyX^G=K54zSx!@-T=F(&TO-X$9F6lhGx2jGaCNix@$T$1^|6qA&JybgIr z+zOIqzSNVn`O-@AnV+YdJ2#$G^JDub-kdGi{ zlUvS&Z)M!>o88*&q$wcy33{_T%A`vXcXxkuwL0vpOA(*!esr6d#6yM9S3mUiquWWc zfMkn1KynAkPj2{rKITVBesF@5$fZ)7-ce9zqL+?RfBanH_%_sTRmlBe{Kz?R16(m-(XjMmY5D30GXUyHg z#jn_yoBRN;nE1Rr=GKyk8jiWs>v=Uq4aeLp5>dmgZXt=N;U8`diKyY9Zaayn;ket& zMAmTJ9S+E(yAuk;}vBR-=gcu-{c*EP8a<{p7O30@V8 zkymk(y`=wQE4eKudnp0IyFHV=EGAtck!On6$|N4Dgv=IX-q9N&sRh{+B+&~uU}kyV z+1blr!k>vB3^6-o?LL$yP$zBzSIPWBT36Jvei1W^_UNwn0?`U2l zi8${V-t z@GIC8AkTDf`u}i*{OpNuW81^aVG<8bdW!$2qz$x3uGT} zgyc++LXiEuq{lIHopLEiF-V%1Msh32RUrF&`Am3yu=fMK5++@tM!ooCr-I;<^jt5Ck<7NR9^C1M=j0#Uyk6JP-)~x+dQVQnD|`l=B#N z&mkRJ<$0ad>J^B=Pd8_IeO#0-5d5ThmN!Py4{{{5I?Ky`iH}+AaRpu(7k)Qm2Hf%R z8kj5&{{yXX%=5fflEi2Eos)T9oJ0k|m`QKhTNe#&DAjMuYNh1gz zNiOyJnRJE3wdkc@ay#bf3W;mcOT8QtaV>hOm-Q--5!a$ucmpKjTC~(l?%?BTg}(3@ zRq7RyyaaL&jOS{voJpnf3XSJlZ-C?-5d4pRE>oxfB!krHrHxWCi3| zb!wK9=yj` z=WXGlY=S&LLSOfL?%UWq@9R&HWnKo8^&zppKj7u_80F~YAw`2~5Bay$>H(_`_Zi6M58n*sBf*9{C^knwWGYUIlsZ>Cz)!JISpe_{{DRuZIh}wy~i1 zN4=qUu&-4++z&B(fjs85y^j(PJppnM$m3ogNhe4q$P?Zu$rm6egZ!VTeZX7&0&)h( zQ(kc|7kqkhF38i~APGLNECOlql0M=wJH8N7t^j$?b3f)X9Ry>Rd!3(f!6%p~FM7iy z_@oBqB`>*;#~cE!ZUkB3r8AKgYxi22@U4T}tKI8iB99v@y&)2D+*s+2lZfNSO0Vft z?5iszjvKFeIcvCx<3^`f$VA@r?DWc+$WPgCdbQh0({|Fno%Aq~*R*eXL)*oSZ5NaD z8ICa6`*bF9gl~G8+r+%(r->GwDjq zSi#S6tGz-l{ubc_L)_UR|sJPc0$nz}7+n)P5uRPx2dPb&aPC$QphE@|l;yq$@G`Relflb1#GB!_{z2 zHwC^e=FR5fXa3xC*YbJc-S`2>^M%*UM9%9=uY(EyBsB%@tAFVYFlOLv%aK}ybgj#$hBS$$veIjl6>Mz85d%F9PZ0_vZFLWdoP8U#8~=>%!AJdcZ!uV z=}PQ`-mw}tT7;heV7K8(<>O7tz=jCVYgokS7{T{SkZbN<1DihZ;unp zB@yrKabiUzInWAMixVs3;?K*8wKL%rdldR|V zPCLY;#G1H-#R^Y}wUdYyo)YUJ5vw;PHc0X^j1YghkP;gu5i2t#7XFF#9u_MzCFXKb z-i229ZMu|L4j2EM4=J%4irMoHxKd^#O#YeA;zz6@lT?zwK~{t870V(q-hyvhg6tj3 zC)pdM4`iQMDajEOlNzfg$sw5$Ya}@vWG%GXH`d3bQn?)DGY#&K#m1S)?Y@63`4=`q zHVgbM!~U@aOu7=Qp%v~I2ga&N@Gc*h1}^^lgb$4MlZf;3%-9$gf4k3&O&`U+_;&ve zMtD#xo5><&3G_AhD7eoSD`X;%0EfgD@EA5ij5#D$%S7J2OpmpYh`X1E`g_46ka-jI zl@aS^G0T+qL4E}}A{PEt&V6z%{4y~%lL_1jq*lkohMCCE4#&o{-()L%N6@jc^ngSm z&vCKbfb0R19jjszPn^1npNVo}bxh>7L{6-YM0|TcCpJJLzCWK6OZpvqm(OlaiRF@r z>y1-lMNHzM{h%+r-Z&*z%Y;|;NEpwlv6g@w2Qn+xPp!oBlsT~x67j5LPRty`-sArD z#++CNlP*PkYjI92pG15|ac-=ML|l{1jcp+j*Ccae>04Q5f6Q}Z1x(~xJuOzsgwF!+ zW1kjlW+Hz%l^g5f!hR=(Zz;@;jggF=&CiUd$CCeGHS~Y&b$Tp~MBJZ0BbGxV?$4hY z>md<$3(t<3e`1~`%1&{34-C}s>{vP%|EltwSRoTW=4^O!drqv1Nmrr+t?)YPyjVR+ zDhM7k&x^G%k#j#U))~liHuQB~Y;>H@LVP=-FqZrm7xC?g3u9@2a}nQ;xFnYQ4@x{F zzUOdxtd2=nVmtJHIb^;v)=aY6mkuU;7FV;Fy3kILrz<3SUl1E15xrj*YujJ)uCfR zF!N)vAtv!q4oOpNdNRhq73@4XLe7BuW3e1Ap?MI4-<|uvSP#jiAUK}p*eFQ_2#%*Y zmbxp;6S|W!KNBk^Sw^j%i`9`lN3EWV#hJuID?#x7^YWM*;q$_0H#o1CVud7cLrnAT zD9t3|uJy~YA(F2k2Jdyh5*sJk2!hva9kEiCXP)#f&-_}fi6rLBAj!cXc*XcyEJ5R~ z=7LOKg5NmIW6~88_t4&m6;sRw5Q8h~jaW02)gkeTqchgYTP0o&G5DFNGuBV7%0PC8 z%$+e!=Y2f{f^%OL%Vu)F@*Ic;F{@(5B(H$jAn{l&Ne>AAoyV?N6Uh+Bo)GhPY?R~= zko`g4iTyva?msTGG5;U<$u#308bWAII_EyW&$%07LRLn6+SSkyLOT;;+L@4*nUGRR_0aPw=y^D`l8a26 z_fva9!qVo$)X2fCADK2Er{;4Je`mZB`uQX^BbC+kDs;b(rj`kbP$G?{R&#lI4@#ub z)CR1fL>f(P!+t1#MpH*j-gDfZ1LFGmELF3F=pgLs{X8`n<#?2_)L~cDECZ>AJ^Uhd z2Bi{&T?t>N_WGjcwm^X4zrNY+AcIG;8j`0_zDk|ot;E@2{fwt7G1iX|_Sb>&)Eq8- zan#S(sl_PN&o`-6p;qkEhTBpbLQ)6&JdrvXl0AKRn~@qxliNBv2EX~4TFT|i;4{fP zQ!7#EGs!zsYf$L&n*<+4`!ajrN&J5w_jux<6ldGNPCcBDH~t5N8$ zLOWB-4&gPyXPbAX)(Dxaz9EurXKEA50uXk7cBZy-`7-!-9;Z@!Q0UXnQ>jBJ^l9g* z)NvufXPduIok5{bGEb)_9?JITONBnk{8OsQrEl&ruyyv%^XJqoloJCf5E6Wn`RCN) zba7ntN#WVLy5GT+7+s4g__;ew8KO{^!91CT7W{|HJhWBqR@BE z=BR~-^Hvf1X4&p)tq_I2BeuIbghJm4i>Q%>Vq5h6ueoX#3Vlax4>b>kz7e*kT8%>A z2uo1=x%AE*!VyeRM})+E4e~e~SAv?5!L}vN20PMuY8n@K3V^@Sv+o!tswF7&ZMc2Z zv?IhG(s$qXQG2=c#_4au+XLulUp3)KR2miOf>Y^-!n%AM`05zXWqw*EV z+aL$36)5xm1=kqJ@6;xgg&?1T%vZZn{sb}(lA?~HTnoZ-{$MrnD7N)Rr43|Y0eq@n zO+$GLYgDxYWg6sL=tomqP}IRVWeOy!PM~Ch{0yS2NtvSOd=U0l-%zW5FXViXxZB}L zT-i(pX)b*VeGljeHRo8?bDy#SzGcI{ z^^>XApakFXQJYcd8$FBEPA%@Q@~IB}j|0%6zTDQYIl=OB9?0#AQx5y~EKi|a67 ztwA{yJA zgk70usv{`xgRm>}EOqPz(epPTwb0MmYWDvL`4MaWq!y#>{SNFQ)GSr&QEZSqL5kEi zltmyLLC#gjQBDPE2PszLb41T2AWwr_pr)Z*1M(tBiQ0p*9%KMyrJC>u(W(vPeUOXP zERe-!<^2d(x7xm+zk`358zok8gtGOsNf8C?jq0szwuR6p<9>u-tG}h4E^njXvs_2>K zrdD+Vh32MKwKiYW(470AI)Fm^{E#}qMb2Ljs~M+>R+Ki6s(D;w+H6wGgam2Ru2yl8 zY16LOb7@rGg%PZTv1nJ@Q2qnLKHu_~+K-a(u8_yoag+rh*Fvi&)X3>L^MJe7gurK&FJmxy!`2qTW%f&*rV-)L`+n}In!`oxGfSIK)v}Q6*#Q5(gKGXs^i1#TzEJZ}=zZOnY8wi@uiK`& zOGPVsBAZk*QRs>6KWZ))c@KW47KMbpi~CNk2nl;Sp28JK-|T$`Ub)ry? z&C>c&D97Tp5fsYa+1kjtVq287bF`lGgizA%uB8++>5bd}eevm<-L)nZ4`d-6X+-Ph zBF-v%|1(z`=h7D(`ySd13LX0%TE_WeTXdv*YJ(_r6bV|=1)_$IVxE?PLPxQeR)j)F zvA5QQLPwFP^>XQrqkT@)#<7OhwEJl0aS@JUeIwT;z2a)k?WEDtS9lLgrG>i?mKI4GO#FFM*yHX;WOp^>Yo#aaz*ltREpaf&8CVACe6q zxte(e-qVg?IbBOyBU(|CoS{{tP?8jA6I|qKut3YGVy(p4cmR(5Y^{h( z-`xA)JU;=lR4YfBb)ERU@lve@OYO_B?oj*3Ly{%W|y;YmS1N z=in%oYojP9gY<&@S&P3$Z0kIb0gx414$9>qLm(@)7A~^qQmvDVxO&+;>QZfxOJDGY z^FnO`h2C&psLi0z8_o;0-R2 z9rknRhwzzGSXo`9wV}{&EL@@uqR^YkOSCZ*dNX;cHjP4m>o3=ms>MFjTgTN}78h~- zdAC0!?KX#KNRtL4%gcMqKTAE2LgT0hD|An|{PzaeT< zT;NwtK<0t0*OIPh{Rr6?}el}yxOImeESk24Y zFv`nNlMUPI(`HZxQTjElR`l~R%4=E<$^^=QRuqz4=;uwX7G(x&-qJck!fM{pMo{K| z9H*QH@}8#LB(}xmPawlu8cG`0e5e(Kgw=ecRii9{8kW7IS_{fDluxx@lrm?==kP176y-^*`C4lY39I==8$x*= zYA%JIC$!{S#I~6H9%{C01t|SkvqP&639FgZI#Aw$n!iFn-)ZA0N9`eGN=vR2Ju_ir z`h%8*G6t=7&x9u+tr%qz21Z1yh8%jeUy(pUl8ATZed7QUOx=n2TYph9( zR-+`2!n;$bNsP9mECAU8vTt+<NWJL!T99`^lA|uleIOr! z92Ct%c@cztBXxeX9OW~RF{nw2wxZ1X6#m^ekb|Qo>qXBt$P|bc?MKN4nE}zG4Y!M$ zi$G>K!m~^?{th930of14i>7h8Lt&B%vLM=xawQ1+cIRQyDU@muA8HmxTN_wEcPKZ3 z90hVzbQ0w*kmEp(j%NK`)U<;<4S#bwCOV0-1tb@07DWpiMa?h>+g5foeuI$jKu(96 z6QWsM8kISp!IJ{WAEGTGDFOLov=?O`sJR5>#Asd<>!(qf4{`;_;%GUF2XYO_NzrDM zBSC6G@}grXXMy|;WJxslPO(3ifHZ)d5>@UJvJT{4ko;&Fmqz6-5cXS4r$-x5o&b3m zYR-s`a9OX6f(*dBi-KtK-K-z@W+KSrP*V`i&$3B%I=>FIV)PTQ5;t) z%GuH6M}!;(Pd2PoVYK!MAxA<@C-nTMXyTJXazWVqzBKBhEJaxs%|^Kdr6^j6vKHhy z=;xeh4Hx;Y`@HBB7rD+nFBZ|-Bz5BrSt`O#{Wr$E@duk)h~ zLW0kNo*y0MB0dZHGHm^VXnrT_S#GN&TEaza>rJRBi4Jn!6Xv)`It5gkL>drWL= zMRb~r_$)Dd)>{!xc#8FWhjIwid@0 z#iAJnXg_M-e7`bhz~COQ@p9pu_*WV6^7tI59t{(2Hk3(5DeKQ+<(ka*DQ zhG-SanXo^HgVaV_Lb4e8xhdKol1!+%B|3$20iNeuqlsN&>rB{ru8*dnTnfU@^BvLL zkg)UI5G_Hef*N+78>2NLVdr^6v?C^$ESO-H#2gq`P> zXhBHWdA>hd9TIk)ABeVxim#B0*I^hHj~6nEw3 zXs!_c_JIA{I-8@FD4i#W&zw9Htw(ujsd(G`Otc;4U6f~|{U}d?TnDrHbJ4Mouy01c z5KZr9`_rd9^#}MY7HsRqXnja-hMFzW4ixqYTb2^9L?=VSTD=m@e_r%MpTd1DT82WO z!X1d#a1qD80$L43Tew`W?1J+H%X#IEXs2iuoQ*f41K1B8`y0_Q6gtv3qBAITHr|XT zydd_6y@6rp@L$ma6m~Y)vA-2qU87>`32@7NO8_4M*#^h~p}S zF&&Qfh??Li-j5DpE83s;qf;n!Tpvc`d&IWrxIT>LpwMxRL<>;pC_ajoli*Q&934QR zqxdvB6B2e5pGH$&65FDq7>j0d5l3+;9K~3)SkweZ@kO)}ThUQ`5p6@EqxdS?g+fR1 zRkR<4j$%AIj6z58b#x{q>{|UMnzlvkAzhi(J}Wy*uMP?8XSUuD64q+A-WC$pYL4C$64olB4~2xais<7ZVXfxsN-sMKxzBs* zNg-ja_SD^wuvQ6rc1YN^_Rk3Pud%iv!^*;k(s68uU} zk{-X6?ctYkkHXd41g(Zma#^Pw4RSAtrdOhz1%DHM5G1O%h2(J%T^~mI1GL%< zV(2p{c_6Hnp(nq>&%DBfwKDZwl%pVjSdFDuhlJJGdMnDA*pH)+g@o0(dZb_Uyu48C zv!|z_6hW)!p~lw>LedKo(<@O{Kn;82nx;3Qlm*f+B=Rx5^=E0ErjMemf*SVO!Zdvv zr5Z%kB)rP@r%$2p@TTc$uLCif~On3^-UoMf+T|+t9PNy2Z@3#(q}^A zf*hwO|4X!DHHU&^>***_kPMLH^==d&WD!V?o-!y}rGxwtZ2&P1u})w48q21tseQ1Z3})a6J##$IRm8|gzfWndR|EKL9W-kxb(%byL&0fI$ay# z`y717@J2lgh3@y-V08MS=kuXetzIK);)X#k2Dw>pLKz2PV{x-SiSh%;WxS^1W40~v z*OO~OZqZx0tW!?;8r~Iv+@^POT(``7hh zl+}Su35mM~77D?jCxNW#2S`kKSHa2>oZtGsWq%8jr08p);7a>x{$d0p;ayH>#$zHMZOIi z)=RmFac4;~tapZlt*GDEhq&Cpzbk#kdgL2%Ht32P(KAu#iuy>e zK%pz@W4#%LuBeaoUKF~bKGr8u=!*JSub2?qqBZ2ldVNUPczvR`3*j@7au@tfN*~4= z8o^I>Z9D5nrr)P}K9>gNciZ62614hMpWq@!@Ia8y^n`C&D>2JhAYbZvTy9X#hgR&0 z+J<*Z@9foq)bg5j%FQ5bHs7YVaOsr$~2)lQ->BHFS zAA5>BZks-dvfnPT2H2)YcJT8vw;NiqyKJ?9hu)ssbq&!v9?cwyhm{8<)Pg zzhTci^l_91lu6zFj-S;aCH|x52;tY*8L;*5^o*UNhOV)ldL0Tq0qxY2rg%+|5<7!j zWx2t=6H2mm-rcy*Q$Y>8E7=-S3cClHd>_=X`-`2iAM|wG)<2-1rLc!T1T}1qV>P=1 zVR!ENP_s)f#a7QjE7tS0UW2j~gthunZ{i~FogeiME+Vzqo${mJ9};$_{8t|n{U~&# zyBXEri!(-BpJlXgk#}6Y(G?QbPsAAFvNb~IXPz;^rB|UlZk~~_OY}_VXP%MHMP%<~ z(9d2*Zb;ZZ?_*SQk$3n0Mgx~#h3?9Oj7~0n3f&h68AB*EI`fVGpTySbJf|4(KMSF= znqm~7&{;j$s70X>JlN>x(i?a7cKC}J?BT&i#tiGHH*OWkO(3dKhH@jwZCpxzVKs7f zp&1ig4!SKvIemFFU(0)q4maTMjN)G^~PyN zHws-prx`=oiq;#a8S!)29`^B3X7ktSMj8sOH%>Q-P-wkzhEaz?>x}}VABEN%XBv|z zwB9(=NZws+i`E-w8aXJm-Z<09iijFoZ=7iqhJ>v*&N3>5@VVeYxChTRTCj%ZfAJ^8%yjGBO^iVGv&{pjhwxN zQ2zYcXh5O-Sz+{|Q2wki;`e5)Fj|EKNwU)D5)vfIN@D

j`s}1dd-=5X0jW#awtX^$& zbCGBDYGX)9a8|D|#)SlD^%`Rah0f|VM$&;|59zF4W4K)8S-sZC4hcJ}*BOOeD3lVzMgt0^#D_)?3Z=wHMxrnJp_KT<$VZ`+_|&LCp_KUC z=s=;A_|h0gp_KUANREk~DJ3S1PA>BNd~3v~u^Kt1-x|pwVJY#gQ4$iC5<83p@CP8F?s_5>rM63Z=x9(SkxLF=gbWi+(62ri|i{ zu$1`Ts1m|cVgT;$AB;Avp_JHV404g=MmiUn62BOETx3ej zGRwHgl$d2^Wr%&Il!!O;jub*E5pOo5P)f`;2T&*_W}68|$^Bth%WSini%f~xW&;tz37KhLNzl` zC?%q14GN`%VfLa>N?7JN3Z;Z&n#YKqDJ6U}4~0@MJbVKwqy&Tl*lx@L&8$xXmeNyPl=DPi4)C!E;1!fG@Ek7)+r@&&5}O~p_Irq zJ5eYl7Mo)zloE?g^F-E4UQvt9b}lj{7Mnd>WJ)YHhlKp#g%<04byWHTouEG14ci@3*mY(+_O zmD!3y*UwdEH@2cAxyqbCp(I&jCgrm|lu5G2%t4_fsWK~2C`qn1J5VS|t}%yEC`qm{ zmD5DelqA=fX(*H=*O*f%lqA=fiKmNJOjwd!Yo-a|N%A!$K($$jHIyW4&1x?4nqO-+ zagj-~*6augOOhIMl#5J~T62brOp?EuDQAfNp*PZhGbhdzLP>I~IdirUN|Ia6yh0(A zB)6GWD3m0(ncZCE6?L1L{wLN-CdqAP4i}jux0yvkf+VRo%Y_6J(cgv5N6)2P>Pnb<8lqCN!hfpX< zI?WjrN|McH);XeQN|I;IDK7H-bep;7vKl$2-DXipSW0x8Z6RSP@x0m3MW)2_<`@^5 z5-*rDD3lT}m`UfcZS@5y@q(F-LMicrnJXlCckzN*ghJQG3uXnjqLg^SY(=4zc+ng{ zp{J4;%^4I*i5@epSnLm_#7kx=3Z=vrvmS*~VvE^@LMgGu97Ca$*kblvAbO^h*kX=^ zgr&sG=Clx=5estY?`L zZ)coEJ~No z^#z}JiMLE4L6XE<*(j7G@m3+WqV-0+Rfa;>PrOxwttd(2txgn5lG)Y>3MI*GD`7R? zABB=+j+KQ%NwT|Di9$&dv06|lNg`H13MEOznnIx@iCAS7Vq26X5vw*NEJ@~CtwMN` z%()w$yRAX2p(NSUn&z@zdFEUAd<)d39bayO1Ofxk{P91W=L2@=~e+3nNhY?&P8Ta%&O-iGb&~kUnR~4 zWmK9~UL}MwD$VLap^RE!O`=dnEwIwBmV3yq!v$6=7rByIV0Cek8MVL~6cS|AA=a3X zAfpbkrcvk`JH$%7M(iPF)FGD1MP}5YR#r$@MjdVyaFH2xq*cj9X4H{ZCkm}(jNu+tg)-`RYZ!$xD#uEz7Clo&ooE%JP)04b+E6H?PPWET zD5I8G32Q|^lu@TzxhRxTr(5MHlu>6|9VnDhg;wQttRH!PmRbW`Wd1C*Mnl5#XQ`ET zJ!>UvmRWgRWd1C(O1a4VDYB|jXeCo*H3Lf1x-HI1z( ze~K)(hV5Zr@E7oNtb7#8pL48g6w04-tqv5*pYyB<6w04sE9nN&Gv!aQm4!n2Q*4!@ zQ2rEK)9XYl${*9AuFLt^h`Cb-BX>98Vq zvHg)r@|5LrkxBBDHQg-snUdsbD{`L@N|L9oLKI4p%~mZ6CCO&1pNqVrHe2~EV(XM7 zo2?QqGD$XDRYHO!>9XpD1WD3mwW83K&}DUFKa?b0)*u&|B+ppmAz?|vI7s~LrI zW84}+q1^b|ir*x9rrh}2N<*RC_}VH&q1^b|>TDOSC^x>g21CMf;~Q&22+xgj$c=4Q z@?)YE<;H}S%|(vagjL8z=Ej6o9uk%tJFFHiGBg53Dost^+7 z#?MwQ3S9|5TP@fR<;KreCl{F;GuA*zSZ@4kjd77@b(S4@itVAyjahaH3Z=vxy9U6HL2PNRSDpJ%~b?VA>PdiZa2pm1o)3`+~pXnRc>} z;8P!_orgke3CpfPp-iysHWbPP+a5uoOmOU!=lHgQPkp#{4hm(0YnP!=Cb)JJ3T1+8 zPoq#KxOP&v=$Q%21kX+v!ZTqlWP)!OVGU(M%&y@g$17$xbCH=4vpYk=GT{(=jEl^K z!)@hxwsn~aN7)(|nF&YPi9KQuDHAenZHo}fgiN~}g)-r2y9I?Z;b?o5i@3ka;AoGw z<6ma|h!sAQEISK@jh7B`oLz{*?zp?)Y#eV_ps@4IYEH1tUeOO5LDo->or}U&_)Jc; z%TU-I$6B3akDy!*cfs-St?)cMd8_D$jTfsq#V$i(qs%1Vu1C2RS}{4@?nGgC<;J_= z7q{$5lv|-@6Uf`vs+=Fa?3hi-}2B`T5)GV`mUJ*6yu4Fx*XOD4__t*LMbV%4e zc)p$8&sxcv3+!Sp;vPH(j_U%uii>;?x!i6*p>O9cx7&pT_uz7S0EOW`V%MY4cQ7xt$5H4zn3vf}uZwNb-Mz}rLZQ2R zm0coa?maMq?7MHP>+py!vM=C5`km-Wgx$QvM)_AnRmZKgBfvny5h4E96c9Iv+B zH$>0u7Yx|%6|A+JxXAC4*Vy@QvYNHZPUx9k3G3`}E-%kwzc2BxW8mM@v~&K&`&w#xiqHrc0bB7cog;aFba)wy*-XXqg-!KqtGbV+mW}}k;?Cp z)!SM~*!Rd9>?|(wTVr?HBX9F_sL(e7@3i~h5klVtyvxoS62k5{_HB#1?P4Ku>~}>* zVBDMSw0C(;+}UsxpK+PtBIlHQ?42+#`14zr`N1^*r0dN9@}7h0wh7sNL~_5Sn)$wM#~X&@8jb?&Tt{pG|h&N32F( zKb!1gF7o=>WLF9auAg?h4u!6tcDor{(e=}AcW{x{&trCfNZ9q$VUJ=zbp3SNlR|>) zr_)wG=0`D?uAfdj5rwXwPFq8v>!;IBN1^Md)6V81$E(vW3<(>r&2}vpIbP4%tz6`I z_1L{!?Rai6^zI&PP-e0Rt`Vd!zi?J*kzBS z(8^(#oj57BMJtD0wu?e5hac@~6k0j_Y`3G(%3;PHLZOwzj6EYHSUJqt3IE~S3Q}Um z)=(%DX6$qn%7hs^8-+4q#?BWKtQ=`ttqmBX+05Epqx z{c0C~$M#U>>aTVM7n!TS+I2#LTvePF6dHHM>BLr)tBTXlMdoUpGa3?>tMSe>_CvWE zaUwf^d&VM83JT?F#7RS;a~N^5Q0N>+oIDgdhY_cUi_F!CQxOuDt9v@FTx729?euVw zxtipRa*?^3d z4sbfS$niSB>E$BF>i}m&NbpR3pfiazG&%=5@jtVk<>(|kDIsB_GvCSJ(ie=o>g1x( zc&SdIkl+eeoiY>}FV(3+q483kIusf&)oDhd@lu_3E^@q7r#B>QymV)ZiySZ8Nt|KF zCC4k~q;rwu6?1C2$nlCfJ)$P~9&60W{8fwvjaQmetRz6seF}|Nnv=Af5E`!qP6Zb^ z4=!+8P-q@ZcP3D19$e@o&SL$D?-#JA<0G6j6q*N*bS6<~9?W!-;zcW(2ajOMYJlUz?BIm(8XA*_I zvtnz2CC<=X)^meG^I*Qyu!j(u2Me4@E^;0`%Sqak)yTWxEXNHAn+MNw%0t5D!Lyxu zE^;0`+iB+_=fOg!7lr1*LT5xsFb@_wGbl6<7CK1@Y=8QKPYD(}E(+ygp_3&fc#Bo& zl%dc(_$Q|Uh33IOIc+HP1ijQ5Mxl9dnKOw(^WeEo;XJ-S3eAJ(I~6E24_@HZpwK*c zfzysc^WX(eFAB|rB~Hp-qGy^1S2(#SG!L$H%28+@Tx==D~}caxU_Uy2u&j zB6Ia3X9`=1OOAPSw;)y^mioz>OOBo~>qtDVR`>_~;M zq`ln9y#x4p`@*LD)$#cNn7nC z9w>y8cCAy+MULQFXNHR$!L?3evS>vkxYlun1T)%oP8JG{*L6-lwxYT6I;Vt-9Ixx0 zs*tepTIV!iKQvx9JFP;3@w(aRLZR`x+3822@w(X=MxpV#*%?Qn@w(ZW<|4=IW+(A? z>`3K!{msedBFAgJQ^ZA%SEEzKMUGdaGsH!XSEG|~kT{1lUX4yoiVzyF4Nm*PLTJ1; zIK`?E8m}g&hl?DqCMR2CHFCU~oB}R#CDY`T2?@sQPNy1$#_LX}0b9{{-RZP(k>hoj z(-RUlUiUb|*bj}@{m!_MV7%^kW>9Fn?spQR{J7@Qc-`-$pwM{T@1&v7c-`-0agpP7 zzf%wrc7L@xHC*I)wK*+Z?-51n2vawYSjGs;D-WJa866k5rQIEm?O>+<^!BThOBtz<@= zTp__qX2dB%q5EsZDaTgyL_gxRpwLR@Bc~sQRx%$sBPg_z`PfM~OzaP>WIl0B6k5rA z=G39kO6Civ4TV-RUpieVw37MK8AYL$%$LqI3awhRHX1h~^HMElX)@kJ;uc&XG^bEFjnXBJAIb39}e(Mwo337FZQ;tI8zQd`(R+Otd zoF*GWeil&ia(VIe`T?s6tjC|7qmGbnTpcR2}1{PrB~a#B#}9PV<` zxX4`H<>Z8f4hnvi$FGAzBm+J}%#%nJ(3x&pOFEw_el)PxJ@5 zk>kZ!&^$QbO+P^hjn{m4?Ei$&c%`^GIZWg{nBrEU&=bAtj-b#ysJroh5Upq)G+hma z=0VGyM4@@mag+WiTG2e{yO}674=!*MPZTxm6DI7<_MvVG3eAIuxr4c)hUUSA?i32m zgGac@i$x91gGadqC^QfL-Yw@M=fPuKP=D}RIoQs?XbKN>FavoglwxZBHxY+F$5SmtGw;nvvpY9f*&^&mCTY^IK;2CZm3eAIOxUDEO51#4HpwK*cw(I7LZP7ef z=;ou)JXq*f3JK=HLbn!$=D|X@8HF;T&}~PdOel1_Q797%-2oxNJXq+ChlI_8e{$nb z<9o>G!HZ!YTCL&9>k*e%9>=(p2L+zJ#*+7h=$NRYH8ZW9V6ZHe24LT9za?Lwim zTH^Mj&{-{Uhq=h4EpaD9!jg8StDV7)R3`1kZWb4rwB>FQ7dbPQyPaHQ(w4guq9#b% zayRcRaYa$mUgnmcErgQxGFSPN5K7urZZQ`*f~(w7E^-7{xl`DRMsSszu$1=`%#5pD z4TWaL)ozB6U<6mYxm@H3R=C9>VIz2jTZ#S9c&%}3g#_cZ#%)HS@mk}yqtJM*al27y zywcuC-X15K6X2yHntQDe$X2uq` z7=>oWjcyGJ&5W&X4+_nU54&SrJcNm3c#!YVSg`$RL#>d^vi-ge3 z_@rCSMcxISZbL}e%-HFUgoMqEPq{N(xj6yTxW>+cW`xE>E&t^9Xg=WSsHwT4g z#%J6j6q*^k-Ch)WLVVF3MWLCo$DKr>nX$)BzC>)DX2u>j9ffAbEp9Ce&5XTnCkoAs zTip>9ni;pc@qghx2Q%YVHwlGi#;vZ4LYc7D%|f9}*y`q?P$q13i-ZI-<5ssaBy48v za~p*4nekSb8DDXGu!d&Fes`3MyrTNuqD$F6%Utbu%elxWj()cmYiMSC)om6vLDIhJ zcA(Ie@T%L3{m?VWtL`utnY6FDlObVA`-U4S=jSkZ26@X(77`@wTW%T(CGA^o77Cr! zx7>UbI;(HF#VB-E-*U^j$fSMCtqloF+99`#i%i;KcZiEj+K=2RE;4C9a`P@@MuZqwyLC}}@&r@6?a{lv|@g4M`(ai6&@DD({S zg*%8sN&A&MfkH_;?haOpekf_bai>ryX}7z{SBe@++DW(YDk0xs(thVQp-|FJxdm%P z4JGXlZY2sO?X=sBLP`6RJB&g}`(Jm8i%i;I-1aKgvrO7w-L$KPP}0VEGuH~Czca>r zL)AhkX(L|xS|;-EjC*(mT;!dyhgTXBmc4s;9U)=ayQeqEMP~1w-UJt!y$N3Yb!=Pm z^YaN_ijW|C6TB=G%H9O809#S^CU~VNbjKxlRoIHMH^FO1q3oUK4WZCe$vkfyg|c@q zFZp`DhYDry-d;KiW$(UTGYVzz{$3XfW$yuAKMG~<0p27EW$yuAq(*FuvNzc)L80tD z$g4-8?49p*p-}eD_eO;T**o8xM4{}R@5SH1w-vmxpYJ81P)f}AOcY9q`Cf*QAbaO~ z`5|H1o8pxT;o18DWbeUV6V_1nrg~jmYPD;G6E z_NrbD3S9}R*M$90_Nrbx7n!}9*BcU+y@oe}{m?4c@g{@>+3R@9jp7_q_Bvi73T3b3 zX()779WNb)&Z^^ObCKEWc!eQh+3S0?Tx9kh;~2p-{82nojP zNUs)!#_LG08C%hK9qDy&k>hog*B=r#UcdK7u^$?*Mc$;4V7wN2@wf4#2tJ9r$V)<@ z@ml1WC^TM+ybKf?uSH%C7dc*wyrPh>@jBkC<08lF4_+G=IbJ7u{aoaDo#bitY!Bsl zo#YjAk>dreZWm)gPbDXNLw5+F@jBTn|GN+xuRL#%i<~R-JhPG2$hq=VFBgU8%G13X z6q+jwycQIiE6?<*H;8^{t~}doMWMNJsn?G}bLBZ+;+>+E_nmlOcb->(LUZN$Uin?3 zhUUuUUIPlvm4EiSP-w1P=}n=~TzQcfxtsMP=gNz{_h#K}( z@;v0&WnSXFLTIl1tCzz?-UU~9g&|=x;}u>@NZ8C+>Gg1tGh?MU!bQ%ES9((@^i*=C zmvA53y8OGquBBoxYoTF(>` z%#5{Oc1YOFc#~HogwKqxz!i0~SBo_?Gv4C0agkTlEuQuO+q%rvTf7V|GFNZ$^00*69uaHE&GiPgvv-00dreo)BX}Gh>(6+aZL;tII2XQV5OLGhPoDIWs=vjd5Ae-voXN z_i4A6_)peqy;1_R6_YJq4i`Cl_Isr$G<&}8HK5S!`G(hlLbKKRb+4CK58ii)h_q?&EM618x>^bbYPYa>h^8>FNg=WtYZxn@Q&yT(M&7u{}o}*qi z3eBFMdnH`tw>HMSwl3DHL7|!PE3fStAv7~?^OB!sBA+6+ds$rMeX-rk4+)zqw|h+? zVRPlTUKbZRSAOdaaglT74sQa5=E@yj{BvyUa<1IrnJ6?@?(njN1asvMFCT^OxE)>z zwxYRmhu45YbLFJhjY4zfq&J8{bLD?LrCaO|&6VGI$tW~ee(zPI&|Ep~HKWj6`J>m4 zLUZMh-Vh4Sl|OnDC^T38?BzT!woY^9f4y=Pnk#?tnowx2{Ke}L63msqc!MZ3SN`IS zp-`&-;!UAYO8nx*zreRXmr~*vFG)x+SN`IqhlI_Qzj}E>_+0rd+;NIui8VA=#`(=$ zT^VL80;bonMKqXuN*s*Kv{K zb&%g05;k53``y?NjaSqk5E6`6)E`Bm@rwGBC^TMCU+L#Z8mt(jej*BuSJcJ?`3;fJi+5X58T;P{;kt4XkA9`Jk4$Yp2 z_#*>CXao=OE8Y}BBY3C}-NJu;^R~iF6n_tV?jn%4LD;|M8OZFpJL8l@UNgk|5l3o* zr27f~;yuSv&EbBxkh#?JLVpm2dS2*{a_Nmb40=8U`dR3w53+tl&&Plq=~r^;o4XQf z*uUd^tY3#x9!Lwy8W8r~?PL8;lHC{-0mUrB|Vv|MLgA$b07x{@DN2{K0Q|n{BH% zZY%Vh4F7WRiGCLs*(%o`;L^lqD7!$|zbv2YPod13634aJkG#W=V(vVU z58&UzUhJoEkv*T}XLD&((xB#I_^$m)ekn>ONCj-`WWNsOG?1%7^8AJ&*0a1XPVw8h z$evH}dqPqNtxoZ0xXAO9?^nOe`jM?p_nX23`*XVA%|*5<@XOv4XRPu{Sd~G~XZbxs zf-_&}r~mu6JumfhxX6B%`knt%Q{?ymPfd}ZIsDsx&h_)S$bQcCi~pyl*su7Xnqq(G zeX-BAa1PlhU*L~(k;lH=pWz}$dAXnX0c+JamqvNHZ=!61e%O^z;%A~f3&O615rt=TpAVk`#7ZqdS2mIe8{%ms2l^*2C~wx9uZOi z@(+*;{qB#16oYhwTcKq&;yazR_{85y9p`VXHD*WzIu`PD3ZUd?G+dgBmUU?E~egIkH4}|0w zkgNSkl+92x=U(`i2>kTVd8^>J4cGeBT;%<})^Fe^ zUU>_|0IBsWzW8m=xA=8j^GmiZ z+4HS_9v4}2tKaoMHTC`gmqz7t*ykm%t$Ke9#znFq2Aq`^-Z7p)Ekxe%n$Z$(K*xyv6!IdeQtSpzlq`pVa$)v-`>BS?#%9Fp}Q z5BN<_J8^Ao;ft;BWcg8a*OLy`&dj$h41uF&51yST^|+WY>vkl?q@ zKJaIR1Z%br{KTDXTk?~HANa12;PXfy__)%X_CueYONg~{Sr?%vvV>Td5and}W-D9_ zNmt>y zVt@9H6=6ST)rn8n>>H~?p=a~`VuL93Y`$Mi`B7}0p3ReD=_vGUzJII^g`UlmW0^mR zR`hH>KUR)H&*mwy4itJePl=79(6f0;EaPX<4?UZw#)eVoNnDG?&xjg&64zpdzc7K{ z8iMo8errgJRigYCqyx@;G?u2!gPPvBJ$J$H#>3e+W5p=@f~+`JQS4X)N(zb->p?M5 z+}H%lp(tJ~GfwpUdl1&MA1gpP0c+A?1G|ZuJgiv|o95CNJmVi4(`K=nKK?}C1N)pF z%M%iOTJ^A485faS15k5VOp9l&g!~)i$XF(qwfq_z1vxra&ZRH141U>+t-7;fwJ7u} zd|9y;6naOL73&fbe9|B*Hi$x3W>#z*ThS*CvSKqRbY*765@)kLY*a3XWB&&BCo5LR zMLb)v@mdrcK%p!1xY#rbU75$l66Wyp6a3akb}SEtuFT_OB`9=d=EM?q7p>^ZJTc~? z(3P1R%S53oGdEU_LRV&PtQLi?%#&hC5z#ZfHOh*18BK(vp~oLW#5_mdiz6QA=XwLiiOm1!w-0SP$0FJEBu# z6QUn}wOj^I(5J@Y_u$*&!k(#5k7aO?&(vqd^0~-o>SeKVE`7?>wm9WG7}I63CKQ%G zY~Cq~740p~7(GFs6Pwys2t7fc6KhHmLcb+=Zft6QA^(_&Qm9!KK@IOZ1uh} z)`B%>!|(Tg3H_{$B^)GLtpZ{Hy5EJdOq3fz=CyE{&uYY7$c0%VPsv*pfhU0e~XjmZ+iw8nB!?uS-PHpMDY9s$`7@?@-&%eu(e2W+Jc->Z!cU`;2~?1Gxj zG51i`^SU7CpNkc6S+6_~HOl>p@?5MMWh+PoThfK0}eV??Wb ztob39i*i25DyW%>HE>y{l!36L*exwSOYHOIAlHDzr|J z(*{wV#a3Ec{Bfey8`vtEmL3w;%1#?Xc^_)n9y)1CwrIuV*{k4RrAezo`3ieJG_3>W zCzSNG#N%13bqZTYv9oblTFVJc76znY;YBQ5fOqK4+LBhvD?tW)mDgioQs z`8gu33~TPMfnVT*j5;E1{9L|=!TW?G(i+a=TmOG#-G5x2zTVf5`?{|C$GOi*oa6AG8e-an^dzXgF5>U~e=)Xy`~Qn^{E7LL zr%~JIzX{sIXkpZ!&k}?@0g3s$gt*V^j`9x+ai3-!zOzMrRZ+Lm23#DTvrxB zPR4HRO6C8=G(p-?`%(VH3#f(iEc3dMX+nA?sJdqOGgwqzGyDZCs;(LS5*Ah041X<) zs%wUSrIh$J?F|1Ai#lFM$9t;s#AW;^X!E21t_J<77rJf!1V`~`zayk)f+}^4KUYeE zDs_y%SW3M1WBe^Fs`d*E*U&bND%i)kOa4a(YSp}4*UW-7sK~C_Guw+6C zkSEJub}_}cvt_2gK}e%U*O?chO*8#nmrzWjcJeHICX76@{m!LQ=nO)C1M3ujJ_}t@ zlbq(S7E-63gSvi2sk#1kmMb9I3VesoKfRFh)M?j4CPL2h=ShjLrt|#^gt#p{-(M|6 zzB8~tN}ccTWVs!A4uxFgPrOXFkR%AX)St&v4~asG{4E}#Qdjx6v(TFcl=)i!)XQZa zl4Bu@{6#GHAx_xj6NUgUl~=x_4~m0IB+WTAbmb)lv`>L2yUO^8|LPn|F8 zD#ID13i5>C&+|Y}fJYvOJnK)oQr5Kv zG0#BO`Aru3#IO_6>91k=1TjZr9=y8I(7Svd*X>nQb_f9h2-GYO6A>;8O} zZ79_X+2F7BNI&E)e-{f~F@6ep*FVHUSBxa@`BREz=2Nl~w5^c${n;M*5%QtGg=GkJ z{RR2VKg99}WS56E?Q4J9)iMvsUXXA7xhx4|QhxL|v+N2v2r<9IXv4%sa|$0K==l=NDUTngDYy^rN6 zZckeJD9cQiDe2P|$jl^E*P-co9-$Tx-4jE-$Vwmf2=(HWbp1M+he|Dl%vgT$NtKatC5wgj|>2?~!iE4e9>t zWuChc^A6u;&hi#wsD-Q2Q%hwY66)8Q^lX+7Ak?p? z)5|C;0V5!Uh0v(5%YTb7|R!E;X#l$(;IGecX%WV@@4uE3+<5f zw=%b-r`{qnPebO@5%W!YCJXJE6tg|OkVWU1Z_{g7Xcwici|^9ADr6p#T;%yaebTK` zq9{ej>zDMzDpxLs{Fa`$M9Oi9xdt+p-o`QuLeHsp2xL^tn0b)fA-+H-%cYP8NK#auB{0ZBJNEr3l^RG{DofEWK{H`eVCC(uJcgLbf!sT!&`CBzE&Yh@`~ zDMz4%k-%&r?n4H$ zQ7a`YP|Kp$#mRw{ENT^;9Oz(CbN=MO2#cEY*@4ssnOV*7(*s2;YCfM4Xkk(Fd2XQ3 zBQ&4S3MAew^QifJPC#c-vo|l0!=mQuxq%IhvXq*u`GKM)DQd1>5-7dL6`HG;1zPWw zqUP#Vfztb=sJVJwz~3xI&DF($4i+_6Zw{p0FJshPtq9bxsJXf%Fug|E#2V^NV zSC<8*wYWlawJuP+LW-KJcL#<&LUXk#(D1N~QFHZyfWA_SnyU{5+B`yY_2EF)BQi$K z)yD#rENW)923m!DpqWMO;p+o!ENb?y4|KDrJ$!v&3yYf1>jNo|%i7g^ z?hZICY7g%TD>tb_Yc#Vuv>*Axpz*ADxy7)Yhvep$^7heX7o|dB4 z#r8nqGg8#L_%YzLOHu1$B+$*G*2QSR|E!Er>tZa>#G+P#7VKqFs~|C0*&$1j&??w5 zxZp)8Y8C7pOzL!nR>8zzFN<0Qdj`v1k}+x(>>W&9?+UGg)L<`*S_PAWzL#Z;+OZD^ zX0fPsF*#T)#9bE$1}iy6t&0PLdY8;YLZfcJYNbpI4tj)Qjtq{yDr3~zF@mkH zxk76v94zgYqSlTREPY*yT07H&?JR1g939-iqSnRH!2uSv3XTq@_Q*VH6=Vjdv#2?L zVz8D)&G3_g-7IQ`&kT-ugl71x;IubnW;Mg-1anx_e9jJ*u&CL4TCi}VETv{|PO$kc zDQfnf9USX*g~ssQVA(rT)a<<|xbj^o58^ER9bzsIX7ou}1^Ee56x806l7O>0U8P(V z9A;57d_k~ulZ;U_yd=1lMa}TiVD|emM$PcDU?q#1;g!MR%`!&K@Ty?T$5PY`UmBeK zi7Pb2?+E$_q^KEQ9~@&*GrTd_`l*aj*Cb8BlFy{58QvUhXHoO{{@|bxcRoK59N`!> zpC1Tzd@l2-`TS6@eNc*;&yNLLzHo((#pA)PUrJH)xh>fGl`Ax#pAI%{m7?bJ^TE!q zrKtJ*VsMN_oeN$HPTeMB)C_+)=&-1B!OOwfENafb9L#4?=Yp4m3s}@Dcsba{qE^A{ z!G0EXE_fq2%A(fA#^CI4WP8-P;LTtQi&`mf1-G!MmGXAbw_TPZp_TG(a5{@xDengh zS=70pKiI&c*3JjP4iSQLE|0VA6kNU1~Lb9IX6aids$hozNd$p(FTJuya_7 zT20>ueLqW4t7$mc!J<~v&%xSXWQ$NQEd@)7uV^QmCs;(tcDR+GxqNfOH)YN=FM9*MRv-dDPhegfR z!}LNHH4hKdYgp8*J6s=RQM2U;J!!mbvzi-6>N<;RvtKV3;B zysozkaZ82t4IHET71FhxWGU4zQ%_-0{WA4wEUI6oKAT1LE26issD9acFN^AzqYtyF zenoZN_wSL9>6t(W`~H$LkoqmqqpKSbdO1_3K!Dghlo1 zSUq)TIU1^8$LmEbs$ZFUGmGli33?Zc>eq?7w#&a;c#@u*OyYjtbduh%j}UFoKX4a` zw|P&}TZPnXFaMpO{TK5&OYagQ-x^AI1fMDB`KeS&e%4=_g3lE65|2zk%qhCIzZ=uP z1Ku9dQ$1qui@%wuCr^^KZ$w?Yq0||AhY*=La}wSm*ZVzEg!lb(_1OownNv|JPapHh zfspg`i~~iC_8~IUr)C%E`9kWnPauaO<^sK&W9V!}Z+Ts$Pfepz<=VH1(GgRiuNG3J zjY25qVtva&GV>VACHjaI-wyxC&*LuDa}TDNMlBgaqk5^nQb?V)55z&{LS368^2Fb~ zxB$v~bWymy(_0Re{i3&_sHY{mbC{IVk%zu}a=o55jl}&N_69vy zNV#?~Vy;4|#d@odD(yN5{>?M6N8aLQAz(Q|$}IydUgLaKb9Rm!&!Zq)mw zXg46w9(Wpdqdp|0LP##!e3R}RA@eLn%z2P9y-P@yc0bh)snE9wsSrXjx9UE>=$G#r z^z?rCmd_yb(ZXeV2g`QIjgY(aJ|R`wFofPDtk=teGSBaj@ze1H zSRd7;jMv6#DUc?;*^sg)qyl-G_3p5g10nQ|eT!aeN=b(-Lh4J<)iuYqTYEF#Z+n39-1wkx_`P9dLKzjE=x7?NavR z2IXnQ$C=}_KFCXYsgQE54MOh`y{vZ#sS`q@(WOs4M%GR-)WTPFErX<7djawhVqVjW zSh^upSGV5I(#P_;J}RV6yC^q79E%>k?O4iFr+to?&rxcFJ}9J0#893$_2T1X%rA)9 z26;ZBgmKyrkazUiLaMa6I9^n$PuDXkrpmV;V(56ir)LVO6ThDKD`MW$TV;$8 z>emOld4kM54W+2>oAq2FRoZ_N@m>n@Y|)EYOvFej6H+c>#@A8I)RQPrkEY(c_(-2F zq)JG!U(-I)lTMa(Wg(CDD4vJw(^)Qn_#mI^%`C-`-5{Uo148iWHa^WD`CRwS57b18}svM#_BS*~=)AqV3UzGbhULZFEWTjk{BxyZ1J>vK)@OUPr0Djl^^1hz+m8Xe5zLW%=qg z>|r9Nh~*~;^>lBeQb@O^`o6c(#4%B1rZ>3uHab~Ojmw}E?Lx>Vk$IHml6aew&!hH~ zYu6yA^I*y|Bm_I#6WFmtDgAuWX6B`7-7q%y$}%R3lZ0 zdySN8WU;90pM8ydSxUTP_7m#b*QoZ$;;5$WXS7Sv+R(yL#O!Yjcx2pT_|CPFc!8{) zVs?Y18GesUhD69kmHOI8KZrL_FNA+$?#t+ zGK)O-3d!-vLy#<^MvCuul%kn1%V?9L?Kobp%2`GqOKMz(xzq*q^1CpzjO0sX-w#L3 zjz>|ROqLoP)6uHu;;Va}F`H%0>-dx=5pRMS#Zt5zQ0jB! znP+ry%)5x8wLH(*D#TsO^NdlBQ7dqgL)YMkULGD76i}ILBD&k?$dSMmNjjh}mTy z+-Vv~^JN~AgeiER%}8T;5kf02-!O%gYkiR4k>>(q^;NPIt+<_AabIb4dn8%NfJY`n z3XSQ-qEvjv6&cx5#7d#rQe>2RgxXwWv`EngQF{=1t~9zmF)<;79--NCl`-ZKnk~gf z>eW=cJ6ovHt{8e`HmvZrdCuQ5y^?rOTmC}2^m=~|y1f5Waa`<%8?RZgEts?QnaIyna;2`7^NJe&agKa%^Y(IV(1Ke zgRzxk)EV{$V@!x!`wd3&4emH!f!c2{{2rk>zu1`V5jtCy8eLK}+B4Vej=OcEUx<5@ zZ!{7YQ)c(g*qe+=LS#?JW2e2za6GaIwcl(MNb#M}Ew3EPjY^iY(Jxxv<;F^uT*P2w zhYWi1R3J~eF(xH`EN(F-m5QEfRmekg^%f&vifGR}ShQ3!A+da|56 zQ%t$G4w8u z?Jaj0O&-|=Px`%Pwh1w{hJLGTkKvP<>x`TwGDfwh&ZrhrrOm|nQ0;X_ zAII#*BVT817gDaxiRYPGEi=!L%L0}~anWy+F=cV7WLXAz5&fz&x>)XqP`?_DA(mBK zYPnIkROVSvg5$N^NWNXls}TC;)IG*DmbY2%HA+}EbE*4`T9z+J(9`>k#JgmkALHU@ z*=@o&tp_c<-)OCuG5fK!7{e@Skhc-@u#wgvV-De%M~&R&Qv49AYn4&dEX9gT^8HdW zG?KBOO+R~b%=j49%nCyY*(C9bTXm>w;N>`D=?}bW8^yx(-T8^I*lxkP@YaB&m)xQC1ZgQxkvqgJTDuyLV6O^{?lc& z%2L`8>Y{P(GP+slT1!giBh*5fheo5zXc1DboxZcYUw*~V9+k)4#1W)D{1qdYMa_g) zi~%7P+PNrIjhJr3_n6!Ff6&5i!|}+DtMD$UQS6ajA#WJX9!Z64H2OR;1=4FIwu;Q! zTGSPQylYJIhzaR49F`XmL$b-pVc7_o0qHl2gj8soAtypM8*QFE*^rNntwPGRFA+mm zUmqK3tEl#J?FYzNi220GVWA!SLdd7a@M_sYk|M~U;alSh?crY6fx6S zzJnw_j&CN0RPjy+G$1A3=G@S* zM?OPib3;j;)aG(+Xy*jYKu_m|iiK2Zv~Ns@oEsYQNEYP6P|izo#3*Ji75O*iJ zJk%y*;&cA;P`^iLpT8nB;t|@}ibBcjW#&$dd;v1g59M}Ac@sj{;qya9EFVDV>D>HK zgAh5NX`JVW+C6d=@?04j;8OoVDcWtW3YEShGdJQ`&^2Uns8vY0_8VeIt_}^cBu$jp zHrIqwUUf@Ro39Dwc!aJlt_?M?&^hip)P7y4S4w=HE(&dBIUQq2GhtC^jO7E&$`8H5B{YVyvwsMTx{Ypb)ENb^F4W)F;7OLH^G~^c|p99Q6ze+++w}n!LG-~%E^CslEEtIm6V(PTLLkZePc%ZN}WD3D&;t(32no#eXB9Ay; zpQBVwsJPb^dXlv)R4YV|&(DzB(2z&|hSZ0O-lkGAhGuwUsP!FJc3zFUiO{5XU6};A zKU5;5D*p7KB~;7u_8xM#X$iHme2bpaTx|&rOVN^cmDgG=q0~OnW^G>xT^qNAYJ`+) zheHlST`i$W?}?cBsICaBYPALEiE#iwS}qoG2MQLFpWP&JEM-H>~WwEYoN09h02NFE=Q@=kk>=g=ro37x(H(8`lcsTETk$v$KD84OVO4f=2?__ zBhew(z;B_-s8i zNr;T0-T2*5pOBt}vvF-q*JFL5VUKJ<=Dtw=R?5?p@G9z}E5`RiB`j(tyccR>Q8VGa zP}0{_s!{7hsn3yTQ>cYykflE~CZt{)hWrOHn?wF>R7&p8Bajb6*+SfYeH1G42=(IQ zP>n~HCgYAHl>H6msq(3_!$7EzMV%c6LS<64os(t120|?!q17}H>hQ=IbvqM|lcjz6*7FBposo8vb6?CH8Q-5*`Vq{NM^*36F&w zkIy1ThD zoW-&Xb$HvUOmM}=E{r_Ay!vn!-DJRqb_n}W{^QXw~m3q~mh@3$inSD5g$pg4_gY3AeMXf;2%|!_)t!m`3ec$QsB~;arxt zS)L9rVEGpE0%D#G*9fWC689LVy#eV6*Zkw=`2f-xZe^i7B*f*e}H0>w3dk9-+PN?Qq8qRH{ns zHnd~E6CPl>0(Jd^y50$ov6Mh)*1Z!>NtC51X8cnml`K^p^KQ7AMIHBd!<{VZxW5~& z98Y-~wR=!133>X$sXI!cnUD(E6z*Vo0x?HIJ`88?Bx7D=`6%2j#NFpV32zbN_WjfF zh)1aJpM_I=lt;$UKL2@miU;St*BzX<1g zg!cKb!i77_JZcQLg$GzZM8E8(@J-}!*)B3h?ep8i%`9qEzYTY?s8RhkoS8(W8nx}n zb2RdN7j9?ygJmc@bt1*c`9pV+KZG+qG6$u84Ci^|OvrG!SxC9IQ;NJp{5jkw#J!^a zIlP@k-N*eL)^?@3s(k8R@8@u;6iwZq{v0l0QTM06gjWi2?@vd<+ga58>967B-9%=M zO3_uyuiC-A()%){|xCFeD#+9}D++ z|mzs zA?vyk_bK$8WCznP#dj7;(Ya{{Gmm2)Moa~2-@zdq$)lWlFe3+&`j9f9AOzmsSebh zVy5m*byaC2EPI*LS$5uQoc1ze_BI!=(C6XI@Ua+sMVMLZ`t1TxLcmm;1LlN@d?;23o!e1uuUqISq5 z%#|$aImr=bC+C@qUi75nJu7p7DdUkZ%za zHuG8TVX@3ImUc)rO4()$%iEAJdJ#3dS+=trWo~Ej?JZ+wm`Ml7+K+(zin@+5{VWm4 zhjhou&B z9P(tFr7RCYsPAW(%`7xCX}!-ihop!#I0r{}u9p-3y$eCsV z%j=MHA!nIoERUw(9al)MIm)sLF;_z7nP!^o#Sny^fy^`WSpJ02jx^6KVM*CX?rihS zR+e;#EY-)76_-(#b0L#38uQGwgJfMLamiw7ic2xe3lO@Zo@X|(^g!snxOrw5OB$ZQ z$QEvA*^HQlqF?z3%euBfN`*8?iC-1WGgq^yIX}l$BwOOX+j(ZQ5clcjd1jlCM$JH;<)V~x2<2(iX0V)Z=CRC# zv>+zm+|JUAYyQU|7nr4o%2H<`W-a6*Q$I|~r~4*o9gqUEo#jfzybQV6>|?nO@+Ra` zQ=3Mm>hampIIZY<{04OhCEe*`xLX6O9deZ+gNF4w_mn- z9eO$$r7F#-=~6Nfa~R}SGlOLoM29Rf^M%NxbKg^Vc51GaqN%fIjoImuHHf*>bOMxF zp7rQFSZC%7anGK2nJp~p>{)Miv8c0Wy}8|!hpwXEb7d7 zkJ+VDDR)NQWA+Pa)C$ql8R+Rfrejb{qjnP{6LPOv$#NHj=Ei;I29^gQry!=;)Ize< zDhNGoe!y%JQm4HN$wkbArWU3c_pJA@IZ24yo`+3c#%TNfh0ocJz!Oe0Ur4>ygFKfY z&m(3t%X^Sr9Xw++yIDSg%ty>BGsUF3>b0$qg^!I2{TWK+C%_SZj8BV(8PiwdNL&(5G)tn`jLF^^8AeE}kbKPkUVG z=rjo#_LNH4lVXxA>V>TR0mM9OP8Wjv_xYYF|V1)F}FPw(``=k$gjxUV`fY76`}S&A#a!k zQnW=7s{IYKOGvqPD@1#mWaUw!&GBzrY%tq}$QDxO4Q8)Lc1Nj==5{Gs0%i++9`}}6 zIfL?)YY!sxeu#O?Y-ed>={0*<)wnpPSttsX@%=X3|L_#@CNhcR>ctG%4B#_`cP0 zA-*gTquq@$d;s!=IUuB5TL_`u=1VhkCdHI%pCb>=gs;pZmcLlGnhio^d#LuW%~mNQ zGtK91=9oulK7V6QI$6{%&cgJ5=6_7bBab7`kXazbw|ElXO9|m#*eqeGfzTT-Kbkcx z_dw{)v|+PFh&$(hGIM89UGDz#li4Li{@uxAcf$J{X6loRQR;WI!6O5Z zKg>4Hqdw{T)9e=FUV;2+4zs8$kTEmqRBDgA(~g;GLK?N-(4Mc6dCbi8$ZwDYtH2}U zpTRw&)i1;y!(FTmbH%7?pW^D`FFZrs#TpUfzE3jI@|`J0L-dqp)I@8VM_SObU9IUJ zq31ulS$Q5wLG8)bphpgY>}BPhCHkcue84!3WIt;_hK4+S@HX;PKw?(Ld6c<3VGHCA$aJef2)-Q*p;8%E`$e+N^uE@;kmIaDmR}K5dMNJN ztVsnj#y43?rZrngxwa?dQmot)Ed62;u=kEkz4*sS~U+mKl(TP}hmp5X)>x zE94|=(xtMle8^LfENie($^yvqkeOEQWm2jkFGFToV=N62+96N1hA)>fEs(bmGsl{K zg_I5azSe10wiKVbPdUvhY7eR;i5feTw#+fz@=O)xf2e-hpRzXyJv{c8;Mp+(<66(iVx)@NGjWtsQq9 zRx!(uoaYj&T8h{==AdPlSndBKTcv1IZo}S#JeOF$5|LTk@xXD~?n2U7_F=iya##+7 z?1z{_D_cmT7KPB8A(vUD9ytgxms_pZi_G!%6j_}@+J!qaorXL|pj45ScO#XO z5{AsT7I@@n$W>Oq5V^k24&hB6Ys4cbBj#Ew`6jpaGaw5szZBoE__X6hdd=#8;knB%=K0`OD$sP412w`MM``$Zm`fz z{OcKiA7XCByZWv?HV=2bXtOIPPQ%}egxq9}i9GHOd6SiVGxfA5fsX0bA||(-q+A^3 zn;7X6_!)^@0eSy*&f+~p5AH=3+b6~#6j|@NR^d% zE0yY*a2({bU2%!&T0hWCrbiD4dN@`?# zj^vnoty-2$j=9%LxkJXB%Q5#^ewIZXbD!15QpYjP)&`bGIHuVuxRdhWyZ^YZc?B)J z->MZN_oz1^4_IA7dM4aeoY-DWqFd z$9;vhK*nflZai!?v#4KYc-ZpQQXcnO^kHkZ6zxZ3?netBwkF+0F|y6S;90>+E5jpn zW%Y=a=aElP>QSq`UbJw+AIL-360KIRl=$CeXtgpML`?jzC#J+l zTV+)?%FJ`|wiwN*$E{`|<>LEjU!wNMt*tCO9Xd|?4)TQMUoJ|;_rujzQxi$Ike?8< z#%jKoMD}zJ{#TpT_CM0?5xPogv$lAI?&#NA!ychL&sd4~xtXcdGghics8qY9OYvD~ z^Mq&dE|!(ak_p*ONG{9j!{s}Q&sjyDJbQ_lHYxGrzRv0w;{GDXIxDx?ZBH1b)>)NO ze1)j%c*sjulMuJmOP2qBD&?MKUb682;$P2rdi#;qsVg@j53S|(@fdYRbA`@mb5PfM zD??=NNlrfg4DFB`tzseg--nIUE<>J;R@)<#2Y>qmvJmo?mHem_ z9da||ZOdet0om^`JSVXVS+XHZ5c958&GOFP3EG{IKC6%AT*NGgyl0KFTn2dnvdOA` zjOwb>sv(a;`mJ^$^;#2T4deqWr&YG674jTpv(+S|PFn|g9rBTtvP#Ch2YDCri8c1P zl&>J4LI$nvPe`F}Q~n3C)yiBW;_ zW0y#ike-A=54=Bdb{sf_w*=8cAF)V-AP>3OO|5 zutZp4Z^p)ou;lDvVWQnMj6&a)#mLdvxaE_G^T zc%v*e2ST-<7IEH`lFxb0h^%Izx+u@w$e1UF+H+PUzgL!;&w0*{w6oj{p}yxuhK1B= zwUFzvkDV8(e49#DX%9mZrr-`blJSm|r&;nNV=P?|nyVK?7WB!wK8D!Hd|{+PNR{>j zgsy)siX^@#^Gx*PxiMl2B3p#iiQjPh_;!4<7D?JfF?AaKh8xMHkqj34^}OqDz};x1 zh=qRliDIsZGz+QH(vX>U_4$!DA?_Xh{7A<8vW15u<^`6BYiBFK+cCOh-7Z2826mJFfx4$iQE(DjJ7b6Eu?3{ zM4x=G^14U?OCR#kwbpf!QkH?A0TZrt} ze8}~Y)iNewHpi4j`dH?<+f7#D81tmPq2qqV@#3rX3FB^U6p+i@KJmh-_z}Uk|4C zR74s+p;Gc`56!WPNSjCI;J;Nyx}|7OqV`I(ure|v#kUSZqj75_X+Y$`UmU@w+laX} zlEKmsX@FEkiiA}8^sn)34A-kmB9%hiGsu!ii;#NlN0hn`rItkU1}Sqr{#pjk=8&b4 zm0wEPIe<@`A$LT2zml>)WF2H#q+q+0X%NbDcckE3DHh~yNK<6?cT$dpd<3~S(l#XJ z6vz*dmPpq3QszPa3t17_Dx^-k7_wsr?gAos2^}qL(5{3`fvky?{VYqBKy1h}kx9Qx zxfPNH>4=Q5G(gUVbVf!-Wy}i56_Bn->K{^`f-Hh`M>_v2r4w>H@6YNeQ?#xWG zb9|J?y(USr3x(8cf1uPKD3xSqPmp!dOqj3^S2DIgNy^STu5uxJ*{Kty?9Z}~UCH8y z(ADz3wtrU{GlOM+djZR-kg3RXfZfS*K17EcXm=-5DLFHzLk_ZM??K|W`EWbmBj+II zaC@ak3LrJchs z*^Wo3RK(8q$Q-o8u?svxr5wA&BUCDC*Ls9X9c8cd2$ed@?(hhenr`=bgi0N4Z}kY3 zI@%uf2$edJch+tnGM&N*!ls3vr(x}ZxGU`9ckd2AICk@ z9`r~BoJ=upduG`qLhv`R zkQrYn)MnWk2Z}tt%OTCkJloEdqBUQYpgkm{*dvcaPO)pJ{k!&4?RFvf91VHaB4&=g zm1PO!IY_oW`-p$H=QKNCh}-7V?8KnVtXg=Qoh>Ea!qe?Sj=5?pKA%VC)9o^k3_#AX z`;C9MFvlKc+1L zYdx|v4$i=o}$vgv)%OIE7*&ewD za;aVDk;RZgyNu;al&XYWW)FJg4#?&9>WIutF^!Nb>=K)#4riBf+BH}^MRqq!l08m) z5HVNUnnN+}$X{ir2yti2Rd&*`GS5tuYDKB5>+L3wybQU)&N!a(G-}@?rU$av&h^N?MUTznn!5& ztFTRvP^k(#%Og~(($4n?m8!BAc!Ww-+0`DQQcLU>A@1?I&2AUs9dm_uAU&vdtuWL7MGUk4%OmdV-b>S#780xN;8UNxM%-omPR`3m|Rw5X*ANx#f7#%l6HcJ#B%|JZ!feA@2A* zYtNQ3@%N*iwJR@>r8c8fD>6T8`!1BVt6lvCJ5x%0SAWsYW+vGJ z*=VPEWEkL|4kNG!XrxuamoC`S&F`wF%LfoVCx!okBQKL6M4a9tIcX%WU8ML=}p1|fACmAVYF-EQNUI>@z<@9aL0R6u^ThlRLp z9o3IY?X2_&-EHmT zba{k6uS|6Ygve2)-@@J3$-9f{a=+!bpHs%N0JYO-?B}#f(e8lIUE6-n29CKNZI&@3 zEK4Btw+Z%h(&}aAlxF!XZa-(X6pcRHN_>f8G8;rp{2RmvIC(-UeA@l;mnRQ!76|E? z@Ca(Br%wkswNeste!-_$c+2Ymr=5j^u4rMJV|rw7$P}koNKXRAY(wpbIyD{{h8*s6aVdI3dooJ-oh=?Y z3=(j18>ue&J&rKMa29yvXh_(p72>YZ-FA|fi(ZJgYv{N;jxMB5 z8$(aeMX9LMDr4fmY8!KUrD(ezC69Z|(VOIGOom*7QZc7citq1xaiuJzlw;_aUL&OG z9$89#mVK1dCPlQT5-~?P8$5CcWQH^7ktRrnGxc7|Q?A{F+Ua;@I@v6DLg?w`2~H8q zgOHmrH%@d$gy5|+jQk_WbE1=cpKK4wGmx21R=X9r*<(GSKHj9z8viyDk{yw!q(#4WAS;-bD@!w!S z-5FsywT9l)$6ch8{Ge>}_xmLX$#MKFH1hP`*IZ|$MaKM!_I!i(oay);lA?~qnNFGz z+0&c%q?k;PG(gUB3c1vz>2fCII-M*Aq!;6y>uhJCZ`ISDkn5zZkfZT1ez{@SJxDU7 zh%q!Ql01)G1j%!X9+oX^MP_=J=0c~8rGw=nr-7vlLdU(pX=QnzqWx#SQ_J!-_PPSB zulY_Z%g+${p6`68lO+|U_D7!i&LGRjh@m}mzN0-RM@;=r`+O&jWtWfTua3`m92T{& z&UXq}=sVYREap3vENaJ|@2r**-?8UAy)0@b%y+hODL-0xkZ9qk5cdp=_N<~7x^F(r zcT6Gfjx^uN@(8Wd`A(ik=nCXYXMqqmbFt&Brp%368EOxs_F|`Vjg;k(qaas1B~Oyn zi#MX_&gB}XndJ$@&|Sc_PCv_w5PIISz!_$_2gmd{}gH-Osf(bmPz1|f~wDC7)eUhGV5ll@9K8t?o= zZgi?yQXwTMcC*v$5qkTm%xUw;pHb|CPB#mE;&T!5+~SyPDYJWYDx54K?p0HTlPAP| z=eEKr7UCX@3a9#iN;Pw-jX%nBcZIW>WfO$%#4DUmDHFCp=pDQYr(cLS^N z3Mb`hYO~v(N(cWh{`HKfzfeZs^>F1dj1QH%H6EkhC9aAK{eA)-HfwR2sJ@%LM8!-D zAP=ovSC0PwGM?TyrrP5%<4@t*s~x{+vpY9#b7p&lT6mk&A*3fk^PFdeeKE)66mJF!J;s^)jcEV^rUlIa^p% z-v8cY+JDDu1?+s3elz878ojxI7Bs`7Usqc->RxU-OaUJSvbVgZJ zFB+Y+=VVXSXe@Vh7Bw2noeUN=8q1w*7S+?`P63O0Uwye#%A(#pU+#>t(EI9((Vpc_ z>hrR8dS9JJqshq@BG1B0A@@29I7Y3e`ImNFbhD`0d%s#=B9D6nTU5+=bp%_SA+Adu!FWu3EkERF>*T1aBM1@ydM2tP=!!am zuBapEiaLT1Imw(^9l?j3sVwRUuHd@5$KQ|NC!wRf(s4wLTm|%vut%I6SxQsm^QcqI zqQ>Vjr$$QrdmO8rl^ml+W0lj%F>3a%a{5_RPgglZEUKrgoWvKz_{6_kvC5gmqI$Z@ zF@Qhvr6VxgHp?P=#yawbsBbB^{Rjl7%*^v3w}&Lkl{@tM%!I4o*> z);T#+;xpkzr-)OnB8PVL1i+A)U=%b83XhBe(@uU)@ftjENt?*PU(_)vq3B zP)hs=Zg569MjgQoPV!4~RjM=f24@emJ*gGKdXgOkgmda=PN79v|%f;)~4PK^{F z?elaGve9XgrQ&Z5ZFD+?xYvgpojxIr+HqI~t(eanowW7T!ba^3$diyaoh+6D$gFa_ z-|OTHaj*2=a>|6bncs36xYRW$)qW6_TJ4cXC*$tL>1Lr{AEIwgz3U8k+Y(gmzc?e^GUge?e1$x}I;lNwsqZ2Gbuxs=_WS|)%PEzj zJ&W&d-?A9bgq;B;CnRV~A>*Q}-=I8hshy(RrNm23h-PgNG1{|SDk++}QPeK(m#Oc& zNBu$?wasWD9rxX%nI56zzDG2lMIHCOq9q=oX=T8HuO>+_Xzs2o6x_W@!z5p-7^N_LZd;)!j-=`CLE8U%oG!j=DjU5 zt2|D$h(+abqFpR1&x~jvi^?-2TKo>>aYy60XoC=UJ|7ot71AjF5&^BR$$+u~24;IU!o@5sEo6+UgNHI$6=gKADF~(b1V1O%vj_XI9h^;QztOgt@&wh58FI1&5G>Cs+~?1K4|6CIP{+Xpj&>N+c$yoqYZ-?Yt; z-y=IKI+Z02G4$l^tf(Wz{k?*-;aWSnix$ev@wJ>6 zE%gXJNzRKlaVhl|OwNsVv#7sda&B}?NlqK9|`Eqk3_41Iw|foqprxlIReNjhGaSb73^G zU(Py`Ns!BCVwdNG_%|i&1HFpr6RggNS*d3Vq%Gd>lf z-FSjL3)e(bKa+B6TvoE&5f}gGGNuVqhT3bQ9YX50hapQKcSg5!%o7}QS9EkxmU;rQ9EFX8Doj zf#@L1pO8AV@WE)(R+)MHiRe34%0tm!mfc9u!iS^g*D_{b2>o5EhojZoq)dS{Avyu$ zO8SRTln$0>qLm|3UT0~K4*e$OeaK^I z;j>ZS@2<2#I-+STpChIN@iuMai{RVk2TJR6o&UxOCrcT@) zt*FrchWvw=52DjqcF2-*Y;&}bWe*6o`J-qh%K;E-&qvXQ-6)T{zCMZe331ogC($7( z;@44j?84P@)Jc}L|AE@~f_xcm+wb4)`8wLgvJQ2nA!b{&;Glok^+U8;NQHLfOgYX! zM2A=$mLH?32g}UIL#WNe(I%ETEI&sR50^1#L1^ShqN`c1<~+Yg+mDbjH?oXIhlIF& z|09}uB*nOU)E`ktNV&EdrEK)#kLZG+%<~20R7hfMkYxmNE@VP%t4=ZX+Ri8AO+v^X zu_S|}T$>D`)xA$F{}d9p_SD#z5V!W!*z{8=rctZI6X`pVCpDHW#2Zr}L>{l@BBtq# ze`h`*HZ_N&UORafeu4Q~d`ce67E+##%i>e;aOE3_tjdJU#Kh zXLn>QnMM6QyCY+1Eb8ys9U0SE)Zeo^GM2%j{+`{Dv1}Ig_w0_0<5j!T9!=gqkBUXH|9A`CR$H%H!)QBA)YhqDX zM47P;7Iht!8QU&I&N>>O%$RnGJ7P3GC&X$zLbL9qSn8z|vn@WyX2x_DHDWVk87ykV zX2!CGxJPGZtW3sesuwe3wK8VHfp5!isLhP6WJ!n64lpy;Axrtx$e$eRWl7+J@gx`r^Q-XPKrwx zms0EEv{=88DvfqyI;Z5shCI^KMUr^A7 z&fRovb46@GO8lPairAQtMr|faZ9xmKh^1Xgd87a?r4_UmI)ucF$eQ0PM-fvI^B2p0(cSUikjhxTM-pGb6UgK^~4(v)l^#?S5S0$J#t{5n>*TZSlz8h*=fW7Rb7&)D?(%A~ww<*Fx6B zvRP^nLr>?PidA|AF;B-jJW>sLHa6suI!H$>Z6Vc#ztDj^bS?2>EJsMAwgU11VqS{X zdgM{a%duXMP@7+g`L2^~UWHP0bY6?)usjQS5~W^`^?PCt!{=5#v9v|9R5#bPA(rP6 zs_V^IlSino-dI1&=$G;t^*b?NiOfSnGvVFXbRq7iCw;MOj`pKOsn^Dxg712uuFbJ6EW1J0L$<^cZ=h23+5wQ)As@x2 zvjidk$KH3q+f@|*&nfrig%AM&X%P@XTEHMdG3S9u5tJxVL8=llG-;v84)&r`F!5oot>SXot>TS zdv0gUgF}W1CUSmg$OyrlN*!Iimcn)M(2&uFd1rIQ{B6jYF4e#dFZ?iI_U?xH8>f15$mnjECm8e8kS7dt7xVeXQM^7s>rW#hrDT+H5qdp_aLtgS@iHAa~yTQK4g8t z#5#R_$WXydqR(-v_c*WDhl~~szfH%hg<&=R%^}kb^L(DruB_F!hCI^^6INy49-Y`F~RPPU&(hU<*Q88UG zu@p&hyU|SMRAIj`nuUw}sK_~t9QqghhyUH&Scz#q z$29$mr5(*jihtX}`wuEKv*{8)SYexnxydndDzf7DLA=CiJJ_?8?WA;er|0Ih;$e4X658agbpS zV9bt!8E=@ejJb`qx>RwdVa{Sqc&%=!Vwz#DF`A`|8HV|*(JWoeGR*sr@VYW{UZ$9B zn75f`55e$wTnXxGnFyHp4ToW7-l+Sf`p$g&Na*o#)MLQy133Te`ZX$Z8500 z$1smFCfMPi;u*udVl?X%?;0lirqZlaEP9;Q=@N_yZSXV2%7$5;F`*59rdZ!F8!{%G zqFlEaYM5;p6V`jzEruIrZ=)Gp9AubdjAn2#-Z1AeW<2X|y<&=CZe&cb=kFW=cOmOe>zDAp2cd81-< zH%z~!_=bKlwHxLs=Dcz7h+;bLeLjrbcyF{=bdvDt-0XPW`}VEcZxka0GmaqhH;PvU6J`EpG4Q8a3dp>5v8iC9%v+;h z?w@iEhC1D*#6V*a^V%=;lupECQ#=N}Rir`RRAL&-^D6NGE@>6>$qHs)*2cr^TfSAw zGnz4>Eti-^*h5^CQ$@@POcVO|ZIP-GFyX9G#O!vR-To+P!n^2U{Igw&!Ht9Mi#`i<1Sz zckvjrCu6=>EPPg=8AIVE@NKw#jVQ(%=3u5dfN4e)(*!e)j$zE9jM=rg-7u#z=19iu zRy@;rat^1kQ+{A=H0Q^CZs z`o6_>f>C+ckuuHLUrMUJH!$b78M9w8*)XuW{fcRdNnmyR6|)Tks~cJ5=Lw$#RyVR3 zrI@~GU;7s)8wTxb|Kf7PJjA(&mumJeZa2&`CFTjkpbhR{ol^zh zyMM8%VRpMtZGQh^Crj12t?F?9VzgnFDlz9;s#O@HeEw=Qt31j#TDbq(zj)U$v;G0h zfT>#c^*B{%xtzOUzQ~xXRtlKT3zTLX#sqJ(e=*E3VKxy)4*M5-7$(d(6f;^dGmR_AeH_Fz|^tB@ZYz5{!Q9IlSa^Kr!4fXv+r_hbX3e)%Jj5s$t+E4=g$_5(&%m zhX)p$UaT_1OB`72(G4?&U>#Xz{9I%Dbh96_ck0KI1xPJ*ID-A6ERzFi(`2>jV=$|6xVvrCJJf|-##!KHYRF-H_51T&7p*JK`N z%#VuEhIyN5f|nRwoY{>g@EKD~{f(4@0!{D|M;7-8CeDtJDqd2Was+!+kzcOz^xKYK z!Qxa$6@vvcj#g#NKN&N&7-pEkj0w5_xY)ZJO-MDaSmL*ud!PxqA6;yum@=>N#n#<0 z?=a2y;u*n28#|_0`geiP&E<>7#}va21KT*J7}X6EY~v@z6v0H>IJQ{-3gJ`wgbBqk z!@vVfDE2VSfSa_3oluN7%$ke|R!m=biQ|fs4FfN6Tru5J!Al%h{8=$&`#P?m zDim=lZXf*C_Mak+vQom6akt)!xdO3ZeGiFG=u7-=-{5|fJQiYZ5olZsh}+2uv8 zi%G?shQa;rNyXCFX-QG8Nkx7`lsSw^n5G*h%t0m4D%Jntjm~Fi-9)=&NGs)Gv@Px*+?+sD16arW5%3T>|~gonI^Q0$;BbvXhL46 z7t?2`egaKs7e6hY5KL^9XB2c(EJfH2Jfj#OnApRfSqv7;B>7UzSD5pe#W2I*OEEt$ zo)Jv^Qp_)kt8NaQV_s8=dju252~&z^nrUv6ROR<~rWAC0z)YeS_^UKs{OjzZ%P{XT zrVp?DpHrM{n7-dh=qpU~%VL^g_T{pFlV$#8(RoKKX{fIYivdlTF2xXTDqUD?ZJ2NI zdU=?~U06&o%t_2SjQKArrW)qwj0t1WUllVAbCF?wT|8r$D=gK;MSiEqL#Ht3Fgm@Y z*v>FBm?n%xrxmvwCfo(ylS^@F@kBSw0gSn<$p55#0?iSOxx5%Hm@)Jq^EsL^zb&RH zP3JdRKVcBSO%j`|5Z*S{|Yb;I1lwsB=KR4_WOdyL0Xe<)@O z=H}AZT~)kl7>s|eDwe)0aK5=O<_=dCn;HglhpUP`41@8{RmCX7VEl7caiU@p%pI;O z-ZUDF;;t$dy<74sM{!pbLk)vb+||X1ZkSMCR~PpvrtenQ>HXzvirGf98)JeOy{5?j zqMXqeTvM#p4HNo;Ym1?RiG9I!Mdv-53jXK%VnxA3A9a1PkV=+=Nv3=cGoT-@7o^LF!Gt88icr1Sd?@|?y80H|h!yhnaMv>na z@)}35`J0NB4Fe0mx!BY&u<%=o5r%>F&MfXR%x8H%cs|?Mt;L&$$#&pxWwOoxu~_te z%?qzv+*SGj;-asVl~4oXPEnoEex|dWA5VIXB8v6VIE@4 zL&cfhFi$h);bMkic9_6#t25@YV$_407j*b|G21ZE&lAPM4=D}a`gponts5q2?73oC zH%xf_+56eH(o7vGEDF- zOEb-@#mRyhSL*qVVya?FJ-<=hqnJ|9ZxnAD1~&FaG3akvE@=MEVyIzYb#E1W8wOVQ zb}_*)@T>0>Qw;;Z`ff4PFwp9IMc3aoukXFgJ9un||0;Ge%!S-80_OcE zc>cw^@<%kUfC-*|iLRBqVS?xXSl0}}M9;re*Aq%p*3PnBZwltr&M;#={yN@M=<0ej zaE?9ovR%Uj6FteYU3)z1X-*VOcbapRhPK*~UnXac%XVFEm~BhUOu_K^!#=u_vuxMO z&q=w&T0+0GY}df&17;E}vJv-jtk5;fFdLPa*@oGw#Lz#K z^93d6Ee!KB#)NXM(6zT=w&PUcY|n~aOTVb8c4Ew~T&_=a4KmE`jG4r_f1+!oVMbc2 zPjrnn%wa~eQrBd|jAP86%x9&pQ74w3%xOKZ`3MRIT!Cg-X<|x|E%09U3O~dTQm{7}uyB7Xe zDCtpjK#5t=Fh4T=4DK3imdq2*l6U>%)L zcj9PGr;yJYNjRgahWGUMo4(q`FF8i}E9AYHn)F+}8|e6S#!&%gwe{OB-Sd(!=O=p0 z=p_l~^uEc{DjxcSecXD6%D08t1;Xz+`}x!@fi9uXETne-zQuP8*D&~2A%9iT;x&Cr zyL>SbKHxXNrT2WVeP8okcybkLK9N82Mg8r2uF}8qS`{K5^skN!@%+NOKz5Z!D}5cl zuAb`X>+myws`)%_<$t;beBR;#hd-d{>)?w<|Ej@v4K}{3^|h;&b2$swmCNgE^~=%xI8=b1DQT)N{PY^BMRy+r?@oAN&p=>aUd@fLePLICaSDSx$+w9KsS3%@Ek2Erh;JWJZ5v_hcM_)G5mP~GrCM*PHImL zx>mvo?Qeco?JcwToW8>Ey9U1thMcFwfgPZIU>vIT5&MysYQ_m4xB0><0yEP7Bd4_`?At*?;|z~-o@L=%T>q(lIQCPZ zugZ=7pWpvBKA5i{?CDWnv@aiz@ukPVFZ@&LBmN?zg?scH31J@mMWg$g(beI7KKGj* z9y0j&@b2phaomLUggvhgc9PJ;Mi2P7h5dL?%bnNGJD;<3Uf)OjT=P-L=cO!PgkQ9D zu=l?j{c{F=IalEGZ^2)#DUjQdz??P|*r3e>cFV?h@*OZ@5_c@d9JGns2n*#rbYesGnB+7dHM{-x+=6EKb%#I-QsD%A@IjNlS+? z$_;szllX+tE>^N|&+?$XNBPl?0Q;Y8LjGQJ4c+w@sGN5RY}UiF7ph(Xy*!_{c!hl0 z)WV+bD8nmE3FC3l-C*&6x7F}@Rq%WQ=^~ZOhrti^w6M^nG{ES6{Qp_}(KYcpu3>*` z(dQ4eS3a;*Wi!6O!>EKR|gxPS$x7W^ozbeJ~mCu z|0#jZ@!!8xLk;icQ+;rMctwyi zqb~@|>1zTT^j(474xN1B6^&9~d`RVM-TSz4&oe zl`bjA-QW+sVI9hkbLzs7%a6Zayf&0q-G^R5egGWxB+oUmR7 zd9hBQ`(SbYc8zNXps&mCh3i8;yj~%&wR~T^LFtDH^z^Wc*j@+rSAPIlH~ziJ7 ztdsj~lOyF5XWi{f=@atn1mJ^tE5g41_7Q${`?k&Fgj*FPn&K`#sR_R_4+x_UX7Pl^P2#tP(dtiZ@m=Q(V5HwU_ihdn?~*x$f@ z3h-!82%|hxjUV{jYJOkWKheIM^E*b?EmFEy=rh8;4ful}!WidZ|Dal)j0VW~q&Xj- z{>3#zd&4?Xq{leKpOdK5x0a8;jAZ#@z4sqKtm^l#rVo!t`2Zm&{OmEt*M~uebyV>6 zeD1XIn(ohI-yZ%amK*!`y00JOpES8&5*X=yK0bXl%;z7hf9n~a)2C;uzI;6JD6g)Y z@`*7=f3$@`2l*5>x1aG-LVh^El2A2VZ-?4nC-k=I1!12r`lqAr3i)JovOurD=>H+_ zdUvZ_8wkv3sKA_d64;>c3GATn3+zJ&3GAdJ1bY5F-m-ZetuNu2AJU^=*x;VPhxfx}ojJF4 z=!UIBci1{~pK=}A>l@)G7twxnGs!O{gcYWQc7m|(%VZ_KnywzN>GCq2jxXXlt()Hr z<-xknyr0{GzEIAsO`lcB3R$x0;tijwk;bi`2HiR?fY<>Pa|K1 zj}|=FubXd!?rw{JOkig7@|>?Q1bG_NUtmYm`V`Wme^}nhqw>an?Pos>{1RHVh7R)z z@E!h0pl81+FxJcO4X@+ttQ>D6ozE9~Lp;v)0Qz%3TAr96(yeWB_gvoQaRt(0pG0A5 z=W@~haW0qNothNNn~BHcLWUY!=L6?(XN!iFHlzgMY^PNWf>GP`=2&jxYEeWctaU4Cyl4|46JK z;8&g`J~MmE3F`@Ud?6R=6%g`h|I&NDn3w5(T2?dPtZzTZo8CP<#qehv#JB?I#}uOd zu-}n$WigC$O_TI7|0|5&m4?4oU`E<+C8Y5wdA!mmG{dF4!}x(O^7ZuqeZx@DLx?`kHq#_&4<4;ZgPO%ot9o9pG%T;nS>rOyuyfo-tb6Yir77$^D;fZAuy+YyQZA5LCXp3pj8FN@m(u>thVpCPU_c7A@3ia3v%*n z3IY@I;f*c-Ee)>uywdyd`hw@TZ7d#PJ1S1IzI5{IKSt^)pEu5=KU(lG3+0jzlU}4 zb#ftJz*cm>dr|Yf#h|CJJCF6g(5KY*B~6bo#^Kfc`CO8XXK=0r>#9Gnas&Rz!hpIC zn9y*u!@D2R{4j37ykIYjZG3FMt8zdt_{(ZIqg`JM^^uS-S2Y~z zrkh*}`G%{d*Leefx3>V=`oH|d}8yEl&W-jnO{|(Y%i8C^xL(4mlCmzjDvN*C7$oPL)Jwa^e2I_ zzw`dt^TTg{QRz+>G|VM7a6)Qj1jj{iPFzk1+w}SjJ9q^~h`Z>R~X6xub6PVK!fsNAs-?MzG^a)kN z8CBCq`-Hyp-E@4V@}Yh4xn;w{j?vy0F+AWa)@}ed_=3*c74kbuM!%b_Zz5lm7yfU4 zuRDIt)(-|-{tEg0?YpXX#A9BG`?c@dy2M77&O?=(&$HOL0%7poUecv>vgL#G3X13b zBg3m6;=BQRfj>hS_hWZ9c_1I;#<~c?y9ixI9asgjg z|AxnMtlC^zg6>2G{b>kr}i#ZS)(^Lf5=mH+>lULM|1+sC0Mr^0AQXx~R! z`~*t}`|#n(Mu+-Bzo0Pg+xc>#ys#&Pbse$!oICXA^SSi>P(IjiMz|jhIv++pkWcBb zZ^7#pM=8H4RxaGjKG(v2eec(%AGAN89&+H`M{ntccqK#>2sUzpQ4YH-VvCU?E-!bc<2-D742(&+a2<$vt#d%8@qS+*J;_$ zVSeEEL1D+xufo_bqkRIxuc9824(0agv2Kreqyrz|moT}nOmx2UM}ZmrRbWobwTRb# zh{vTySCZA={K`; zp7o`ka@zc(s(;0&r1-4FBV8Ro z-522dFt)F&;j|3HAGMMn_wIXZ4=&4T;$R{ZZV{fx48*dN(CY^!w3Zx;L~pNqHj zPYdL? z#O@Wxb3Ta2`W4&bB^m7^u>O4AiRLeKJi^}(Hu~!L z1o$|v(eX}B{J`F_de2%OCZn`h}hog8m>M;<3(OJ@1m2>q1BedR;e){D9Z~FQwm0y~cfp z5hj=C({nmL&nM@;`8}MPbgl9M-#R%_UaY5M{maYe(?jpz@9FFCI8Wv2;opH*$oG=W z&cSbxgj3T?W_~v(?H3z#iPIDKA-&RZJCpH5^z)t$`zY#%v-14;+|sH2#(9+Iv*M!K z{m9sBrDJ5di?vJRDO?2I{qTMrGL}H{l2f`m;nNLKUrXdh6qfkj_%@B z0^dltrO@-bn!GQ=`<5K$ugua2ODFBZl=WZySGLMyrxgec@Eyw0R*2J zmhMjm(a(Fnz&~mEshqjJhZx5d$QSe)&Pd-wN$6UsN4_6ChSkCT=2i*kbf>@u-DmZT zez^bHfv)+!!aq!2K-dHB1ueF;)+54i8-3rsbi4w3?9)MS%Ue9?0ih?1BiAxIgu5i1 zk;iXtc$Bl<@}ZspAus9;@x>@IvXE0l{D2J5NdD`Tah7kI&;jD*X5zJr}>C z;G5F{Uze_$UrvWh`5QD|An&7%QvV0KDxZeYcQnx>UzM|-FX-Ck3pv1dEh%?{3e$5d zd6mASi5_ya;tM)2ujjj^ljkg{uZ-rLt`FU1^{Rd|p`C>fztbf3kkS6e7k(AtCHZSj z!4BciwBN}{^M$=M=qlmgK{pEQL$?a-Eb~SB(*+;XD?Pv4Xz3v*+6Cl0b#0Xc?HcVB zVYE-+5w2^m6RiB&UiqG%tt$ZEbGvPnbf=iU(9Y1moUo$G3Fz(S982f%>eq9si&uQT zy~BR1eCpc~=)w2bB3Fa1Z%e)gDSby1J?z+*1Nf?Z(GMUV^3?eYPgf^5=&JeE%Z+x_ ziXQ$J{TKRww3li)qx(&tz-zmU?X72gUZ#T{0YU$a@C6^x^LyRWp79aeco&z*i;>^Cj@0klJX4?LsytUPGXz4Hh0-LE=+TE2{Q+{x?D(*HH+Bm0DY zucPg8^pZl)-?$N&(A{#5GNI)xjP)d)zw!Er;ny*^p+KH*TX`xgCom4+ccY9B z>-#>uyT#)jImGKbe|*l|;`Ln*zK<*K1H}5Mn@{507RuFgI4j3f7)RBe7eGAVp(Ypj z`h7P)PC3Hpk1>dSa6PZV_v?m-`s8=!ZCtDVD6w%$LO+!GYFr;U+4x}I4A?WC-}83# z_u2dx^Dl+X^RLS!T}tS0F#q<@(_#FKdD&PQhsW_a#@UDm)bV+w1K#K7!#;o9_o*BA zBOiUQJhS(*^KxEriT{_JB+NE!o4t!Bw=t<|p37ykN_2nVxKEGzrV@ivf zUaR4Zwvl*#Z`0`36v*%A3C!us7LRuemp48dpOo>ME+x=ue*7M(_0Ndcd=i_tr}j=J z-hIkx&4F6)s3+Jp&Q)lC7S{tmauyel`+r?GjQ(}7$eB`?$@>)x@8rV!S@;Np7*BY8 zj(kk>LA!$;`+Y#%>w*6sFXQ^u)(`kyk4iYBV=UjE@i}RE8>PQK!RUW!@DB$6D3I5a zEsXu3>i$=}r%=V`^oXT{9MeV4jII)x)3u)t_0pif2#n>>cAwGz4bpl;`saW*XF37oZgc7_};XZr;pV` zXIT#_C!aeL`pnYteyqsRFnYd+ZgRfgX1?iup*{1ufTTmdQ9me;^36%hjr$}Wbkb+E z9+nh7DXlCpp>-|%Wecl+i02egZ$C3Vs=oPM94n9Ny~E1W$Ly@LET`ICT88J1UtjvR z$%*#9mkZVHsgS&4ssjOuZm$%l4& zg4M%mfR4ZJ(>MDqv)4Pw? z^5vxEYn1-k(`h@8azdZj&-V1yd>eFfP5z)eRpRUE>eBx~^pVpw0(o7dMn6@$#O~R} z^Rg%p{H~UVzbhjC3U-m$`Z#|NO!CP}eZih@?HBx3O1L)!Jo;rHM*YqZezAV5Vcu7; za{2T=jCOaF=^Obz^18MoPp@IVS8nCGTVPK232e}V0z2sM0^>e?9e>Ot74my%k}kIE zYI~3Oj&a@#uoa&we}0$Bv^`FqCCdcoLua4_*KQH#1bH*q3{f}k{y=y<3 z5ajgG)3qvx-oM2?+*a)s?LD@~h4xo}sQq_l{d_`R4wM_`;#RWrL+B?L5kCB$OE2+r zuD@n^|6Ov`l>_p=Z1;BS>IdT=FE8e0OPk)|e?eazM>X4tw_CLTxvfXktDeJa*UsB- z7uEHajC4IECp~`_=P#HKEuatM+4-j**sJ$5A2vIxv(x{T@-49Y`D^#R)#v|;9nG(H z;`^<-{;;?B-s;)QQCGe>%;R$JoL`6l##HqQI8l?&?@C_m==CtG~GNkmIwKJ z_?=4mc)wco!{;rmypUJZ@wsq$7aQ~L+~zx&_e6+x00{l~dafH!!Ov7-`{U<1`?Y31 zkh8k)Q@8FB*L{%BZl=dpVO_7{a~*R2GtL{)UcG*xx6d4;^Ud`H^8E>cITZpMw4uNb z`l7%-w5dS8zaTJ{<0}^S`QTpH_7=a3K)&}XFeALL+o~NyUabG&T``@%#P2iUKEd6O zgz-zfx2OBX{#~=Q+(*Xw5$r4b@K8B_8o!fph?N8L#UreIE7^HePrr+uU#;3@tZ$D8 zzdAhfQJ9wJW2@ne?y1NHx{Q7=^5kVaAK00z zA8P*n1oC&s1m?83zy^IxU_$>XI+RbxEeT=0PxXLzzv6p}%UL;AG`Y3hd@tMKQD4xr zuUFr`Tg8K4oqzQFd_DN^e@fr&=G$()=sG#Sb7}RVjt!MhOOF#NY1eh0(r_&T;bjJI|Cf%C$x{ZcDE z=sp_XyO#aNjFMM_U*!EiDQA4gqFuV4>kH#*?6+W?h+lbh+dsE&^xuj#%9 z-+1q?t^}pz^y&nc1@+nN|hQouNc^$&`g*u}o=TzVI`a(Wk z!iT?)A@z^*kO{qL`c!+V*I(71657<{s;(dKxiQP9YA^7w&GY1{JvHxp9rZmeH|VNi z@U4T$ul4vD?L+M?whyh}c~9@P$KUeK6jyt^mkq_D@>bF(<*rKN1zG`^L3p*OM zg|<6A-;&uq?}U2B=Y)A3_6yN+KAZh-on5G(i*|={p*}I6t+pHZ^MrnEDvPTrKzzI&VA=kLpN5NS`GbD=K8u}?!?>=MU3z`{aJ%~V>kMmmGd83j@NRP5a8+je}aPhe0kt*eCSj*Z2H7ODnp?hiZGc;z)(y zkN%>LKjuMd7tQ@vUAk8M{rV*O`5R0=K((*f&w2a0Md(wyU0_z;vqHLiEPj^7YrQA5 zmc1*e@fi)0a863sIv(=?=+Czs@Bh$F(7*UF`ZvrctLLN8&*8qBKR>k~{==?6_?K38 z)GB^{@$v1qRlYhdO9|&cJ-zQ|dQ0!+@#9+0A9`p-*DC(@qk8t2kVo^$2>a5=7vWa? z9~AyPZnAuQKY{U!;&HwL{xG%s5&RuFOAo)I=Pn|C%}sS)f_>r7?4x1i>%;BRZ-Y?{PAvNokUN3$f z&Fi&pUaE8n`Sd>Q^J~>kP!Fx>TE)Nrb+vn(zkwa79mRWVn7^;_4IS@+4$$L$7<7QU zuc!Iq9Rq~bE)oLWbjdHJs|CjUZBLpUb@BfGDDnZ{k+Oao@3n#+_oyHT^ir1(_#wUW z%?RVFI(*OXjPmy-4&d&Tva@Ozt`xI-@M9; z_JQ%{iNZfC-|Id_!swTi@;%D=mGAs62ky1OzRwi-oA)oyn$LQ~d=-8j5d9Utiw-*2 z@A;-*yxTg#{F;^{BfTHW?*qs^%7%R(v4bH0ywZb@?!%?@fXL(XO>CczzxyitLmB-> zU{1@Jzk|Po9bw)#TE1h5b+?56ZhC*hpnh+K-+#1xUpG9?yWu<|+HW0R^Na71Xga=M z`aK=*qW?pF>5tVf_7_|86tgG}yfI3v)_TfQl6X#D-S&CBoSVR#p)mHb*Vn;TUvpaz*!M#Ex_wlYGw!2mdHjAN*6HIus?x>t zyLgA}{cW`!q8_0KU+>UEb^H;>Es(pn>5mY*za^7ohJ{%p+0^M#*>pZ0pk{anmD5%%{GP_L*Toa1k| zeto{+dIkSh{CNM_ z)$=5i!`Gt^qaSJ24{80izu)TZ-S=ZX=g0lD-Rtr841UTd`qiH4o5$O}KS4VIoU{b_0BszFB{*_$%KyP66M!&Cj|GYlx+9m22aL#&<<*w656<=5Gs2{XLU;mI7askd+zQ|YUoAa;B$J@&^Yd^4) zp8aFg#|Pz4vF_mc<2^NfKL_J8KweL^^GLp2@Y8_pmamnaE5CYu<6eN*KlEIk=S2U4 z@jl)Os>?^$FXBEl%2&lFw$2ghly6?Xiv+v#dV}4;zO@{&AFtX+oWJ;bJ7gzaZ$C<4 z^SK3GCrV0rP!7}+G1v=`cK@8?XCV%Z_rO&J$b(9*RQFx_vlBo{$f3Q{yrXZ_MVgnM#i^_EW0$gZ9MlR@uGvxs8WiW4)`+ zKG44bBEMGcx!rzlUdu7B>9HR15m|4_%5{mJ@j3O|QODKo#p6CpN^3|xXS9yhx2A6u zkNftZi|=mh`38Sa6!-E$Kd<>ldq#QDe!Touyq7zMwZ2lqz9qs~2LVL8#yi)zS3b(x zG3ct{jPRbePdCo=j{R2M$Bp}k*w@wl**bhq18hIF$_L+p*QZS9%Zc?3=%*U4*N?7a#Cx#SaD6)6k51`ZvQLwcm&ey{wZ59^b-y~b zeJTEap6qYO_gUv0-=LA-tm+f{?Y_RN_`Ez%;N`FCuUX!zo|@ymeyU-%8u~{9Oa_NAY{Uz@uIJ`OmwSU;kayFIB@C9XLV9eFsW>T82?C+D}G5 zc)szOb9{q-Zv7p;(}n&`{YXx)7$3!BeLORKPS0)~^@(+bZY-mKh>0IlpePG z4IA7Y>JjI~G8^CI)_+C&Lpxee=rdaTa;<-~2gUO{+ZI1mU~cC!xPKGB*+Gv^&;^z+?DRL5?-c@*avv1yY(ua#Jm;j`!W2q(P!TZ{wAeX`D-~6D-VBP-qP2}1v%a^y3X;s z4zQ#^eka)B)ebXS)8dEK&;#%3tNj7yXMibfE$xR;9qub>yGm(Ki`Q^MpW9RG~Hl|$FHi_wB&QQ@J+0p z@pqcc9-lEh+NGYCh<+05H}H=dALT=P^65N3^`m*2FY4W=ucLccIsL9#n2Vk0b9e#{LWW&Du-brH+%}PXXgPG1>*zA$46ge)nT;`RI8}d^aK?e80={ z!}mfIrgqLWE5GCUf|Mhn-lo%WZ2TU{Emn_r3QTBz@x9;p>O6k6PpRGa6}`MYm*azzANyvg7r?4q@x0(aMbErWxNq=FeBVRn z2Mt_g?_cTSvqJ@aoa#~-Ae8U4}9tL1K3 zIXX=4J|%zOZlK?}wWn6^bGF-#P#+5UyR-IvWQ6e@UoU^Va$o+%U=Oi=p#OI58G6FL zpynI*(XbDV_L=-d#}$Bk9ijc?i)#j$(G|z3J=NhCvGku5$lrC8^Yod0_bR8;Kc)Pu z@d?dsI+Y`#wJqNb4Q^p@Cxa_qqxxrrvOzBDsD}73ePYC(UwD{iUgZFXn zvwR*E825)Tet*&Ur^l+Ekl&&fZpCM5qXUH8`(38xU&rEMf7hB`?lyRu(dm2;;~~CZ zBJnA0;?jdZ_#&U)@&_N3d${HE=!GixYX%oFIrp-7$cuVBQth-2WXCxjCUmg(=JAMrCp#th z#dgOdy5H11PU#sR?GEvJj%DugethJ^$j9S#UnH~rvb<@W1$ykCAdG%b`)Bmi%@FNe z^~!cP%G#^>gL&oCGk^YGsMRz4KfdSvlHn2d^F|+jL+E+k>o^@3%`f{!yHGoh>;Lex zb$%HA@kh?8`aS3Y?MTOU31wpg9e-!u-ZMq>x7Wc9p?sqDQ#?Y`d&&(nqOkyYe{LSi`R6B_mIE$BJu#Nx5OQw=x!<4Ho_LFWieZ2y7#@6FW?(SHM~-uXKVGH>F0*pe=% z5fjx;rW+s7-(ul=3_fPCXS-|dH>=~TxV~4NZ#B=yTIHwmvp<&ps<}Uc-d`~J(GFmT z&@=2v!>#KJ>swWrlGaOB*2{aAFJQmpbsVGlWTpM$9SyXH8|}MMkiV{c&mOP!2Z;8D zdc3*Kc8B>E+U2ipK7%mkr5cXy4f7n(L66li?{7%CW4fN{>f-s`@OiaA%O8Fn{uS_S zYd09*!B1jbxSphE`!qhVBTv7j#cywLUxVCr(VstRbcjb7@yGsE{k`fjzFVVu zOQ_D@Ox{iPGvEYmCu<5!2=xGd8216Ms6Z)Jsvvk@%aZVNUuE-C5N&PO*&)*Gt z=I^A-`cRzbdcALB@{lE!Wj?ZpD`y z-yH#LHLlTlcKp8m1(u(-=aep$aD4w7^q8OHT^-n~;<=vfTn6wr8Xt}4agN2Kys+=P zEPtd!80$cw!#ZrM{XE#S>M71+R4?4Gd|St33!kX%0{0Z)hn5t4Mym?M`L+gO-ta-q zC+p^Wb#i@Pj!U_Y?JleNTL^QO{Xn{F)NhKk*I>`dMvvIRBEB z<6XqVKdBtN9y~(*+aLB+_-)Zc9KYx~Oq@^mEPtGz`t_n}e)t|oGe4iME+6<6f3FAQ z)ZXIT8}B95icbA=97pO{&)-z-72%#?e9uAS`MaBybO`f!@XN{%<5WOzPw;zn>yz-0)pgN$p9XU1`wST^ zBIgsa4iVQMA2U5^y(HxO;k&KBL%A{TMSa7+tDQ9S_4^MmN`5Knd_61u3%;*7V?Wi8 z+D}SvnS2Om6T8PJ1UmyA;<0Z82>im99{s*w*U)wRxXy)h$@*R+?y04u;W)ml(nUP< zgY&1*8_u&ruUNnE`xn61?NcBg>qiJ=uuC0n#H3{p)@X z^d9$hP!E8h!@dvd0TA;5z*hAFI_1ay%;f!yKpr>P{R_nZzMuL(gu5I)&i5c*@0swq zbh~!~{8uDh#Mjx!w#FZJpy@MGJnm~p`%(R5wl5arVJ9dT?8S$HukNp9_PwNpfQR1j z-ZJdX+aLHVKH9IRgI*q#`COy}UiBXFnm@(~&HhK_%xSpjuR%XBJ&$-Nu-sg+`=e5>=%0Xp6?of!(Q)S7&wn~k(s7C(e_|elaTLa%brAZ+ zx+K;kKWh9pwDT*!v-22gFU@||&+ENi>HI$@rE8S)e@_QKD_j0(SFkVG2kZ#)-|fbc zh_CarSl<{d`NVT`@RMjC8cs~^q&zPK{=WahxDR|buyTOUmn{sxsOx$DJVEpRXx%tn z>$RC4>prkQzmC!KdO;tWBiR%DpX0;e({8yi?*a7bwVlLzMp)@$JAhxU zp3_X}LDPRVKCVakek`?q81xu_z)vF#Kds@EW=lS?f7fu-6X@Q*R`-?Qf3q23zL=4o z2aVq)!2YDhrxu^tJNzRBm!p0>V%c|OjEXgDp;L*8lUm=reSkzU6&X}ON1 z{IM>S&=@<<3W$9YtOw35#QqP?=N>BM=kMOyc`NuG)HmAI5k@!B^o4Wgm^W0z*k_O5 z(N#M1?}>en2QV$aw_C^O6w6m3=v(Jg%{L?P!MVk1eqNr)AL-_A{wPO%zR+*A9H0km z&1Zhg4|(*yH1wL&WT~e{xgXVAJ=c|Y+7sH2uM>#zQ}cUum=6Q0{lXu|cl==2h{t(B zpRS6B--++A`t-ehKeFd{+0ef>-{QB7h+bvgX zeWU!?XU6v%(Jxom{c~zJ-k;l9!_FPdD<0qDsN;k4V7;@8WEe4jRrym=efjcb^t9xk(+dI{^iP2u^t#Cf{yNU$b}f2O z%l9!>K3UgebUgs?lLOYjTfRmmU2o|!>N$NzLxeA{iyHspS+!?fKTiqgYpP*Bhh_Ar z@7-))T_MIHIPa6wmyI6#A#*I$+N_>N6N`{gR9p3_T7<<97fB0rzMu=fN} z9>w$it>N{(7wA19&mZZk^#r}QuTQM|=(|esJ^QV#JlhJ)Xa~~|=&SG9L(aIr3p&r& z9Jj8q@ke{RNC<&AnpI{h9%d{+o| zsOdlt{`C-ci}Zl-YYM%5u^raMYkO^!?G^WX?lt>)(Cq4O7DoRB=;eCF&O>@VqaXG7 zI=SFK>f)Q^wtV4->(cd>FXZi+AD?THebxD=cjO0%`@@fz{+~6tz@LP5j%NSzLHQH- zk@?$hz1_?|dxHG{&M$lE+1~&A<*xea*x$6jm}^<`M0V8yDCI`hx}jL+4Ek{D+Q5d_Sd6kUp8CHxKZkt+!cG9|>;(7)_A-C$1^WMQ@f(l_5cU9w`mclkzu1N9!~2Ea z`wQsV*FW$*=M%r%;pzN*u`WI6d_PtVqdXs;^%;~G<%52p-&Xs5njYo$_1pfq0Qn(* zg(*FAP#FK!^9Mc3QLT@I_4jaE;DKMug0{K3nz?ACZ!3TPWzOcXN_un5nUF-3K z-3N*Dx1Pu8xt))Q`>ohV1%#i5UVG;A-@o7T@0Q!!0oo%L+9(q4Mfgb=|;15*a z7+-jOEbtFie>p_fU0d1Rf_@k63((sY?Ct-z@hr;i^|7FxEof(9zYO#Jy8cf6Pn>U~ zeF1vAg1s$hXTiP}%p<*h{HOafFV6ydt@^v?d?~E?i=a)TTaLPIM`c*l&+&`U#wmF|Ml^m*Xx4z zx}aa2AM+)DzY^~N1FtZp#cmGzj^`G2{}t~DWHf5~(5`d(k-!FBB>hMST`aH<9rZmu zH;()7;6Jb7OND=Y_YUt=>$^mWyNAx-=`?!GFL!#iXSwzkd`gGb#N*u~`005qhffcE zp*$W!fBN1)YVR^6R!=Ea-#N7MHu#i_ZNJ4x_l1+=N=N8 zAm<+9_v??Ba86i&{oz z;k_L+hcQk@yHkIWm45xQwL?FZ(r*PKeLbwB_jrF^v{ijUKcItMdb~d$20!1kKK(hj zIz86mp$E)co5MJN<;#n4fXYAr_gnG)hA%hX&w$?QU{!A!4Hv(c)1K!4>fV$1pv$HF zeZAqmB<}Z3z8_X#bN{CAVkLBh(dqZS_`B}=2S1(AQHEFj@ORa1{;2PW=Jbj?M~V3A zx&_|D>nQ2R!;EMdW`S7K~J^is^RbL(A)3vVmBRSJM{WiyJ@a(PltSFiX55MM_!f_@n}bN zenRIt&F!vddeC_o{nZDXu2nuAgzrD2{MB%j+w0T!mpIpq@u?5L__ofc-!gcez?5d3 zss0@NK!-5s5mq^)T-7k{1!Qi$5dBXaC#c?m2aNHs!zx|t_&-T`;(LNVJ?5cz3tevK zg@@c3GdFkB1#SXngA8^?pHv=1iB+oYObQdwu!z+OBeYXRTrDyB)T^+o!BA zpYA_hF4Uiw3+2)H#)nLP)SriFKfp)(^Lo&5)?`P(tDWUd@oL|3JdO1v*u6sjZl?JC zW;xW(BHqgd{vHpxyxjvoXL)0Okki`(>>umzJ|6a>bkY8mz7IX@+O3XvaE}J-4h?HR zt=kRc@p^!M5MQ^?;^m)PdduvqaYr0l`L*pBzpV0hLdQ$vGeCG~$m7l*~Ch=$|_5Bpu zx9YuKA4(Vfm(u_D_TT@j$@9imuksfxd_0??8 zb$Fj1c3;iELC;zLig&gDVeMus`EGnp|Fn3>;raS7@_~KT^`qdYbeOmJ^+@0W1{HNmU^r!f|R`2u2E}Pq19p9ey13f0?cntMZ)jR0Cz9YW9eCNGA*V(7$AIB@z zazIYN`Q1*VUh3>Y^%>7cDcyp0*|S|nea>xsT|InQ+NEz#|E=xO%Qf!uu zx6S;a=Q{gY(2jN8x9VTf4>g}FhCb`sah;w&EbUbF(0>0pckKiEg}ui80dJ40=jMK} zuANrvWkLUp`GDHre_#LX>#^FtqJ03bw?6*Y+r8Jr z+?Chc4Zv=rCNQPD1@d>24Uco+U%#4shYjEV z><~^!VM_WP>Wpwcy$*l2n`5rQ#Q?YZM)$>pB zUc+0i9QdvyzEh9<)2V@PX629P=y0y0kHp7yxc(BxI$T1n;-N?Q3)mgx0YrYVKcv(0 zCRXm07MJ{E7~hHR8DCEa{(yRp1@8_C z;CvC<9q9O+x9N2)MOe0DRvLr?oiIJOU@Kgj3~v;2-U2)}Zy#p64v$6Gw?)5FOY z5B@$L_&Rv`7qy(~xA=SM#&4R*fp&HD%wV_t-O{$=`My*|uK2xA)erm&pYIa7SpRB2 zjq)A=-p7Z0w;Nx4ZyNFX{o;)DyTv)(XLN|y@6TuD`Bn|5{$RXM}J{e-@ZfHJs7QHTb6l zpV!7eWbsPZDCw@V{0Cb(uh<~iMMigBpmJ?t_>rSRI3tbEN%gG8>3ww$DR4ae_wPS{)f-5&{ELccY6 zeLDYrXq?yIqoMT=_?d+?eCR$s+l7{w`z^~SwfZ^uCY2BHL<`sHAA0XOzP{d&4*5gB zuwy`94%qWHhpS!(3gml)c3unZ;Zr+Q_3^1&v|Okcd>`1ilZ7WM-9YI_Q@Z^p8iqV4 zSpDo^{1m2ic8BISX`x`(2`Nk|eO=Sz+{x)?2R|2>(^TVksC`FVVM>=6{&9m(3B-NH zjGmV;(lC>Dz>MJM(GTnR zAuIh{htc;l`b7mMbfnZzO3&@6dQ!c_aV^g6>o_;1JHMxN=x^%i5wCtZG5?&>`J0CH z87=i?<>T8;tM9ho*;muS{(3%Fp3s$xX?-h9>7a!)9l~!f*;9N*9YWQ z`b6PcEWzP(PIqb_+c075yOWwu*1I>nC3feB=B9<-SGq!smZ1 zUr+aaE9Y`1kIEJK`0!9GKOoYhJ>otS;IMvLUX=5@rjMCFWpTNE0AEZ}0pN|jM@oC1_sKONY1yF1l&0JI+VU4^ zy?VbS`wd@?Zb!Bj^0@$@J;RBJCE~?KlozaaL*o^zrvK(v;3>! zj5anr#G4z51oh{6%j5sA1#W4)f1_tlf25Ki7IZG`D=U9W7+z zt$tR%h0F1l>M!=Im{060?H%)poK8BI-5d8~>W4dMjd8(`^`UhH#{L@pxAJZ7x6%J% zT%z(}|0M3W!2hEEIo#wqR$xx23v86-=q=p^#_!4&{5+l7S;O-0DD%Hf_@spOje9Mu z`pnF~=H_2@{Ve72K$y3stVh*vLOz|gn`ZwU)^kESP2X9jNByZjGSYRJoKBPVfCl|S zV27>W#eB7&O3fZ&zX`R%Ydts91F!nZ%l@;<&-0IA*bnHd{5)M|dd=w((L3+s*|=6= zO5gctwcl61387zwy*+33_L}jbUunPI%KjQg*I!^lK75R^%y!>V%9k1Iv{DZSXy(R=cK75j`wq>ZT^dS0-*YP%x|MzW4=>`DV=qg%8h;%_O1Oe@9&#_ z5RY|2^waI);g3DN;?b|g_29!y?}zNA^67eUN>zMbu3so!O1jRN(M+?0u_izKwf1j` zou`QFm#Vjvj<$TEhkv(!fIm3VS!>RkBDM26Y zg%eV`2vL7J-pJ^eCg%#vhI&d#&&BXNkY7+gt1u<3-@}d-rnat|(dshK=5qw*U)!bo z9p@kZUukmGRUg&$5!72eSA=~Xz{QW#e6hb* z2hoo!acOB?^eCu#kEm)$+lw zX*=P5(Dcy?9($ScuhONoVI_S^TSyq^9Xx;be@1^z7W^N|5yy?%4pM8k84Z+ux7^Cx zAT39S&ASpBYUgn_k^O65-bP6Wz3MnJo>Qon2lDcIxs5wi{}?YMWj*X@;bg^?)$y4|wFOdWJr;QqOh$Y#n}i zsaGB!SpBZBT4*f{662)g%8FjDQP&f{P-Qn z*Q$JBC&&loU(NVKKY(Z->stKsGB1Fh5(3=@7QcnSl(rL?(Fnt9I4#3^J~z^RU+8k$ zPhg|uTSuq)B=iHJPw8#hSI;b6UY;vcJ4s7Ds2*ecgMN-NJ|_!I=oc0~TVO_N$9dV_ z5U=IW=r=;g?@wEL4f8wDmi}79tDFh>{BD!@s8^LM>gO(rXTNIwf{(w?;{R&-s9cfX zlwE`Uq=a$HBbJ})1M(+S#k1cvx>t?wzbu?yqV}lagaH5WT(Gya4BzC!b@2-sKg9R9 zFw!sK;+J*tSJ-@YdBLZ&mc{$9(((FkP5kDTeoKKFZ7VRR9gQCHL7qDKAP?dZM*h1S zKjo7W!UqVR>&fK@{emCDV~ze;ff=1->FV&1f3nfF;`cL0cfN(e=c1Z;pFj8@9r!4W z0pPOiyW!d7vBr%Wq6vE1t0w-{2}sFn3_LL%ulE0r!)Gr z@!eQp!~A6jZEbv!9_!b;2tKZ7qMY!vntyKnLc{oXkn-YvvYj6dR0eyy+EVsh(_F8f z59%B8gFo;++e=p3L6yEazkO^RSEb9SXMA(|E2KO*{n3>l^7XbnuwPAw`ftv+j<3p* zlgbs-p+4?6c~!pHZnPfzkhZIYW(!?PI!?fNKaOu+lXySAX_Vs;jD!BwBVCjWdeZz8 z!aPIkBO}a5FfK$q%A@DOWBWoo1)Wca@Isdc{}IO{J`8&Rz2}E^uK3LSM3h72>ah0R z$J%#i*}jh&r1>u;a`1kIg>|0E=X4D}vIdWJCqMqiIw1VNLfmJvxRbo(>*zgU*w*o)hxngDn0eOXtHl=k{}pudeSUREO8|Jh#`>$XPp=QJKa_JZ z(O>gE4fbuS@y+)|l@HQ4$0NPYTlv0#trH@h$Ll^s+&2Lo*6kIhw6xW`52K!RJvt?| z_jpc3*Rvb8o|_Qb5%kdtKCp9W7jb<}*M;Nxapj+t{6Vklg&BRq%k#fp7(7%SMjOMhq7{= zw_W@tvhD#pi+q5eaa@oC?UwCR>Jwr9u8ft>(^bQf4)?SGQGUS9ZM|~+B9xQwF$?7N z>Pnc$e`Z%6zk|@_w3nqDjr(CItKO76rYw!*$ z_kAtO|B&g?w>z9qK4M>$6XnA`lZUuJ=%MHP=M9wK&1Pq}nw~Ykl-?N{^b_yl_byLzERTE@l(3q^J~u@V)=Tur}pconqTA#eMA4%e4@Sewtm4EdWU{>{L`%8{}f$S zFZ_O&-S_S--uFvb$I$h4KJRMxey~ppKZAMB7V=I4&Kae2jhsWx2zaE!dD6Q3)8Jbd zkMwo&Vt!DCDdBs0icd-JPbX9j^EgZVUT)v}iSf`Y=#?M8uVMN|{qMe!`q#Sq**ND1 zx>n^p-26nl@HC;1>lZ%VDzYzu@@KXW8q2%;7D4{_{bPi6T_nC+qWcyJA%2G~wcKY} z{!;~JbcxCD>F_;XeRn1+^^JCl_iIq!isyYHkq__X;QfJw#+uw$SbnEi_uTKerF@0D&B{Ad@kv7dO-Lz=m~)x z^y^JkzncF4QTO(7RaEW2|C)!r1w} z78Vs2m6jD26&4j0CEaOaQK3 zd(Cw5Ir~}TV#QnIWrgYYVV&<`v%X(yjkEQ>hO_;1R6Q}iN)2(jQd3;16vr{8c5#E! zet*ALo%R>j?=%_W?DGHHd?`P-zw@VhI@@E_`|N(O-g9AXKfC|W&WGl;E}l{CvEE~0 z@^w}lzwZLyfB6Z^QS{@_0dD*|eeU8#m9D?|NWD*DfS})PaQlu zQu}9J)N=VWj;5ggvhg_Bc^vw2|GROy?tk~sKlLw-m$SUxsvJ!`cPXul*OVHfL8&PY zDaH4vlv?ZAdEMDMF8up`#1Mb+y0G3yVto&xg7-(H*84X!@$X^h`#7xov(~s+=Mh$Z z|LuD~to_!LTn|$H@ArTF-b(0bp9b$p`z(f|Hj>p$iD-?rN-&sra( z&URbtgw_YHpYy!1>P71Gx5C!`^WVeH@w4`8)^=-ud3HJ0{@vOi(RFG34zK$D9^RLt z^#8A6>%7=f=jS799-n<)c=kO1|9boMYv}m%@A+EwJ6m;O`CH>*9WVY<*cw-B{HQ!# z%-ro-{{MUU=7(i|c)!rUeQwtIcbWh1<0)UfpN;di+H1AvzYWK7yZ_sC|7U+|Jy`E? za(=(W8lOv5dAd08r#xOcp9h}D@z(yE!q`7?{jBR-^!Zm8*KqvVVe5Y9+4U=Df9vzW zRjX;dZ=3(`YQ@w3;D0}^SoO2&6Pz#8JFnyXQ~0I3sT^zjw_G3V^A6>!i@|l|XT8VI zkHc2E10R?DriuS){8UbVls|V_&qtpfw*0K^md@ey)^$uv=X1REoUYZcr2l*$+q(W_ zU8l0zZyo3Ur)oXVW$7a~P`_;9>#k?VTidOEw95ad@~nDU^TTSV75-1@|0&=9X}ndw z^|{%)&qB|eIj{Fx_k}+1mhHE$-#eeLO|{192ii{e9}MxT3gf*|N;P5m(f2EKk$i&s z)9N=%*YJIEtA3WY@O_tm%IBZbS@&ky*eUHPsPw?;0X*=6z%}49GD7r78i9giy z_|EsVt>Au$ubFa(yEU&4pur+d_O8x z?#~RdT`8_tvs(4A+F_;pPxZ=OD)ZBX^?e>|U7Y=Wp0mHF^zCL!NAFkE|9-%>$;e92gv)XITb8DVjO6x}Z`@IG9eISe*?{`U^&kNA^p77pb^I zyR7qae7;ff&hJ@S{cM$M=|9b@v*+L8b~&#!VYS0*mz9sDR{gKw`=EDlJ*;_8&za)= zI{zX5KegYghgGhnK0nEN;(DS|Z@@=WD#C3pe2-28v)Y6!-vNQ79bH1dt3;!BUU`vcT0~9k>>(2ls)8!1Lf`a1a~@ zGc-w|xCA;EL;(j_3YLQma4jg*hKQTA;o@f4&w*DEeqHksd$cb59%wzn`=M`YX1_O~ zZz0?OeOvSF_crt$%}+E!4`{yq4nW@rA7~-{K7h8sw-x!c!u}lTKZhPiy5rCe_;)~0 zV*5$xuh{-8^fb1ghMuRFyPXdL!9)-QCV?3s0wn6e?rD0S`x8r14d z{a*#U!E0cz-UYh*zX5#%x(~V!S`V#)9tJRh-SF~ogSvzMzyl06!aasShhdu+{D;FHfw+;t8}>QS za}nL_-8@0!3wYv(vI7)=AOg%wq1{L6OunW|J*T7z|#M5B7sM5q=B23mU-za1gu? zJ_Ie`h>=%Jopqi z4SK6DKxu=6qyABHz7?i*o^XSGrfl1 z2EEe^9QqLA9)>=S@Dpaq&?lfzndL*P5x>_A_n2a9^a`;xfkv+|TdUU$Tc=kPhy@F6 zQNvTf5?ku_&R&>sC7_3oCUpxbD-tpg}4Zh5PXTxxyJ?xAs;8OZ28q_X%~745$6&=-z9#j zi=FLauW_;0y4W|k*c)B!EiU#}7kj&lz0<{Bi~29dGgtX<2qEp4Zxdnz+dqxb#lq=A zxFcTHKMDFG(msgqQjN#=^QHX=+q+=ja2($QM|`%6zqAkIT2cvA`nvw9?97#!qwc zLGj|nGx#pXH3G**r~fV&A89|1d#%H8A5Gdji-o8$g!m2qk7nuOLd46oGQN8X`Uuz~e=Fw3<(M1NJ^=d^e22itn1^Si5I4%j-?C-A9E)$z|8iV5!j@wc`6StLjH*zX zHHhB@Tefj4kmb(qM``cC^N-pvA>`MvOYm8H{{bPk!$;QhUD&dJo%1dU*<2z_bB2md-{81 z%kh$RmhrVndl2zE5tj9LP1{=!AH>W4-*L#<&$2#No{uBmva4Xb!`~VsnfC8IIiJtr zBQGh|;`xA!@osK;8DcN&X|PAR_)B{q>M6%d+V8p8pSak4u;1W$=zf&yFZ~C**uJpe zVxRG_E&mH)ALRHD*s@P#+L^G!U`Tr|?8ET6$Yq|$S8>Vl8uX#Fe=?zgme?Y z;h(7Oaj>oVZ~6QLhpmXW=8Uwh{fw-qHJ{yK%l(6_{~B-&o`qcVhI4MqvSeCof3*?z zc(mma_{es>^ecYn1#@E>;$Otk^G(LfwDVf1udMYY>(l!swME+2`jY-~ zO|6Fi4LlaIJ{JLNj#;)WcO(0#eLj4wezWQ()4Bs|AGII$XV_1UJwj_-u6@}q=_C8( z3dGC)xBR!b)Iqjg)?qR#DQ&mQ@cht=&h;+$OIzU|g7|AcA$vaT4Y0Q({-a<`Y+^g@ zYfbHEWPApEN;v*9nJ4NZY1Z zjk{&baeobMvErA)=Y?Ec%i;Z}EZ66A8qf!RI*JwPUD0 zSK&IBtdA8x-~#INrx8E0o$6+-ec89xIPQln*YBdQXpLKIO7^+z+XoOYkAu(gaZvip zd3gK=%2W2IJnnpl_<$nXw-mruZA5#e-Ts#lE4#>^i@~}awru+oYw(`5>u7wh#&gKl z_{wr?a6Md>Wv$I@*yB;IJWu$I+b;V@L%+zf@BdT!AIt~4fbr2t=*`pdEV1i#JaaShc|`fMMiskLV9bG}1g$^H3yAKdpt8mm8L zd*v9(bsY!1o*jhXD zVO!@XTVPvlwC0BF+iaJ%yThjk*ZAeSUgHwK9r3q3kN32}|2x#jYU9tGr|ffSufqaT za~1YR*lnSj(BL0^T8KLMNc(cwUFb7umsUFC?{=|A;e6KeALWvE_W(`ByCbd4{}1Fp z1ooN3&| zDbmQXv(9_1eB`)T^F-RxN1jJn_B)uja*eFR+Ib4`((Xi__e`cWBKL0vGtd@JE7zAC z-zB)uE00aPU}wS3k3c`eN3NIa*xvmu%0eaaCmzAL$aC-SVCTYLws9-+DuI1>J=vv+ zG`Fq&n4H5q;V~W7xz**mD0Y`$wK{e|`z-1OG=6|8*qU z&8YtmuwO*Hj`zv^4Er_M*0>B3S>i^dA0%?bMyQ)uulUM^OQDf3zar$sY;u*bfqoY3Z<>uWlGz$Jf-cLod0g3SNlg7zS1mxvC=M`#;cp_ z*~9hj)oHx?xIMz4@iGk>uO2(4>$Ow+`t01^eiZNBkK%p$QM_+I$}gZF^^b%764)=9 z{Zf?QAW_io&B3yt3j0(4*7VQ8nsO7h{VD&t{*-?khub;a(Vxm&??K~L=t1LE_PdJ;F_$=uN2pFrIvY6x^fSh?;uezaM%bL-!_oSYadAEbqplG&VkgPu7T7q-2-L6 z3=&a;ZyzPqF}PZ3!r%{;CJ#QPG-dF}bL95a!Qo2N2B#~{8hoqLoWaj2%^lpTG;eUf zbESX&;83LngI6hCKe$|J;o#Sm77gx#x{1`GmyVX2Hk8&+4u^9&oIf;4Z7&$g{WO%? zQ8<+PqnNjs@b*&PUdG$E4NXz$cW`{gP?`^wLuvh1^Y$9vUd!9-czZo>Z{Y2XyuFFH zw+vmX@^2kV>$#o79USf&nxVFL4_&FWm&1J=HizY^c(-9!D)k(;PN~;08Yk~zR8OB_ zv>yrJ?SZ^Kh_?sx_V8iXtMn1W3YA82*umlCVH;I^$}sBBRL&=D811)mczZ5y&*Sa+ zyxn^^uan^)s(gGo9H7F3MDg%^9NXMP$#9y#dxq0^)w5p%r|TKc>rut`7Y!qF{bah< z5ftAxg34(hLG|nyLHTr!p!wf5g6HuFUf&~VKJ<>DdDJ(8+T$^j^79-?`FV|`{Jcj} zem*1rRON=SUpV`vayX5{S)4A1)8&q&dgP6ydgPC!dK8SL@mfEU>Ql+-t2lkNNoQ=H?=3koA%QVZ)#@($0sX4 ztV8bw0kWJ@E~kvkDd%#waXCAe)4#>fJq>`n_i~wWoJ9^OV1t+G~!X@pBtP{oujsIfjmt zUaa0@=y>TfhK`rMW9WDpFouqofn(@+88n8Dm%(G`co{N=j+fzM=y(}1<_tcsx{1g! z=0vGcW89TG#?ZP;7(?TdJch<8Wekm5@tDQ%vx$na4^5Kk>c&!g_l%|X){mujHjJfq zHIAkBG>xVFn#WQ;E$r9I>DrXyTNz_haeinMonx0N?H+rB(jHZwP4tf4pu&A)Z&E6J zZ-Kgr3STOx!I$Pmqc7E~$(QQY>`UX&;#+v3^l$aus5H=z{DS;=p81hqh#$2h+>gd9 z!jHx)(vRkQlpnRv;YaH)!H>o-*^kbHO8uxFWt@LG=f92f-@*A;aQ>B?e--Cn&H2}G z{eET?GF^=*#$5H-n<7ggwjH7wzIc~Pf*K1siQtxr`N`1y9EA<_> zNNK>hWl96bWhxCCm!mXz+#01J$-cah{Puo5HDZQ6Jjk~u$jk}LOmFMeE;~wBo;~nTv;~nHr;~nfz z;}POd{T1#{{So0${SoO;>oUrp)}_Or)@6b}t;=M8T9+yQv@TQqX^bs&KA9t)~Ki>WB6I)DMN+o+55fF}J6L+f&NzDdYB(`_nw$#_ig{?W*8*RdTzk z{Ar#waXD>VZaarNxZF-v?jT_Xw4t7Zgj>LXi=}o3#7vRerPNInji>#1-+5B8ADys$ zrqpc{9-bw2$Ak){6&$Xd@c0}VU&Z0-36(K2Tr=UR1gW(Xo>f}M;XMC3PTr%+$(l^{$eB#-ESgOH zUObuRe;tSSu+~qeb=5F=T!9)Vl^*907e21SofpdO?!qJZ48rchGuXUV^-Hi^H|UpO zcNO*t9t6ebxL{c>-ag3wsqCM|{#opw!~VJKU(5b=?7xTo>)F47{Tr3Pn=mgLiE?lp zy@XjO%BOM)t?O!zZwaCJo)GHS-jETv@Z%=D zr&79*sT3cs!tNqss@(1_BB!3K{L-eM^!i^^a-Wm>=zMA`{&5eDit3U zO7q(hO8bF?(C1WqawyI36fQS4l-i#b%KLfFFDLXR<)0f$7ntlz$0_OS!xAeF41Gt%S8=~ohtl!BCX~jrHk8J> zj{A2{DD4;OL*G;B8n`}<+#gM$%__b*^kbzhT%XoZnh$NEwBKtFrTtY0`*(6XxP^`8AiuRw=kMV9%0lUo?$eeUSTv|-eHuVPZ*7xZy1ehKp3?n zFpSz26!w{_cW@ZZn~*SSPdJwo!TCmVIZLyw$8TfZ!SNLwu4Jv^ z_-fV~)>_s&_S?f+&+!c$ZVdZE^;=U|2aSK&cQpQCCzQ5w|F^NWvv!2heyWr6>*8_f z4x{zZ6Gr=!-mqU(K7C=mN<}#JXJk0-2cyEt-w{sxN#AMIUjfr-KNmPn9^Y*uYFgP1 zQXSLoh2m|N)8zT9O>|9LccawqX$4RmPo`6T0n_EYu!+d&PpIut)1Oq^i>K3k@|Z#O z_nbldS+5y#KkF`%XM6y^0U~9_M=G6H1bx2oj*y?HY{Dl(e!f9D5tPsRh$9A|EA*i%>GMh z{cK~C^lO;yrnGVPK&4HyhbnEJJyL1QY#*gQb11#<97-QBhtdbmq4Ys>D1Go8N*^+Z z(udEX^tqfqkJIOK`T|bBp3@g{`XWwW%;`(!%vJR$o#RkiHYX8k6WiuwsBkyu-^2O$ za{hgsznDw)Gv`wM+~!jKJmymUJm<>%ZK7c=jeFzVgv~PCGj*QI{)qi^@~# z5p|VP&!~K*UQz3mdPfx~^@+Mpsc+PJr2$blDh-S(R2md@v(n(GBBdcww<-;fDpnd1 zb(_-2D4OR{Q8dq!qi9~HMA3XrjiULQ7DeaXSy41!bE4=tksC#y$MT}+d^|r&t}B}; zj-vi7;rwe@8ELoYxty*jS})yEw14S|qT_gP6n!4( zi=uTTqUm^VM$>tQTQr^LdqmUv@{H!|Ini;3To>NabbRoMrgi5VO`jJ7qUrb^7)|^C zpyj(<7PbpDnbP3K>E(V=**%}wM-&rn(r9jSDEbhOgK=u4FrMJFjOj!scp z61`MuX>^9tvgnmc%cFCZZi~KB>5k}iN-LtTS6UfO`+=(HLKUu#-l()D`ZlGt(RV7X zi>B+*d!ox!xIX%Rr47*!DQ%2?OleberPAhT`TUTZXo-GaX=}86)(Q6!qU)5lNAFeI z5&fpp&ggfQc11TS?T-FXX;1VKrM=NdmG(uqD-|(cD>Y-jSLzn?lTweE9;Kc!zbW;K z`AeyHjB&dx-zUaRsc+0cr2#QRl?KL)R2mfHqck|iPiaWZc}l}$CMu1H304{zGgWC+ z%ygxWm|02_Vxp8L$HXa3iJ7M~HD;mGw3t+-SuyEKb7EE~&5gNCX44wBB#}uh>Nz7)Yr7?FXEsMEFX?aY!(rq!@mF|dnRB1)b6G|&% zs+3m6(D`C@3|+sfiJ|LPwJ~)4sxF4EU+syZ&z1EtbbYBIhORF)#?bYprWm@u)Eq(HXN_g}Y+txY`}FM}>Q0_ABj;q5Ca;G4H6b zh<#6~8QZMXE%sxj9o+`cD&Mr*b9^<$6ly3B{oE9YV0(nX|b0m z&5E6?G$+=fG&eR;X=jB&V)K=j#$Kzm zEcQmF<*~OY-4>SL)?BN2#}CtWqCGfKp$F ze1DRg2yjeR8t9m!G{_OIG}tjyX^3Nv(r`zt(g;U_(n!aArBRN>N*#{nN)sGeN|PO{ zl%_Z?SDNa$T4|c2Kxvla2BkTUo0aA|HYv?>lqk)2+@-X@aj(+#jt7+%I(8^6a_m%E z?08CPiQ`$NrH&eMt5E)$zPxf6;X504P4s#8W$cp87E|p87E=p3V;)@pOKe5Kr|>j;Hg(lz2KnOpT}W!?buhZ_A3O^R}FLI&aI3 zr}MVFcsg&(kEiw(#M61(`gl5TD~zY}wxW1CZ!3 zw#Cc)9k`AiFQ3E1^9u31lvc(!Dy@qDN@;ccUrKA@C)_RlYU39ut&6`J>L%*B{SDmy zMs9x-x4)U&-@@&0<@UF6JKMRP9o)`NZf6&_vzy!56Hn)xz43Iu*%wdOAwNuc>xn?UogE`jFXo&=hI z^$9fp8WL#!H73yfYf7N`*PKA}uO)%zUuy!*zqSOLf9(l0|2h(A{&gnM=Z3BXzD}Az zhOWL>hPBL>l*iL^nMnN;l}P>LNTmKrNTmKrPNe=xNu>TsO{D%wOQinE zN~HeDNu>VCO{D(GOQinEPo(}SNTmK*pGf^vm`MFolt}$koJjpsl1QJcN)zdGRaqi^ zt}0KY>yFzJ#>s-#^?tCOmg)+D{4v^MD_rFBWKDBY7(r?fulb)^kSZzyd{ z+OM=JsX=LT(z{Aqk`5|uO?n@SUw=xb{>e|Kb`&JjIImBp=f#SX<@GTf-xkQ@7~WRC zK+Y#q6fBVY0o>PLK$?;VwnJRt{$2W3(lTtU)q2k>{cS<4r1_-gJM5(!Gt4im&i2B)E z=>Xxo=!DuHu;{ef9?aXrd3)rdkvn8QQHy+`ZX%htr?O_TU+$t=$}dlq=Ozkxdm(Qx zUbIwgFIlugMM(8pysfHjach&7lsL}`B!&fy59c#dZYl^4b8SVHqWVF~RYlb6tbHf70absZ^n ziLCD+;hB2N({en*Q)!(=q*6YSsZ{T%R9a__R9asNsnqUd_D^B|RQ69}|19>;VgDVe z^gL`u>eE%SyvkJCe^+rn)v2_fu1Tf+e{HIK&Is#qDebSbmh%0|rN655^-HOq4NIw> zjZ3Njo0d{Lo0n3%TbBNab{fKC+0bXDdM+ET)N7eHbdc~~cCHHh^7a7U9?08+)OI}Q zw2b;^&oU~vei@b9u#C!STt>&Are$>eXyje#d7M0%H=d( zRm*9-s+ZILux2^+PwjF(AL0D!Ill(ZuaWa>T2A!|NTd72foU{Od1-Wf&QGJ`b5R=A zt2mA7Rh3TR>U0X%q*Fa>)2W_y=~T}>=~U19bgE}VI@Pl=o$A??PW5a~r+LwmPUW_y zQ@L&FbY9S&PUi(3=`^o8(`j6~(rH|}(`j6K(rH|J)2SVO>2zKoGH9Ne8FXIYmOQgZd>ogZd>UgZd>kgZd>cgZd>agZd>WgZd>mgZd>egFnx3dF#2n zLN2d}%PZ#cO1QjIF0YKsE9dgIad|tqyb3O_lFO^&@~Sgv9BMLX9BMOY9O^P?9QI_; zIMip*I5cF?I5cL^I5hD%H1jyL@Hn*cIJEINwDUN0@HlkxICSwibn`ffOzLklllt2& zllt2ullt2;llt2$llt2`llt2yllt2?llnU#llnU_llnU-llnV2llnU(llnV6liDAV zN$ro!r1nQ;Qu`g5)c%A_YJYMjwLc}3+Mk+9^Dr%w=3!PQ&BL5bnuocWG!OGKv#Gsl+0eP^`TMTOR~o?afh&)xaL`H` zm*AB&E+H#vT*6nD`}n-tfYC=#Q8OIel46|E7z-y>($Qn>fm~Ha=p5^UfrBe59ia% z`SfwUL=M%<%%OU@4f)bFV|G%wR~sQWlFO~)a;v#r zHQcURZdV=GXAiflK8N;W4LP(QYs{hjSW^z|$9i&TzVvdreO#_sMeQ|LQT^RkQT;tu zQT;tvQT@GEQT@GFQT=^ZQGfcbqJ9rpCHocMvstyNUar5iRot(uxL?^nm&?iH_YU;nn z)zp7Yt7-h2*}sMTTiL&DHO+_i)ifVER?~dwTut+#Yc?$tCOf-a-;`@q~E)%k8v z?n$M=xwOtga;cr+_~MD29}&4!kH}oAUsNvD*OA+&w(rS}e_Q(1=hA+&A(xJyjk(mm zCiZX6rS;yDOZUZFIp4P2WR<=>myXAs?BB)Zb>~ul^ss+#F3saU&QGk7u=8h=jmKeyAHLfuef+_796!+|{tDO~96!t@ehTb+IDQ7~huB^TyOHfpurKCv z7s9s6S`PbJ_^iZrmMb(N!r#Sr?P1>u`x@9rKWBU~>|fw7`?kZyo-maB(+}YNC%7IW z({>)jI|f|rj^WO{%|cY*{N+C6Bg-m6C&)YpH=^($vggD8 z?qae(X~K8=r;>f_eS9~b?Li;l`|_dA`WxX++ZVRXb2su?=@Q>Qo#Ia*K4+G*Zbqat zt-p&c=8*qDv^|UMOJL{Bb*8O|a+VbtO8_(`y{*q#r2(+d^{{2yOFzQCG}>8KJAUU{#>;(U#VWF||5ym$)h_mBWWS2| zBDSS}(HdubJ=-!q>l%tLJA!-)Tuvb0QuKq&v)#qcvOD98T5}!4`D;U*wx5eV+r`dyu{XNdJ6-JkF80Qe z&OCRz*!x}V<1V)5?ezC^v1hy3*)H}*7dv3L{`Wkuc%Sl_hxOXd_7$*wKcM(x*jX-i zJKJ(xd=HV2v_-SiKhnh(AG*Z5*zGR1?_sBp_{eETy4dab;34}z2>XEci=4KYN%n(? z7nk67;ou|Jeilv;rT-bkSKy>g+O|_j%l2&8;xCH-N@yZ-qN#k28XC?wT{9G+>g$|7?M+TwyzjJq*^ZqEf7n+4R2(9o&4{mPAzSUMTU~s9 zruc~$quh~p)%ISzn<~=9&Pt{Dzi>RNhmF%Yb#Cdq%xOou*jX-ik&7L<-07d?Vpra5 z|9h^Qw>s_m5-RufEF4eSzBm%&vW4QMU2&JwC-QD*e3pydevi|qsLbh8;bKSL>*8~t zi;s(Ko^aMJ%Ec~ru^U|NlTLs07pGmB+VAi7c4Rnhi~xFegPpVx8j0{tPy>216fe0F zxA68NXc592Wjy|FW!=PD4E062&8)Yv-p*PAjl}jXtaq^9$y&;K7Ze|>#NDj-u$HlI zm1+ucFVqwH-N#xkjO}{C_y|Z!|>n6x}CQ_#QHE)`t9KDkFY+<`WR~k>rU3k zS)X97l#0J6S)YQ+e4mD*Iid>cfbNppQJ-g6pJlCPeGVE7zvnsp0&5NHi>xm}rQgdk zjK5lre}(l`*4?aitgo^Di}iKZJy6-7d!bp-H=yCreH>p8mF4Y+%JSZ1eT%h$^=;O7 zSl?xBWIX_t{c#Xl1bvUSiS>Qf4_FVeHnV=ndKemo^dCWGeOjP0-;X(b1bPPXpK!R9 z^;4)Em(QRW262?NjrDWZW2|4WwzD2*{gU-7)()u5@N3p@SifcMghryg?_?P3=zG>5 zpyi0_f_h>5kI*9M3D%#WvVGmq2*m#kmGkH%RF2m#tUXX~gnxzFpr@d69iN8EcJ{LV z2K7bwch*0kkqGy3_)n$Nya!a~HxMf4-5`!1%<-PALwNg8Xb}8{L4BcK&`9WTsI1=zjvvYK-cVVO zQP3>tInXHRxvV}=S>MsDW1t=gkA=$oe4(=6{doI0s2oRs)&QyK=g zg!&@=1gIS63s@&YWq${;PGX(RdLe5t>qV>=LuLJ@u!gWsWesHwV-07W#yXvK25SWC zOx8XpSQoOUur6X< z%({d%m31lWGS=m+X{_n28LXMCS*+QtD_B>u=CH0}UCnwKYc5pIgEdfJjN9d`S3u=_ z&x6W&a3wSndKHJSX3dAn`MMUG0A0u7YoK!C7C?(&UJEV6_Ul-$hptC>J?jn7BFxhp zIlKW{fbE4Gz6mPxzZp6VdJ9y}^CGGE+X$8Zw?bvUn`FEjuDVG@zMK1<^NtX{-~wXcmO;CD#0%BBG?Vy0PleJK^y1FJQxG(ScwT7zgHn z`@!R27kCl;3%mv11Bbz9;7jm5I0?=Gdm}!(gIKT@Yyw-rL!bgY1**Y|;0QPhI>BaK zmn#MLf+s)?cpZEUJ_BEZ@4#@ARVj%SAuK7P2f&&A9xtN z0``Kp!3W?=Fc8yJh%wV2FYMCNC&Gx0Vo6|;BK%TRD$QhtKbdL01kn*O?dwy z*a+?b+rXos68s4aTuXBYp5O>rhU-6BpaC?2Pr&Ek1Q?8KH%TA`ECp-8I&eMM1nvao zpay&e#x~>nBbW#-0XKo$!B+4v*acn&{{ruT7H|xF4^DwTpyB$-FmNvL2NS>)Fbm8F zOF<4;1FixEU_ICbs==G!W6%M91pN|yea3^yU<#N4V!%?60ak-6z*+Q{Wun2PS|EK^T|`=7M-IA1ne( z!3vNIt^#+1hrw>J54;WD1Bbz9pdEYzx6(*4c-6^;2`)2dA2X1ZX zcaRR&fc4;U@GN)<)PeorFc=}P+k>k>0k{J^3w{N^gMP;_ufaTU1K0|l1$E$E&{SHL*O|0 z9{d8_f599D6F?Z42^NA(kOQs&*MdT@89WFc2UXx5@F8dg$3O@89(03KpbzLh*nfjT zzzg_;Y;YO45?ljr0Jnh6;7+g=`2LFZ0D{29U^bWsmV%YwMo-T6fonk#C;|6?XTb?z`vY?oj09uBG!O~mzygp3Hh|l~ zR`3XT0z3n1zz3iOw1e-!Pv8$=@55RKi69-^49dY{U>B$b`@uKh7w{)={}b~Zj0Hhp zI*0^uU?E5c*MlwKDX@Tzz*XQ5PzI_%9e5iY z1wVn)K%7B4z+f;6_<=xhA(#&4f;g}MEC(yVBVZSJ5xffyflt5}pcDKG{Dpk}MHAD2 z10;b|unJrUZU=XPU0^qO8+-tcfHn}I;nO%+0@6V)SO@L~_k)MQli*dbAG{A*!B^lH zVBmi7P%suu05d=oNCash7ZifqKq;sIFMuPU3)pe*XdoC5W`HDc1=s*?2iw6bpaFag z2IKjH;lLLJf@vTU#DNtc7ZiYEa3^>Hybj(1?}JXT8qXyZfXBf1;1}>4&~YWu1B8Ov zU=hdz@=CP4S}L!A$*Vc?iio_L@Fq9`bT_mgECUtbUC;r31XJ8KaSeD4w1Ym-uRq!W zyuo=O4?GQi1YQF)aS^y4yae`xez@Nr4sHTf;03T7>;vzB7H|yw2!03saZlb4oDb5$ zCQt^dz-~|vhTvX(Bq#!9;9>ADZ~&YH{c!)@3ycTTKr%=NYrr$$WzYbcz)|oe_yNe@ zml@!R^1)0H4U#|xxDIRum0%zE5VV7V_~C{zU?P|W5ABuSZ zCV+4-7vzF1pc)(mZJ-aFgL{vA!C~+{=mV4R96~Hu0M>%*K@r#j9tAbvRgg0r^A7aK zJyDXzd)q7CbGdgupZn5?g0;gM?n>M3A_gOg9G3YXazcc&m<5m z087CNum;=<9s_TK_rQnX6Yvc<2~LAEz>eSA83=}f(I5a^07AiR5DS)r72s-c8z=|Q zgT3H0@IB~%t|mr+JRkH2coaMXUIlN1L*O&;BQQr}y@1gm5X=Gd!DXNXRDk{95I73H z0$o6i(ZonF222DOff-;nm=BhLm0&F>1b2XE!7Jc(@D}(IoB{^!6Au6vgJ~cJ6oYMG zC$Rfs{6PQ+0%2e#SO+$Mjo?A>7hDYzHZgM;8B@F{Tf*Tg6=7F-B6fD&*ocno|6egM7T46p}aY{5lfE=T~Y zK_1uu?gfv6UEo#lCO8V(!FS+i@CVSwV~&D(U>&Fgd%!{PF=z+hgI|Gu9_A7V08>E} zNC5l5A@B?61HtE`-$5+M1{=T~;9l?;coBRGz6HMmTOf`XU^F-%gn($U803QM!A;;5 z@D?}#4uexbpMbFdLx2wm1d~AsxCBIlB(Mam0r}v1a5LBjo&qm`y`UL<3XX#xK`%H1 zY!_g^0?r4sKrBcEnP4@@0|lTE6oXRG26}-p5m&guc_0WxfIP4c)PjBBAUF(;fxmzm zgzeyFuo>(CP2dQ)YLX^y0Gq*`U@LeKyaIZFJ{fZfOaV*5)!;@@1nvaez@wlNG=g?; z0{jMsU5I@kSOgvgb)X)+13m=p;9GDKoD+<32GJl3tOd7$a!>`{2Va6;LBETz{{a4A zCWr=0K{i+m3PB0j3LXQyz}uh&bb#-{&!7)z7h~RoVITlFKoVF4GQlda4r~Hjz+Uhh z7(NAMfsNoEP!A4+4$waY^A+3+s=#aDW6%W#OvSnc=Yh#!7Kj6jK^~|Ad%;2Q8E_9p z-GC361g3#2K^bTSAAqmGNuc8y#v$M$FdfVW4v++vfDCXQxCLwmZ-OT92?z+s7=foj zEqDXG4~~Hj&;|UbVV#0V5C>Ahb)XpR055}gz@NZA9mjPr8H9sN!6L94Tm^0d#o!LG z6+8r<1kZropdP#nJ_h)4Z!rq^flP2CC;{h3pijWXARI&j2S^6lAQ#*Wiowg^ZSX1R z06zh9CXVeO3#bdVv%-0EX6IibnQKnsl6{&Xdj3i?T}cFTSJ#=hs7H0BXK!y zpX6yDi?!MjagFwgxK?Y$?^S&&Zqhyz8?`pENjoMsc*1AQN_OqzgPKxKWUqp@8 zBkHtY#UAaH*r%NqZ)?AaCT)!NzUHeP()_g#wJF+REkyfRo2nhrLbWz6OgpAc*E+Qb z?MLkr?PqP4)}uvgr?olSZ`xe#cP&c$Q;XKlXtA12cWC|eIL%GJRO_$DYXkLp+6X;K z^VXBKQTlw%S6`@&(-&+0da4$nFVn{B%e6o~O}ju(*Cy#1+GIUT3)Zu>Df$X6Okb%@ z({r>4{W5Kio~uRaYqV(naxG53Qj6EG(h~K2ElFRi&DYmy3-tmmMZZ>Ctlyxe>NjdR z`UdSX{U+@y{TA(N{Z?(Qew$XHZ_#en@6d|$JGG5^sdlS=kG4rK(@ONM+7|s@?N0qZ ztyC}9?$+h)T+ z{+3pwH)^%|0qqt2J?&Nfh_+kr(DvwGYj5bC+FSbfT7&+B_O||`c2NIaYtn^&NZ0fa zbzT2RH}n?W)IZkk`X{=(-m3T4Kh+25pXna@QGKA^rVr6S*GK4I=-zs}?x%mL2k2kv zBSIf&%+!Y)m*}I6NPV;sqx%~R^z)2``UGQ%eu1%EpJb%z7aAG*MaD|~Vq=v) z)mW{E8*B7w#^w49BTt`ctkdTh*Xpsxb^4{odOgv&MW1JE)RT?d_4!7Lo?_ggry8Yt zno*`_8s+-c#{K#_W1D`Bv0X1P9?`Ee9@TF(cIumq$Ms^PQor4JQZF^0((f^L>06Cw z^!tow^>U+Hzu$OWf56zQKWMz6Z!`Ak+l_ktA!EP(u<@q8!+1-7#AwhTHQv@AGv3iF zjCb{&Mx*|?aX^2(3a6^=FNb^lGC;f6n+= zf8IEv*BGDZFB+}-%f@H=tHx1%x6!888K3K~8Gq{kGXBzEH_qsL3}NgwG-IEk8~Y8z zc*`)2w+)-|u3jB?+&I_x((o}ljM2t7#u%g17;AiQ_!>VLenyuu z&NyNC8{I~LancxX{9>GE{A!$UoH8aDr;Q7YUL(l(-I#3j85bIV8F-x7oNDMMUQBL= z88$QAu$$A2e&%$;-JD?zFe3~PbDlBKOg09YON}AsGQ-Cm24;ahM2aPmyn~`pAH!{pe zjV$vqV})5^tTcBTIp*WWYV!%>O0&|q%6!te+I-5$H=j1vnpMU+bC+?w`HZo_eAXy5 ztBsq?=Zss-=Z#I~3&v)%#wamgG`5&88F!d38+V$uMydIVagX_`QD*KowwiUuedcS% z{pP=n?dI#oL*^diVRNtXnE8fLVZLeXG~Y5R%?9Hs^KE07`HoR-zH7W-HX1eN0plg} zpz*T#o>6Ny8Lyb{8?Txl7#zA<{;a7<`CQY<}lj?bGU7aInowx zdfR50qii$Hb8L~Ok8Q3w+7@e$wZ)nKwoA1L4aGINqG z*Syenxp|T8N;AxMl{w9JwHam0H=}K9%~)H3>9AdECfL@S3v4%;DYhbWk!_>7*j8+& z+HNzK*={$N+qRflwo-GY?QZi5+g9^R+r8#hwsP}o+XH64ZJW8)w%uH3d(x582wx!?t7Q5nH?YsqIVib6bbmZu`dUuyvZ>+P*h`uyvUyY$wcNyzN8# z`L>VjfwngL1Y3vw0^2wCiT{hedjYel>>vNXX79cBVa{V_%dZAM6P zN=R}JNg88fm@&*4ha^ct5|ShdNs=TZnn+25P+Rc2%>rP!nve)kND}YO<}3nrXXR&9=2uZ?<(%>)Gy6>)X1h4QyT2hPH0% zZMJ*WX14C??Y8^W=C*!n3tOprm#s`~Ya6I`unkhX*(%k0Z9~-iY(v#T+iJT8Myq{okE#7_PpAWIT26I^#j{Zb*=4lb)D@?^&{IJb&GAUy4Ciz`kC#3y3_Wp`nm0hy4!YC zJzzVb9<-fRzqg%NkJzrNM{O4CF`LbL+-A3)usN(h+Cr@7Y~j}Pwg~GbTa@)TTdY;J z$6Kv-&1$o|tikpg)<}DTHQt_RO|U0f-S(Q+EPJxmYfrJ(v8P%a*wd_y?X|5_eAt2WWh%Eep}zNaU*?G=aWq^rY<3yY-IQ0bR+vAl<(|} zOwRYcf4;Cs_!iHY+MCR3($`i=7HnjXl5uMj|Am@;H6MM{x3)86Esd$oM)Mu9k=;f1 zjFHKKZNEkEEut}>=P_UVWLvT+6I;}POe~T8INuf03VszwCf4zrzsxk& zH}%seeAzaCwu@}EMPD{yyszdIvQ0)=ra#Lk+h&wCA`|P?|Aw*XKmD&4i|he^Ho%|h zf16lL9ZM$qW#|Ncd!y>>)&C;yBSxnGP24d?_Ry1j3vOh3Uy1A;%EYo;2KnZb`|T7{ zMZaA1&lhMNdVMXe`g&zQzdF&kZSVTC4Pj$w!18x>^rjBF^G7)>9MiGJQeCXRsJWDgqi z$@MmPma~dc)`U!K(IxhoShhWTdWSJ}DpSAw%d%G~3lG*?5Io(tgsdfjvKV8kT-zwd zUVWoX&L`KljwQtTY6sa6W4?W44;$HGvd4_xVp!3SQ*55n=ik z-AeYHk;$|78yqR(9J`I|6Jx60SK?Jo))Fz>x4rs0#IdSTcEVU9l}wcBBk{CRmPMHu zlXd)AV={3b*RLZU3)fq<@+IHM+33&o5hk`Me2#Cb+{#6iiN0Uq&(@HMwSDR@+fF9> zbf14}?>Ix!|&Rb^I_$+eJNj)-IR&fWO)tu)GNNSr~TO!eKb&Z=T0?qTXuwwYfgzUCVdm1N>rsHOQ@x`wj5=q3J5 z*1^cOl65sQ$0F)8vVN@N86&$&*>WR`c->du>rDOGC>u(dSmGUjc7V0TRMXcnwxe%< z$gI<1Uz>ZAi8inGmu>f#g@*7;Fr${Y-taB)G1+dTtSM7}F|s?B_+e{~#IpL{7o#}P7Rj;=EFs3JER#oa@3(w=e=wP-PoFAA z(}iWeWuxBa*ZMJk?zIt=6&PjuIPGR+XDJ(JWCND_#_3yO{2J^pW%?3ljk2GaPmI5y zcYJ+SjZD0<-$y3SoyBCLRi*wceTA>D>XC`{-bE&s*yhi6`==f!6KBF-$iz6W)(; z`u>7HyY3vj-nU-;T3MX`+E6B5D>{*hGg5al(QEH>td&%!0ZQ&i{0i8}#*n>gWc``? zhLOoLNYf46*<_U6NhZ$4^6G0MW#UNIUv=du5$o+qeexI-EwF#=+sbNWqP{XRG4*mf zSK)Db`{b*}6sC&NE_>~L%EWn6_Sz%79*LID4@1^d3TgpCWo=9rOLQ&2mr6^~%>lIdWnxzUv5ibjvIAKy69e zU*8;MkdZfkB|*EmiUonA2PCel!+zk?)1&q+MnrH z1)`s2uaz@ZEFq7h=+Ax2runn0WMV$sE?-vNpQZb=9Di2e&-8nu#Ih~@S)jGO%~a8A zYy4T{7rq{^P9|EPL?*7*<=Bwdtbb!fh<=gRtn#Wp&^4?6F5v>_qW?EnrSg0gXpHaq z(${)@yolDzC93W7ZLj9flKq+NA-R>M9H%uB^_EU$J~0w!`IpeIMN^Ea@=8#CCL^zv z1JxJ(m9IW|#%#sf`Wf|UOcm#x6f&_6x!x?w#Q8w3x9xu4i0$Ifdit}zWc!Vp%l+Ah z93@#v`nJg}|Bv|`uS9xH{|}UcZmB6 zjH&whK%B?hQYKz2Zp~sz0B-MNi7tDE)Otyi3qu zXGC^}TEr)i7ya4uhkd>F0hw5@Je&1rEAL6s*Q?*(bf1yw*Ttfxk5VSqtDlucpUPJQ zc`YwrqvR)95$pec*;Pk<`$)f=Nwnn?f2Q}nSli9V=*en&t6GwYw$yjg(p0@{y}xWH znd}!apL*PPJ_scfd!fb&-Q|HK22{+^pA?t z+{n_AF-HI??%q`jabc}>31ZFZJS0W#(1Dt5`FxA zV6;W<-_tB1T9E&fZ`nrvO!oMXl!;djIkM$wm!s}C<`ZMha@v;#x}uOrKq&M5^;oE) zOss9JzZQ9<1Zq{Fwgfr?WG&xQ^8mNLkLsM^Z_pT7BQmkyE|7^nm19kgu&HOcQcc&F zm2Hvz@~`(spkq4XXWy8V@1EA2^XQ-=h54uA9yZnv;pWaHqdazJ|(cvwln!uN5DV(_8{T++Lwf(U%G6t`e6htTbwg@Si(n zX6N^P;#~Kyw^Y9uN%WPh?_aNFT9B^=%gIE2M@{@F(DIuA8hu`7fmLnrjm(q zDnEf7O_``gmc{eMop_CR`!m^V^3^3!nd4XAR=&rwRXKXAS(>bt5MWc6)Fkj*!r{x?xt)Y5C#kC`?`CYSKoeM{u{Gkv}xx%v|NI2C&^CEfR$ zEHn8U8t@gCBTpPDa*358++m~YHOsPJ{blA*-~PC14R>N1EzqwCj~LmLOg(92a@j!j z$+pP$>1UO{u2(MGwFZr`2{!G>L_k@OyRc1gWi04K!cBINx!u_r0ja63=hNjaS`3WwPe2%qN!kj_j}N z4K%f`)3-Lg_2R4&XdQvdT57&^=-;1T`^1n;^tir+Xo1{=vWEt_e9JyTCeC%wlYL*H z_lw-3yhPs?H6;_h*3qBI`ff|&Jan_ZtgKI7JL;dSh_*bD!reK>YgGSK?xCuuFVTnN zUVNk2GmZNsjIx1bVu?!j)IOuE6?f{0-t9#urVb$!XXSkE&k@_v%%624bJW+@QA8GQ zWcqzOj~Q7x*?1$9-;KTE^!4OwGSQRz?=8dlVXVl0j6&C*PBJM{%xR@OY^4quPUvOw95Yx#GUxN*&{ zR{wYRuH5n)Z-<;uW`UOYPnX?zZE~v20*wgSDtVR~+QBz+WSM@YAdbsGR|@^RaH;f= zeyk4hXYw7D{ESw9ZX4*++W$M3ko^}Zll>QH>i=BXKfB(4cD@_8^v1OWntJ21e|=9k zz2A5JEVB~IcnimWU&i@9w~(2fPiAtezO49k@Bo>(F8Oyd{T-FK?u_i|J9_SH&EH6T zSa07O{xbcupcO{hcFM%7i!8f9nYfOS*EI5-ro6h*Kiv}7B^S7k5LZF^caS3M^Z@r^ zj?~vH--pU~srqMHVm^Jn6~=rrleOrdMv3{}raqCa@n>?|WJ_iHWSjN2eE3haMXuwY z{bcL}HCrChw^IK8MUG;9i~c&bS)uRxPj9LC+)SVE6{8lJ$t{xGA^RmzpX$s0_LsH< zDw8$KzLM9NdSBHZ^^f)&w+dd{3rkx2_D6rVNW6C*;LnzmiM{oWKfAkEkkZenxu-wV zf0sMZD4Ri<$Yhz^)BBhz>idE0+KBzcH~y*@`KHRx3c6AzMrRMQ^~O3%$UZSLy(Ao-nH&-F z(^`4#Z(u(0Dk-mWZ=5Ce@%3o|nds*WvaIio%661+fA(m-4<7E%J7M0p^F8N(;eEyJ zrM@=H?8fW8@qGHb<1fbOt(V!ogSbDRcLn_N-Jd-{CdS{5r#@ccTed+Zcd{F`wD+Hj zXLO=YqpTfMMSXG|-6#|5?L+p6XaSk{?B+jR-{>k|3uJcJFkjgN{;ZNrv`TK<&HRGt zj~#x_uZlo^l!w(kyrQze+htd8-MSSOl-#h zvRX#j2r_ZTJV_?nlDfnzBIm268$HC-&FepU(L7qv)2BsE14LlJ^fj+KMT~-dh2}kmGiloXmcaV z#P)XN2oPnR{PPu)iS||avr+!+DS!67KYPWW>F44>ll30=P_tNv{tda<=a-mIZ0|F* zeP`A{XVGVwDq0Yz&9Z$5*Ynp;jI%|cw$$z9+e&>zh_>j@krMqUM~?SnUk~L^@$JF& zymy(wzZ7MaKa=N(vMu~|jj8(7DzXQS>@l)ZBa>H_<0unryYUh?J}x_L^R+L~5qdvU z#VCHzpUE@GAO2u za>`d`^Jn4yEZ(1`ko9{(@0T1h(b9VUta*U!#=Rl8^2XbC<63S!^*^(Y|E+~@(-`C8 z_>g1wfBWU%>lZohWlsh=x;LKo9nMop0fr@1j3j%2e^*H0~Gv9;~sp7yR#? zW!VA$R6Fln#k&N3>K!lX?Yr?iGEL(8nciVxM{nxL( z1C3|-x$XVG`TDtxO!V$#GVzH+y^FrGHz|96p5A}|`Vz7hnFXrlZ$Uh5+pMoc_Di78 zOLqC^d(dpU_UT6%nHY7W{n@wvsYl7gr#NTG#5&|J&mOUul!LG8>y`JP>-WAMG0Nn< zuTL_c`2Kg6Ka<}McjdY8VygVjom|I}jlR1`&1Qf6)Y=i*6-I9_38J2h^hJ=P~ta+#bn}6Tm6%A@w@AP{j;?99rWaD zdQa-V1YEL6&*Z0r@)vpX+XDF;T;ne$7)$7Pik>$z{nw*ccYH@))L z!tyu0dRt~L{#V)}e>bduV<$fKlRd8gGFY@g{!Uu9rD=q($2<5ly-&sOv+t)&Y>`}t zTsBZ&WmNn7`s(=0^uOUEevd9|3G_>7*}E-RR{Wl!tv?I2Ub(%pCuQ%-9+&Ht{W2}a z*Ji!%v)}rE?)yM3kiYkyqL~!i+j=cEYM7J-Mkc?f(|>XFwo#@pA$nI|??$6c&$b!a z5tbEOF8At=L|>U4o%)@B;%xC7Q^jw3^;)d&=qP*(z0v?Q^nfk9T|l=zIDhuuk?HI#4nBeF;$%PhLBlJ`g$KD z6H}*=iMD*_pDOQ{{58*Xt^Z73)3v`bqmqgGLdnFD7f&Yk$4s)dtMql;IFp~o>vuVe zEz<9D7MXsRv&iHaUwMmfz52b)*Us`};x6Xlnr7ZuRN4~tRJhN8}}v1 zZF`PiKjj#;{K(owAISUtU8w z1|KzAFWVg2$fV3L%JgGetWE!Au*j-0^?#-Xfwt(M-Ht%Z%6<-1i@xRajjar{Y@j9N zeE-hg3bbsXwdp-B#;N{ot{9zqnaK3-z(tnc*mUhI<)us<)BpNa#(#Q=fBhTO!R<`S z;~(iq<6~svoIT5*>36_CX-w7c*O+2t@|y6T_9kVGQPz`egOQc{vkskn=fnreM9mds z;#KG&GI4Z|^JmYJiMA{t6KACN{Miq*MfCGdf7w|wQHy>Twm1vu_s?A0N0f<7wppGh zWm)80-#*v;S)eVS-PzZwW%u~bu`|1vuHA1hrv_Tbo6INv_Si~)7HGZenJU`6)t?2r zllshezE^DhK7aArE!Qj87U&8&&^qM3@Uma@YXNaA$X5t?RWH{jmk88rfwofimAo%n z)*L9)*Vck7d;WSEztj<97{e6uaJ1HLQ%=0r$ zN+ETdlwQp3K!Qnh-!=yaQvouV~Xr83Om4ea`C-5{4MgnW* z)r}`0Bqp%@l49K(Y~V9lVBm>e_;-9e)B0!^D#;rs3T@H^ZcK51N7Z^V|#*Ppg=P{eos=|DZWo8Z-~fg689ZpaobS zv=9gK>n7isxvU zl>I@c@et3^Fe%^h6b%zkS3Hj=_*t|``GIF>n3R)2m+{A-EBJHJRpjZ5e8O-k$c(=Q zsdzcahQ9|n@Jdh!noMD6HbtPt6oslO8beI67;1{cFdjX}{x!KU&Xj=hrX+Nll2J3I zqRZsQWRnL|cnlZ&+LVQvrW~wg%Eerh7weev@n%yUyp@L@nUsd6`gpsk0X8=^#5+ul zu!X4!wlOusyG_lplc@!E<{2N13ZC#`QhJ)&-~&A6gAu|rJ{Tc9<%1Do>WqU-U9iH` z4Ttlz50ml`&-ySaBTPNDxVp2ZhSs=WU@+1&O0?z^Am^ID7U8b4%g=rS^*o zX&xRj&ByOd3-GXMA%1UKghxz^@hHy{F)7FR$(%_!&T~WVZr+S><}Da+-i8V0?U-oZiEi^QOgHbwo6LK# zws{}soA+Zq^8u`HK8TIXhp@5vFg7tC!4~FY*wTCgTbWN{JM$@QZ$6Ek&1dmG^EvEc zK9Bv(7qG&72`kN)aj^Lcjx=Az$IU?|j&!pbpD?R9&TPY{%?_Mw4#6qrFq~_SzfG(fARA;wu6VWOo8CRv)H+tM7fEG;nG(h9wn)>zxp z2J!YZ;B}EMsuJWh`#A zjKfbX6L6DdB5t)z!flqx_?cxYercJ8do0s&uVn`Av&_VUmRb0%Wi}qR%)#T9dH9QE zK2}o~V6?grUFsrqtBcX2F2PK7DQ2t7u(rA!^VJntpsvI^>MFcdU5yRZHP~2Pi%rz^ z*i_wscd8q)wYmx0tDCWdx&^zb+pt*Ojt{Cku}s~CmFjLBtnR@P>OOo}-H#*H1New~ z5J#zpaGZJ=$E!zhvU&`ss3&lSdJ>;kPvHydX`HK`#d+#Ed|5q@^VJLZih2oOS1;pY z^$NbBUd1J95T6pit#SY;%T*QMS8cdjb>Idy1V2{8aEls&Th%E1T#d$EYAk-C#^G+& ziC?KM+^;6!K{W}#Rg>|MnuYvDWx0Yj} zbrANlR$`I03VU0JVn6F}>~9@`rPh%+$T|uutfR5gItB+@$6}Rr91gKgz!BDo_^@>n zjr4!_&BAcoY>ctZ!C2co^w{QOH`@Zd*R~M5+ZN#i zw#E3MZ3*_VEycdJWmsZcj{R&au)l334z#VpLAKR6#I^>9+ScMQ+j<;s+kg+*HsT1| zCVbeo8AsZ-;3KweILfviC)sx5)3#kW*|r;}*!JL5+debTQ$#-VwC%@NZ3l3n?I6Bp zJA_MZhw&}j5nN_FhVR-=;7Z#`e9v|YKeV03wYIbPsqGwoW;>7DZ5MEd?Go;>UBB&&LM#I(VzSF5YIZ zkB#gNu(7=%HnBIt7WO9C(%uX^+nZy#y#)@px56jvt#O>a4UV_B#VPjoIMv<}U$A$^ zS@tgYqP-g~w0Fm)_8$0_y(fNRFT_puBK*`|jN9#faF@LVzp(em-S#rvYcI!r_Cffq zy%G=EtMEJfP&{rQjwkFR@CW-yJZT?=KiWs*Df<}w-98qt*vFyjn1G>uNt=2(aw9gDEDV=>LW8J0ShW0_+G4sfi*a>pth=va+|9BZ(`u@);G>v6DS16DaU;t`8r2*);j)Uh2$J9gq@j$Js$u^S(E?7^{)eK_8+A16Bw;ERrfINNau*EkO2hmIq- z)^Q9EJ5J#Dj+1!AaSD$*PUA7hSv>AIhbJ88@dw8RJn6WEKRPbs1;-V<=(viuU>=Oe zU!3CtNQnzpRsE^rDtVJ&8#WDgV6)&5ygfJ!n+HeWoxxGqE;t(72ghQU;5h6a?8N(m zUHCw70u}}*VXxq1>>r$pD}vqlZm+#at6 zcSI$mGg}>mygv=;g13Zp!v-PUv0+FLye*_Bwh1Z3wjo8>E~FScg!I9ZkP@s2>5rpB z%5YUkIldn<2v>(x;)fwsxHe=c>sp7r#)S??OXvu+g^omf=qPlAj>gc?G0YhrI+i@l z&=oq4JSTJl!-h0ezPp>yy+=sY|WIv)>*F2JLq3-O20MR+cBG5!*|1TTgzMKx?0hK4Q2 z$gmX{6SflL!&YHd*lNrUTZ6ZRt;MEc>#d?{=@ z&I#LzbHjGw{IK2lYSNdLiiYri5QE{h;gVzOh8w}M63}p37bbu#ycXW zVvC4r*d}5+-W@RmJ4MXI5fQU+PQ+}S8!-o8iI~UseiShuH$*JJk0TaR{HZyb3NJ4Bwsj*+LaQ{-9f9C;4!i9C;8A}?Uq$V+%{^XoQFZX~sJb{U zsy@CF)d1g#YKW_&8sR5VP4L^OW_Tv5IR;m2fi`|>f7FFwr z{i}7x;nlj}qt&|M#A@B~#cDlpcD0_kxLP4DsaAw4|+3`rUvl#D*S%O_+mf{03%kaUN4`R*OLzo}6aMdj;Q&y^0^i^7vw9O{^I|k5zGBtPQ`4b>P|9 z5WE;0hL>X_@b}m#RH{c~Q1w_0sUC+B)t&f2br+UaPrw1ylW<`5WL!}_72mDy#x>PF z_+j--Tw6U0*HzEK_0@Cv8IRByvP=aKEI-WJuk_81=55hLO{ zV|-i}Opfb@IdR?b=C~f%G_EJMjVr`^x0ANO7Ok7{{32WvzZf^gFTu_6OL1HLGWbdobI%4{JO3V?E~qyv=zK zn>i0*bLU}f?L2~aIgeo*=Lx*qc@o`cIg&Ln)pnT&5cQ*pV|jVqlVe9xJQA2_pcjWY*7bmrn(rx!Om^YK$> z9o*uqi(8%bahtONe&%e5UpO1#m(C`5$k`0Pb2i7r&K7vY*$R(3TjL358~nl97Ee0c z<0)rH{K?rFPdmHd&(3am&epHXR3OGjO0b6Dzb?I8>XB!?ij1yfzPaX!G%)wg8W53-OG$2!GWU z;~&}*w7HgIm}?nEyOyKNwE|OIE79Xxh1ssvSl6`%Te{X_k!wAcxi;Vs*G3%W+JqBa zoAF847M$i~Y{I*8j{hj54MFz$36 z!OvaCaF^?ZgM0XqPf=Vaai8lHe&sri`(0=8Yu7pa#&sUQbzQ*kT$fntFfs;Qm+=qR z6-=mc6%%Xlkb5Pih8a_9sMxlK4cpgnU}=pI98e<+%WFj7z#36Fs75qa)`-Qb8gaov z$`It!i5gCPqJ|5fs*!+`Y9!&)HIng}8mTy~h8t(r@ZbwIGI3swEPS~}4t`oA7x&fh z;vY5gF)E=BMkmz8w1oPYpU?mc5*lKMghtpgp$T?MXoj5=nq$|57PRXAgjVD|kiS8Y z(3-rbVNpUGN_rzBC!sBlPiT)55<23O37zrTgf7f89ocIM-EezCcifTC1HVYm{3MNR}#v}e>b!z4kC|Ati)=GRT!N(6k`&HV{GCG zte!X$;}S<9p^x8T{tZS>O5 z$QdbdJN}Zmlalkur>Tj%@VCU>XinOL!AbitH)%f>Bptw_q=Q(QbO>i89mbhSNAQKD zWB69m3EZA^5_cz^!Y`9f(eJDoLLP7UYRxe6g*7Aajha!oq-HdJSu+;*)QrP@HJy08 zrVG#2Ou#>CCSg)?GTxk=iglCSSTEUwos%=MPjVLaP0qoR@w?AwQZ&K#q!IXLUZOVMSl(GPS zOIe6lQWoJKDT~pWx&*bL#3;x*4BI-Gb9nx8a+q+i_{?PJBCc7cNiTjk{9!;1{X;aCho{{3-PS zo=!c8Kc^nTbE$_hJnaZZq#eV^v=f+>b`rDGPGN4^Y0OJIi>=en;azFxu}#_q?2~p0 z`=(vS{%KdRH0>&mOA896Z_~^;Ax*`3X*PU0&4CNjLh#kJFx-_EfnTIW;hwZ;+?y7Q z$I{~Pc$yPWq`B~iv;;hvmV_76lJWPnRJ@Yr#vr!`P3}xIyR*>Z&Oz0ki&nQ6quu!! z+;uU*T_2O(4KT&s5L4ZaFwNZr-R@?X?rx4*?iQHsZiOw~t+AE64c_H$i*4NP z@jiD)?BVW=_q)4bPj@$bz}+4Dx_e-WyC;^p3vqzE2+Q5YIMCe(2f0hI!rdQ-y325w zyBr^N55mXYl{nU2g-^JL;yCwk9Pb{16Wk;5N%tt6>>iC%++*+!_gGxw9*1waC*U&o zL|o^dgzMdt@gw(C+~A&uAG@dHHuntt%smr7chACI?%DW-dk*e)&%-a>^Kp-R0e6_7-z6EXR+b}eJJBFq2#LV4&jZ`VqV{{TSYzegfO3pTu_Qr?7qcY3z`G7CWY&!>;M)v0M5DEKI+Iz0xn^ zgXveWPx@8tn;sO#zE0<7A4CreZJr-Y1 zkHh)tPJAWZg$vRX@Xhojd^8}qgu6YP@k`GZ{Km5l4|=xaVb4zd-m?pjcy{Aa&mKJH*@wqH`|*_L0RH4T zh#?t=Ff`*ZMr0hp$c$r{lyL%UW}L+2j8mABaT-%I&SG}PIn2p8kKT+6SUckq=4V{S zf{ZIzC*vyKoDmext6PQ{Z_QBg_6!>~&v0O?j1astBMe(-MBrT+QP?IU8t=}C#ZDP< z*g3)o3{s|M)Fq!{_)JE9N~RgUkcr2qm{+Q7bPi1t*pE9~&Xl6GI%j}NfnLRKnvnN)| zEX0(|B23LJ#zNaAapojU%$khJSyM4DYZ~61H60(wnt@Md z&BTdWv+${`+4ywU9Gsjr52s|!$Ct7e;GC?5I5%q%&dXYiFJ~>mSF)Dkf~;lue%5ka zpS1!%&RU7PvsU4kS*vkx)*AdOYb_qkT8}5QHsHCeji_XALQD2$v}JEWNA@-h$=;5! z**md%_AZRe-i@y8Jy;`qA0}k)$JFct*gpFpcE~=29kUN(r|cuxIr|u+;vQriW}m<( zvrpnv*{5()_Gx@N`z%h+K8Md`pT`;57jQ}TC44jcGQO341vh73#lK|-agXDcY=4|Y9fpUpBk;TIC_J1UjX!0_;_2)-Jd^FjU$R~JYjy%&$WFqG z*~xe*I~C12Zmgc;!JBe2F)Jqv@5sr)7CE`tGRKRpa`N%coI2P#r!L-=Qy<&pG{C!a z8e-d=M)*ih6C9P(3@7I_$0<22aB5B~oRiZU=jOD*mvh?UD>?0PV@^lhl+zhM&FO-h zbGqT#obLE@P7kbAt0y+DRfzZ0DvAhF3TqW(uUdVus8$K({c82c{+ zYK^0Ozu|#e6Da>0gOr1{CX#<+_-(C8lpHcVTx&Ar-x;2+HI?!+$TrrRM*cIhcWO;X zYwiq6Y{*fcI}_t_XJKmYY)s3YgYMjUcvJ3tte3k0>*p@STXGlSjNHZeeC`sQnY)zQ zUOUzUCGor$bQLPMLrMdrQFrHG1-k0T>@p7JuzvtQTYMuk5ydjw64MUGN0yDf(nCXqid~Yn)@y6lJUMJS| zy0D%%0ULOeu!%Prn|o974zC+qcs~k=`EosJADM_7+mxW5|07ZxKG}Eyju7KKPWk1fTWx z$LG9dIKx|x&wB^qOm8K=;H|>B-l6!icR0@Xj=)#EBXNOu6fX3R#-F`o@SJxnUhvUeg5uRRGLsy!J;)SikD*PezWYfqPmg|!#q{Mw5tc?G#SAmyR_-Q>d!N96CJ@7H8{;uFF{J!Apf`jItC^=|8L&-t&&y>`#KHkf$ zBwF9a6+Btsm(5(ZY~k-65Yx8u)Y%=1a+aw1IrlCfP?Vkr6=m)r?n6GxeTK&rr7QOv zK0x&QnR)rWYmzI7&vE$tID=nkv`~~1t!0u~>8C}uHY@$Ly+vle5qa+^vr?uFd%(i? zA_J=|O1YNzu!V0&@}g8_kY;zPd`D6*LscrZt~gj5hE>}0I7E97hiVsbm{u=SlGn+FPep`iDz9nl##@y| z+PbH#%IjL!H?7KItuMZzeTqvoWvNwpQ;WowzS8ozB-mTQfd zTa|aT#_w2_6w9l+@`g}&$M>9UF(WFvBDSNeHdu_@-?Rc17`ATbC)2{5-&NQ$qUu!%5W>*eq z4zvs%}z z5anlWAfD5n$6vHh8-yt5wQuoPE%Me7<$|`OO^9+)JC2vM_`5@t-?U*pLX^we^Z2{A z1FvZ9ibD9-@X>)G%2jPHDz3d4gw7elo}&kE@G<79vZHsx#H37%D{A2J@mL*Vuq_LX1e;~ zO|D^>>itnMP-~iWaSnhi5z9?m&>$M(H${<(G z`=gW!SKmWXN~LSyA5qF+m*r7K;dO-2|IhOrxEs1>Pu^Ky`}g>0BQ>U_h}6)+eV|LZ zSNI)ex$>KGNx4k?PFx}WAg&S$_m2kY_mC21!a}Hom9PwK_h}j z;&VaMgJuxV6Eleyh*`vo#BAavVh%Bvm`A)!%qLzU77(uz3yIf=Ma1jGV&V=ja;K%0rH$n-%iTm=mQuC9T1Hf;gVbT_P<4VjUVTy>r%og$t52&_)hX&T#5Cevb%nZKU8jCT zY*n|Y+lZglv+6nG7vfj-ylSzYj8(K$LAF@77j3gc*MiGw^qlw3e zF~sAFA}qf zmxwvUTw)&aGBKZcg;+qmN-QK^BNh>_6N`yAh$Y0E#8TodVj1x^v7C5^SV6o?tR&te zRuS(LtBDVYHN=O+T4Eisp7@B^KzvMWBt9WF5uXy9iN6tBh^@pn;xl49v4hx2d`|2l zz94oJUlMzWy~IA^D`G$KHF1FWhB!!kOB^D;BMuYa6Gw=n#4+MHaf0}PI7$3SoFaZA zP7`N{v&7HDIpP=MJn<`Wfw)LqB7P$-6TcHzh(Cy{gkpQh8bp`~GhrcA!b;c(JK-RL zi4Y=`2qVIY2qKb*BB~M5L<|v2R43wyc*03&go~&_BoK*25>b;#CQ^u0B8_kp>4b;K zATo)Yh%6$T$RTPGxkMh}C2AA-L;+EUxS6O+)FbK>w-618TZx9mZA2rYG0}u*N;D&G zCz=y?5G{z7L@VM>qBU_B(T2F2XiKys+7lg!jzlM-GjR{mh3HCjBkm=-6Za84i2I42 z!~;Yj(TgY|dK1OOgG3*qFHu7DBl;7iL>V!FC?^IIgNO>Ek{C=>5krWf#4utw@enbB zc$gSTJVJ~j9wkN-j}c>t$BD6o@#1%DoATaOrNy@?P0OnW6b)}ySUI?~xK^`@;R6Sk z*Xmtbs+3h0l~4=5_{U8v8~tV!$Q z;hhKeZZcp1iwEmX{P!ITPDf zurfU{{?(y)V4LE~%ECTkVu#|&f#m}##XmX@E*xA{sWj_bSXx>j)N;o2J}&GFRl<- z(?T|ue>E)`d~FhS+)-FkT2)c3H%PDYj*8;qPQ}9p>v_xKLVXzdv!+!g#<-%u*N-x- zRGJT{D${4a)|LKD?r(pQSX+5%>2(|2&iLmbUk|k_A6R~SaS{Du?32GQ)_0%3w4!`4 z$4qf=x@oY|p?Ju3yM=$0Y-9p*}w{pjcYYE`_n&t)rdpX*mu`DUeB*h zWiRWeG|pDn%@(Neuk#xl`KM+xlCIk<-~2;LI5%-zx2mkHDz4zb>1gbYyQ|82(HpIc z`^$5e{x6QEl7S_3rO{sYV3R%!ZCUC+(dmcYU#98D0;QcQ3I|lmCG^rZj3lGMZ7WLp zlnf{wTwWnp+g2Ya>~;SXeF^!`c2&JfOY{M)v}GUb^ZNISDEafMjF}jY+}QSXnu=yrTD?=lB21-|70Q{H3y)*OloF^v}WU*Ui+iXvn}0#e+D?l#V5R z23#8$GQGB2jDqX>K+IfWbb6NK~Mo9otou4AJY>bA2~(iu(J1wi+<7iV;&$ zUjAU)2iui%gmYC0tY zMqk8#&^0OTbKR273yc2QtzlMUkZ_@)pOlUM|3?>N%_|vl(xLc42H&-Ed2$fN6{Xj&t)ldu6IsL^&AEK2H`j03!iJ7jeK>z2p8pPt_YN?Xtj8l`|Dqn6~r5L4pMpyf< zYkX%hqlLbI(1)x}KM7tNx7Tf<{vv(tly|MG^?A5Bt0?9Qp`?g&lyQ#vQ;GhHX>^%5 z9r-uv+S%x?YZdDM6qWcp*%f^6_pILU#x?47ebl_N@>)0evmv#Om2!Ap zzfpg`o%hsMS`4WAX9pp({vXE9wL7g`=i~bmbu}dIG%pEBQ%;-91Ul21H!K1q;UobL zkY3KGe|~?-*A1EHtknifmgT!F%d&UVA1}uLE4^r&-exksV7oC}s~=xcNBWcTveA-u zzFxkptRscm&FIT?Gnh?Y)`%;QY{2}%MjiAQygRy=^guf=x!^R+qz*5BT}J#Mc_4ThWbLMS>prY@jba^adj7pbf0CVS3)CLbLBnsceW^$hF8bu*(!(J)d^1t(^r*U)1 zxGq4?Z#J!>!tN?eASRMhuuUV6nEK?`7OgEprmm_39+CM{_|Tibvq3hYxMabP;+2qe zf|#xu-lF_^+0LHM$Is)ZG-h6__WVb4HUF_&&m@qqA1AL#Sc|GQJA?6^Z_ZD~uBZ7D z%HC_`?r1{kzUV z8NWR^INX7Y@@)?eTlBzH{QJW)|Lwv17C+#M{Ff3EZnmCbYRJ5Xv!~f`{jwRBgMI(3h@>nQ>+yWCS}vci4~ijN zVYhLh7uaI>R@gnX0uKYSoYb$hiH{y$J)o1g(}}9BLd4s2|zhyXQZ`ICezawtjqhEe%;1l zXGCtGf78Eekd3qPbMtZjgmxW()A`!Q)GuIG(pOkAY~MB~^Cgygv_@Ml_UEnf{U+{H zrp?)QGyi>$MZUjT9(4|WHwFVp4X7v~jw`@@QlZqaY9*(1oh)4X7G*IQGzs0z#xz`WI=^R& zVRe8IiES zG>VSs(u7Y71-4R;ss~a)CQjCu!}0olhLEzKVoV0iM*4R#pmOevj5ExTzgh$~B7=nL zah5^>85x_VA2t#?a0}ajg6$@5GoVeRS{VOQkOn5IMG<@W8gGf0#C_8UEb_>Wr3j5QYcYnK&L=Ug34J=d8^1hl_r&B)spt~q z*<>)6Gv;D^m7STb=l=~kwFLlD;nV5z8KIJ9rch~o5H?X~I}1oSF*@sstse#ZNfASA zu;P#dv!snDv!_|;+wuEOre`aje|y ztQNOuvx!GSL>>tdc{t*?_dlXu)az{FaePql2#CxhASxc6w;yUAWnGMES(k*UdHmKX zcu<$aw?_qnY!Bb%2C||bzHeoFR4D)ImZHDE9kXVCpS6ze9kjLJ+wsTw>}h)T&xCgUQ-d)@)WjwtolX5;rRZ3HubJ}1#Q_uXPQBG zwL(p>I>x!&oN&0g2i;eOdm=(M`%~q}eC7{j?q_Ob9S72WrLE-tQ(0aIGZ#4)R2_Ko za;If{TBO%FDL^_f7p_W65n^X4!M<>jb0!GvEIFGmMZ}*Lee7yT%MMeTe}ZFqscbp; zU57z4pyNZ+sjg;Cmc=cPa~7QWV!oYy!NG(h!YXEc^1Na?&@38dC+r$$V^lxPfEY;E zXwPLhSJi9w#7Z;OZbw7`m6_$*D|S6zJjCz6REV4~c1*=S zB6A7pg%(BG{O=Dk!>^*+KjzaJE+0Qj%tn4k0nx`K`dVXu z8UOc}CR5n~!comw{3gL1o6M(qHJ9F#)DG0T)p+vAFxwHACzI8E(|^X*$f@^JyisHm zPW6)=HnTm$wPA|3o}yl1Lp+-OYPq&9YCg{Fa17PYc2A~@O7Dhb?gG^s6^!e6;t#qdMu*3tj;)c@4xwDiC2O<0(bq2oa^a^;k+2Wo1j) zR+)vLtwTX%k=Z87rn`P#Qtq-_1FDiQ>Y9>+OyfVqd;IgUC*`=fuXh{IO|3IF;nbt zIqS8U1han4$&oF}pRC0Q7)s44fQ|WZ((5L4)#(eOjjg0cQ6RY(uOE>ePLCTTeptRM zk(DB%uY)qvTrI$DHmO4cLD_i$*&a~x= z4GE%dj6vs7hHrX=So+14=_#9{c0BQvdGt)nYg(K1^%!+x6)P#gl+vax zjD$8b?{^y{`=VIw&^0QaJH;;NPpns}hWHD~@a1R-sqBuqVv=ZDaiJV3y2`y4g5q3b z{((5RK%Hby9Wz0@a;a3YVilswy^6`1SLi)?SMjfA|7rGwz>LjJA4|(;A+MX6=1J^Y zQT^V0g?~&Mtb2}0+%HRcaCXSNwh-P52t4<$e&+l(bf}1Oln#iy>-D&u1ar1LolDYU zol}e?RrC>!P}QoLAfpY3gBkuuF-<+LbE0;GyC{&er!D-NDT!}1N$!aAPjhkap830x!q_^Mf*_ zZAbQna#hoMuhc_o1zK;;SBd8LRmGG4XVqHhi?s`FYIfAR!m~CW6tu}Revfl)=B0J2 z_RFQqinO~fxK-NS=$MwH_^Ouu-V<&-e6uACrwXvv>4m*MnND)#@MCmWeDj#4?r>8Bk;s|>1Ri$V+$7!%PcEBZt-eQda^^122Z8+aY%&=?2H?w52V^?WYc5VZ zDRh)V??UKuxril;7}k*xyqT|N7pDiE4>kP$Z3W}lQo)?x2YB!>j-?}rzd*+4M8x3w zl4A~YkQ4g~;3Ukd)c>};Ye@GPRCvPJBsgK5M)Jqmd{Kta7Tlsh=g_^b``~8D{f4Na zf4!X#f6T^@&DWEDGq{LF7?RyOu=(?0zJ8LIMSy$Q1eVX`@yAZbhIx3_Ys>=QdH3$% zI6Ej^)2=u1`~j^@-W#7=a6A4co<}D$G>}D#nUSlj6+fh z4{=D^fs67DaY(A;fvfoUhh_dlj&N#v;EMjZ6%Sm-v;2XwiSD>2W}+ z=z%MKI3QK=z$qRpdfXzPJS``Wu4Oms}x!n3$JvO0wC$58=M+u%X!o`0B;LA~jrkuZ8 zX@s86ij0D1X^2jjKLY%z$7D=lWK#&sEjb2LM*YorJPFv#F+vwN&4G;P5x1N@&M*yl zNp##1g7{MAP*Jv<-ciE8JIpli-e-I)k$Rd2mNMClPoA`gm`0uf!C=am z9%^TXLTE5ci4-jIU`=141vnjx-weA{foTSh^VPpGYXwHb)M~>AoH~k8lHky@38u~4 zD5QTIb?~-x6mg50%%CyHAIl<_Kb}{ygB1L{86O6^Z}m|6woN5ft+d+9r#Y)5uT7;y zv1z6%{HRmNzl&X1trY zaONpepY?Vq!^Cf(Nfs+yuZS+bScmm5dIi^1mU zmDu1(9o2`TfqbWg)*r9P=l=Al;$*&vT0Z?cIDGq#(q$y(V4KLy+mB;yA*-mJiVRHK z2%|Ar0A3rt9Id++6X@8)hLCTu0?-HF;Qd{!GQzyZmAH*u(|aFJiWE)n?zRAprT(1T zpLhvRz$g9j74kQX%7+4Rtg@D2qv&^r2GZ;lqls+^&L_`joJlQY{CdUS>l-=_247SH5ScY-VmzWMF568Bo{fK&pbYL*tVEq()%jjc${ugpu}rP& z`&B(G=-+afnMEWw^=l)}9XFP|A>rfpm`hv{Lh)=Np` z2y47%S@`PcE=U;B1!Ph#Zqis)izp!0)B=%(ryavZ0c=K&C|2v3tfSZY_*z;pC~{%_ zOcz&bbUyJbQdaJDejK#Xsq3qS4Qp{`Q7pt^0jMicy4@P<{pE`Xy=6^}d~XRciL~7Y zZRy`zf}j+nBA0i2iYAID$#n^``mmq39}@3PQ}PZ6%=@|~-YMJDKT+R!tv8DJBD09y zhuT+wME?&Z*xL*JYQO`@#N@KP$Q#G}gAZ@n`&LH58bU29QeeOegQSJD0v5Qo>a@3u z+C;CV-#acdvAt&SN4CjWWpA(_E_v)FsZ*jth1c5@al9GoWcjmUdzG<3?@A~uQ#JOr zu1EW-2c3@Vy?1+SKaYHhzvB!=yRb>S<}_1PzT8aPNSA|?k_ykmS%A4a1Awbil_{8yvK<&YGkJJ7HwsU z45-Rzt?6|bK5cL;vpYTZ=)}5pcg%VsSrz1aH$?;^3z|MNGgbPTnKD)Kx|X6tNg1H7ij{UMci`0#YJhIm~_->lL(u zcZr57948e70i!r?`!X)|hR3~9rah7L{}!DxUknrC3nGH2glM--c=m}IZ(_2IdwB{r z-sBF|ND==1WyYgxDHJx=I_t%RIbYaI2E~1n^5)m>-E+NfWRJ&@T-P!1^l;3pq;39s z6+y>6Yuz1m@8QkXmHmVFs%O|KQaC!M^EPe2LC{SeD-ZH$XL!LEFN8fW8%Ko`0pp^G zD5`2$a{PpV-RLMs(vbt2=UcfeM!-BB;lX=Y58T9KC@$Qy?`&a^+?tG&96jz?k?o{j z9;(qvfh_h;o8ZHc>KtcJf%iF)5&K7Sjt>K~K-g$3#~|5p?rBOv+}RZc-4`|EzNI&Z ziym{7@h+1QC-ftsIWCh=ziebro6{|0mdEOrlO-PA06v`)%E8q38b&yELwB}XP97|j zB5$}s$^&J3v_us6nBaW+j0(dUflXe=^0?&m%lMZT5u@TP0Gh;wapzAWN;U_|P>r1o zbobC#W#i@Tn#%5AVw}sK`~J+%b2m0J&U$wG7Q%LeF?d4f{>+nBrX=0m`ZB&{=BGPY zmKxU_hPz#sIenP913)TTvG9<-8nHi<9g1UFI5_pJD6IsB9jG zaagf#3JBxhJ2(u?s3#RVu9F2rG^QK#7f=z4pj|SAWi3ep!PVmF*K2W1A_C5HC3@;g zdr%={qUJ}ZfVo=?s+%pgsM=hTl{AIU5r>##TSfJ)YS|EAT*DC?fU2@S=!!v5A>tr# zWGt2Vg!xni6YYA{DiXu{%aViGV%CepdR3R?W_T?GSCENxg(QV?YvnYkFI}If=JOpc zWZTfk2Yj&JuFM@*p5U+UTr#(8{`0)3gHGBSpYB{tX&KuSe(%wKjKxe7iXJguvw-Y9 z%qX1i2I#VIMN-9fS)Fm=a-yfxP5c~nfk|HHl)|v*nC2LtHEmX2f>Ic`kKD=po~O#@ zytuU6T)aa2@aC-drhCf(UX1UWzlYsjsFAjy6fH|G4rysM!zZ)ueCSvF6R` zzi$h-8C!JOUfORgMdntaF*Mq}*6?fR9C3^AaTVS_(3Mzo$Z?ou>e~Eqyqr5SDz-)_ z9OSGoA&Hl*24fKuw#Y_qKAw%m3anyp>e!ouB7^sD16XAsY|WxmWpLA}Svc5c(J5HS zwWweruwaqEiiNNhi>e}WPO4b!tB8m)3v*z~r7$qF$Y5Ct!&WTHQV?5~B7-d!RVm~q zRg^+tQHlgsEQBpeAz4%7Xy$ZRGRLQ`VE&;jTL7xE$w#k9F0e{o zl}!$OITnAtT($_5%+0|sGdHkGUNR@PWRA06W*&i(xp@a><_2cwfF*MSJ@%}JX=90r zhU?RtJ&zv6l}J?0`P27`8d%!U$zEikjGgrg$AniGyMiXp-74Yfk^`ezcRDQyKhA%0 z*;MPVOgTja_kFb|(B%)Fvx-Ffu~|o>LIsZtrMn#8-E_W`Sd5YPymQ6NsvJYl)Rb+L(O40z*Y|4_ae|KO>zDYg$i zySqitv!C~G?dQ0oA5;PRdG}sFxUk#L2SXkmSpxhKg?#thd)`&MPq&HNmVUL07Y}c! z8&}Ai!7v2uQc!Az-2&?>ka@o(8u!x~7Z1Yjrm}Zn%`WXPy>3?dvUS z^64!AAx^mZg$a)g(SiK_eg(utDYlg;S|u$}1gd69hRayNgh*H8_tU57@KO_H+<&wF ze~Yg&$x|Dye;lSFWg^_y-@iZnEfWsDt=1X3_@y@w=HKt65_1o z3Yrz4-#>XzffCED?n99S-~m?vWaHhbjA-#?j5kYUbTh&h#Pe+y{Ip;^ zF%-xBQKvHwVO(eNTPGdAZP~wHaCczC#SJ^L+uEHrW8(zTqrg!`BcxeY7A@X<4ab?U z)_bn!tLHy;sZ;eZE1ET4#$B`S=FDq+5J9+*h)bae3k-=`SY;!YmLdX?zxUS@)7QRJ zP>cZhwTSmerV_F4$-h(uX(ikfQ`S3DCr%ZQg#CZAFFHsiSU=SW9m`-U-f#klN}rfo zR8KScBEsaZ^TL4Bj-%*e#?i0Sh*ZwkB4*@6K?vIr{p=e zo!Jt5=Z%NnpjrH6mhHdLkYAgz}~(rbh8}Q+iR^SCbYZw@|dw zd%Ff=y-KV1p0*&ukI_lkfGxby4LbbOmxkW{(59JtnLd)xD_Wo#BCrA`;Oq|J!4S!4o z8_T1oNl1Y*`T54b1JVpMyi}EJ4gTp%WpAHQQ{elU_e*t&Hn&H-&X4*qE6~?uswYqM zq&#aA?Zs$(?MZTI!V}axQ{SE~Nydr2?@;H|B2KianHzr@#hyON!L&^H^T(!b=34pc z(n5-TR0%CAy`2*E%4-gE_r#=Ut1ZsoU#W4e(x4davN23tqSAXKg`N;D`|peLClkFT z_Qh*@go%MtznJh=NuiptiPOX2Y0t@+O4@$eD1k#n`R77o+XR&;y*?9QHQ6rCrf5tl zl7cmj;|bz};YPRCXM8lV1))&*YwQBjqMb*C(0`cL7fO*=H;dZ)!nbkW|M+)1IYn%t z4vT)uQC)X!^AGo!^~bbd-ibkTG`O6py&Il(2v17P+}8hby+qXgY?inG?oT%j`vZMa zd4U?uZ5urm8tC3k>{Xz1URwMmMH-ER5O07g5Pl5L+wCI-Hq9GL;o()f{?LekmWBkO zLMid<)CH`BD1vhwC!^KvEc}dc#S~U3g`p}S4ipPW_RxY7 z18Rm2Mk{uf?{+YCl6UWS$jH!e6`^xG=#2RG5Z2q#Bo*7r8xmOTapxam#k@|Nv)j+R z6~Dv1j*t9@OTGIVmikjI#QdjUeU-E>23tTq3c!B+MAWB z>nwi$^;jE`N}P#Rh-{niA=^q+M7vna{FHGNRG`#pbt;H2V-ri__%(pz}LGjX8>_mS>jQ;;bq<%lV{;XUbFd=H7 z==vK;)Y&)Cf1{8kTZDj|d(7US8l_<4Atm@fKK{Ga3bRtl9+yi|LC{h0@!+}|0D z^8bRXG#d z7K$HA*Pz4lRS*heAGkN-1jPh7%0dx6T&jo~IQR#$t9=R2PR;|iQNZvvGb3>VJSw3T zaMS`XX)c9p3QflP*)(D7e4?h79-$dY&LvKqiXhFb7BoWk9`ReuO_AWi{l!hdAZ`Sb zud&tq*9cb=h$Sr@Q5#)=v`3Kb+KpazY@V57BDKqr3iQziOoZCYj~1tCXz{H$;fH@+ zpN;yL{o&~5?Dq<~cBprDQ^W-*#9be}9o6yISJzjg-ly)DFP_@qo3lXw`RuRJ*Xz^n z@GR$6;R?E&v)-kkk$)$0!XSC^Tx!UekC&DCJgDs6>}blp)=r0(Tq z(F_SHGDtY2&L{&{mmm8#7oPU=Y%n}y!ly<37ufBZA z^$XB-!`+w5Wplfn{xUt1U#>WqU#x~g3ZSd%!i;@wONy%j(pcq9>eE(G*nc7_G-0L6 z1hquL^O-GKHa)qI_f$kjup}Yu8&2dz2>6k~GbWC4!yaeKCnNM3sI7evz(VHSYC|?g z-)lsh0h;SnDx)b_`V0b>_5zC(e=^pi@>oBnK?b|iEim%S40QxeTJvjjYbs(DDBKMB zb1esn_#rR$*<4v!v*EHb^MP7fcf|m~#W&qZ%eT?ZvK)@DEldMzY2dr6#?E%__90;C zxg#-O>0w3Q-$Nf4FO16F?^yoqK;`R#ho!J_%9ln4bc{+7k@nMADtLtcZdoOS_h6=@ zFlP*?3MTQct(SdK$;{~#&CEJnMwIRbH;w|yDy^6CvWK$p*5CsWjeq=!5~;WWlFjmk zr%X>@{7WPDpOK5w`BzF0OJt1b&yXwinfl0G?R9js-~uT^M7IO%6w7NJ&vgN?-| z)c-UPc+(j}58h$qv2UT>`&Z1=>OMSG0IQi7Lc!Fv77<3E6-KdAdvbwtQk5m8jzHNt zLA@;cHj#TF1%8YLJ&#|*a6|I7%IV`Gztq~4Wvk2Oq$-BhMuEC4PT(0Ei3d~u*g;F~ zfb9&nIS*n}HiX+b1xn8$(k7_P()aOR93}%O22wr9^SAv!S77 z(P0`k(j}2EVB!br{~WIuHHHc48kZ8FXt@3x>9`1Kd4%7T$2#TlBjkaK8@^c|(`HPS z2U<_e!%L@DaUIG3ZfvU*MEqSm!4Q>ecOgcIbiPr=;6*ce?B3~29215LNsq*~Uq7_aeIMEA%@hPTh(^s?w-GsWtG-PS#;t@8MMSRGjqETB!de~NR z^sovw`)Nq*-xM{~!BQ4ayNd|1@e!~T8d=WXQu#1w~4$c>2tlhS3tm8T* zXd}Iyl?fWY58h1edD{%L0Uob#4`AR;gSuusv{O`uo91Pa!)n{OU@Kfd4Q{PxVpeL0 zXD%v~|D2%^?IUF2sPEo_C{Buj7e)|TL4xCR4YZOsMf`0Q<2CM?bIEmsBwrx1gL$oP zUa6oGu4t2Wvx8~n3Z|+%aJ%ZD&K7$sPE0PHb5f>dIn@r-EZCx4*|y%h4~@1rQe5{& zgdF$Ag@wk8Z*QRm{nQnyS$_6EYW<()Yy(W2HH~n}wmE$v!qCnuxEgMCR3ue5!1L*7 zJ#XyqXo=4#wv1ppbKGX~eT5;>zf;5tl?T{N1F0O!YK-W9SyC3C#}x_HuG9TLX?EyG zaXMnL*;6jrn(7Q_?;R!+@5Lm4LPZRQK7i4LO7ieBMpgf6K=>NxZ1>TJy4Pt!KKtkc zE{Tgq2CDQ(LIn1uR14JEcnj3HHjxeJmqk#fxHD-|X)HU0ppt=Jr6*b0M^RE*oH z^o8Y?msu=Jmd7GeY)zq1z&@!eHLf7ANRN1&J)(faJXE)wCr#=Rl81amEw*6xrBGDB zn{AqmmEsj@HoGqf5UY42(_vul2bjo>ss+UR#)-mDmd}m!g0%dVCGe#^OKdB>yi(zW zB*UZLvp4Q>{j3=jiT5N-qQ6eG=D4lmS+xHHIzmwBSx|H%-};;F{CsQ^-g*`v>aod7 zvFY=eNtsAEed;C+pNo`OQP#PMK|66um=o0rLfJ!igcD&ky*)z2xq}b8+%UvhZ8Ik8 zZE(qG5lR8|ZjnM5th)gr#jwJfswjK>()F0<%vcr85rT4D#%J6kA8J8{UA;JCvAc*&`M?j%>Jxb!DV%^BS|0`rNmgsp!BZ zuMHD(I=|0dFGUcQ+rP}E0ULH95Cw6xU!Z%&LB-$4K&=pRc7ZSD@ioFE`2ySAg!>Ai zSXXBE@p~&b{4D$MNo8XTrt1WT?HK&KUPx}5KK5kJT)xE z5B zD6yk_SH0yFtNAW#QR8c`iym8s!X*O&1$(?#zQO1}}DIRiN_3{LJ2ZZASY;{sRcytE~1%Q+DRsK~#tCTNXfa8QMGq&daih3gRP zwD{$mn!T8xC>OzexSXR$g&g91xrl&|momFt)UmBoW+K~%!14y6t8KMW$Dj!9tWp_K zd}FyL>=&sDqFMYJrm0%9xKXiI38Ny39!K`$yM!}uI}U&u8rYpQRCR$yzc9j$;8{cT z5mmwm@ypEi#>5rui^MkU0t1D~I5H6kGci)o(i^it7m8LeQ%aE+OagL;(IaM}Y zH&vh8_;z$aji2tBO_;U3&_--1g)q1{no2{Jz%6&(gAqeAg8knM>rTW>A1=DRW~}e` zDS&I8i8-ERl-F!Sj;?p+0oF(`*}GoW6OwO{IuvLph47l%o~lei#W{kby(q4;D-mga zE7p#7Z@ME6totAP@vL{yKfml>p6fi>DRi)WcG>G+e>%IlIJ+EXZ1?=;?95OqPcU&& z0G1=Ye@N&{u-C_uB$$Gv@U3143RT}=um3*tX1`vRkj8_ShwMNk<*qT(t2_I?7@eet zSZ@xG4i0kY(=&B7eCNZ#(Qkai0GIud5C)Gv9JBJ`gSBJ>HR`%|BGNB0c>DACr~o+2 zE0`0f1B;k#MSHLlxsx_!Y{R;pYl`g_`5zx8^vQm7Z$COWj!K!BeB&C-{shFlk^?bi zCaPBAS2C+2N?ujOtE^f@s}iNcojnciPe0M+Z}C_i>voztBV&IaG^^%6&A7R3em3EJ z%m&-<_P5(yH@`RCX8yfF9U4EY4<>OqbaU_|2d!9-GwvIP17c>Ih2t*+-{)ZJRkUYp zk_im54Sgb^G=rEFt#rb=URn_%WmUv7{chS;x;<%bH}erb6ReQepZ)LX^iv4vl{p1_ zG>!g-7z>OJPtWj5IqB(th|csQ1$Rh>#%I_a-3*G*==;Iw-DvQsJ30^_kIqP3R15Sq zt}t!Vh|84Zo^r5ol_q2KhJt5V;8K1WCpY3Yot%l07R$S||wxU)F+7YQUPD5){z zzAr$9iIWt8N)sePP8l$PI>zZac2AS|%{j-`d4T<@c-T`+B#4qyi;>Ee!jUG#$2hB+ z(oWV-GO6jeXvk0=i;1Pp?FTQ5VKH~#8G5_!q_Fij8XB%*@sU#@6kRl~Q~Sr3Qh(*vji{TMlX$)!P9rq+Od6vJg)3y3P<2&$h9-OgXC za-1i!^_Ub)IJI@ANW#dgR?M)JQtT7nQj>W?6burs7<&mZ%VVlX*n2DOt z@7-{y3Y0h%sJBCDSlX~ny-TT5e;Py5mlnj<}o-b*V@PRHOqc(kYH~ zy*01sulbrMM!oUl^Xh8+_=F`wd#j7nclJBbWh^1Ak`@Y|WajOv2?Nt^C5INqM9Q5_ zPG-avSU{ij9T7eYovONNA8HixYf3ZTua_^r9FkD>O|yyF35Iy2 zXk66NZpZf(Y4{f$>Dwxm^;R%W8spcKmQ+vEO#nGgn9Hp@f@DBH6wuc?UZV{0r-!C& zj%s8Ck(h98SZT8PSFz1F9(x!>rbQa}_D;L4BF3(5te<`ID`!d=~ zrtnKwE@l5sFzVDDj=`Zrd;#n3CQ~kqfhsA*Wf)bd_oNI`a&vW;B7Ld$Bd;1iow0iP z{S50;MBHDj6o|4RgU?VOxewpHpLKC7vDGF{)Y;YD$$ZVjG_5o{^bDLt>o=nCBOgDD z8`gI;MM+E5w`bR-h!oIu0tL?^Q6dPDDT3Lv!E(3Vc87JNp^>n0d)WR-NjJ==I~=@c z_z^7H{eq&~>M4Drq=gE;*E>B!VwJPb`qyjJV%#EyK?`GvTR0^QOMbIu`*?MSeSfo^ zZ(qz`7vtr6dd+0lK9j+YQt8cF^qX|URx*`*SR@s!v9IK@%l9NJlSFcB>dkoZgO8Uk zUd@ilZp1nTj214_lpG<>o(Bbz*2HmmiWQMFMzT%K_@MA7)%=R+jR*mXj4GeoXW zv0W0Rb}7WccJ{m}U@l+Vr8ip4CumqY$J1#o1$?^fV9zUQVazL(@mFVa3fIm9?WUE- z9-=jy)3tl2S`paWMHn3b$wjBPF=?V|z4R&DyDr1Lbi=JmE|uAW9Vd0B=nh?+XvlFk zP)1N<#ET2*#JxLAQm~}GKMXtz~ls21rjPUkpTwu+({TQm!5 zSRv9~fEQ>w9y9%NF}BMKX^D${)g6A}`I@;l4%Twk*m{kTg6L~-W`Unxa*&4wtoMvw z<)3fo1-r?5xmn(Ab4aC%=e&O$6!s84VIvqlF5q&Ar&!PfISP*fT^}|P9wK^OcIM$Qq{QEFM+X^G zqPXL2x2Q@SpI2cwfIL!3wJo2k!9 zYpR%*yKO!vNpxTyGRE?BaeK)`u_GZH@vr!uk`IF*m`nUvpx?xhj z_|fHiSexb&iJ$cRc%fI~gsqhm?uDQ?0PZV~!;$iJz6TS%R$+Q%~m%&q*PdSIMZ>c@8Z>VE9Gxg1M z#1~ADJDDj&ktxO2e%lfdP9-Irm#-qd6d{%$rQ^r2*ZAGYj*1m6 z22+65X+BAi-%gA~q)#!i(-Pv6@9pW6K#@2c74%-V%e%XT)lxN|%PzskI{ zL(B0~>ItipwZ0RmUh(aLOtgzxhv78vH%}s%?_$TI2LkbpC?|?gAeiW3Y`d&&gCmGh z9*LZ=55IfiOO)d$ZRcm{TDETLtz8z%;aA-gdt)(7=ViP-PdNc zsg3jsPwdAukx_n=W~bo!OsC8!R?9^|ktk-a!>XM~^tqrh*?`VqxJBtXR5Udz&}Gfb z_{avX2OdQmhiLrWMA?$9jcF7*ss&EyOZMgZ2?I&qL4NtvE`EiecXv^9<*rT+Ms5X* zp~}8FG7+Kl*T6`i_j$prATLOF$QXNiP+;j=WPr>78Nvn2Fbw1lp)470MbZLe$qTq( zQKt!z(T8wB>rQCr&3SWiY92Lw2#(-8t!o~P*zCuE!m`n-%8!;NezcYf@}Dz&8%%9D zDAv7$Mt17R_U!3=%m>BtN^*{|ujTcfhk`oEp&VLshgS~lj2yW5!A5)|LR7v%L)i^= zcH;0N-shx+6`s~E=f5;x%n{gHKi4^zbZog%-VhmXyMYc0vO2}pLI*NR=X2YT%?49sT)% z69m&{K6MW`AJmQndxsmT`ubp_e0=!Wr}5Blg%kn?re#=Fk-Ykhfl*(C2-#T;$!5q+ z0WP3;!Xbi1(B1}TZJTTk?e9DL`+e5C&wRqy=tg18rQcZy%?3dPsGH+&Gj#2_%$C zLP^pHG97TKtYTAxzSAkRj^}y3HSw8dP3wjcEJ=HP@ z;NEz#Sn`~K*(bUSK7OlReOaGi{g9yOViq!wvDgNZ9THC_zyxsL(`2i{*m`(Ujz>TJ zn<|mEz6))M$Z=C#fd;popKbNA+`?zAg$*U4R26aZVQb-oFIx+neA-(054pQdp6j!mfFO4i>NED2_HG z+U;=+t$=DdXk|iPD>6+|cF78>c@Z(@ECW{+JL2Muj{TPKNrS-69ha`aG;6daRt!x& z*+W<3EB~)pDN={MqYa&y*N!)s=-Z95r$yAPt>$ReoK=zb)g2~VAr9t0Q3SS?Uyf~3((wu5`-%NCrCq~y(NuzXoh^x>CKnxJcG54nTHX%-OMG z)XUmDRH8tec?fykrre?0q2OWsmnR-LU74G7I@VRA(vT(mJj3aG&1CANv*Uvl>To#9ja zAEZ!+qt{#$J+v4OCO8Y^CinW|e8v+}p=+d>hv?Ldb~%P!Kv1f1Q9p5h?O8!)+;aI~-H1+MJx5!9!-gWaBm<&INZSwOvnt zfx(To{=dPd~x}p<2VZi-21l?_x`P?)$`Vo%lnXa*!d81BNRCw9uy(tH#|5_v4kAQ zcTWR9LNT|_ha!~A5<k?Muz;p~;>!|=oe&j(ww&Q+ID486IRhJJF_^vMLWpAy4{7I+5};^m zEp3^+ORVj$=BwGosm`EYi4pUHQ%6|=pG_tw$c@EnxqQ;OqR#R7 zv|W>s*HGOY)bOx^_1)|;{!x`Qn1-)8>38bNn-ggwv6=<1Dn{dnF5Y^v_QG?D6-Kt|3O@z`%o+F2*L-hJ9e| zqH@a z%6n^`T_w`yMd;*-~3&H(8j?4@Uu_}IllT%qQw!n}C!($Oq1Y`Vv7&9oQvT!kNN=OD{Yp5c= zhDA}P&SAy$r`}xr)k)m%y}>U$$9{5pV=)!3!+?9{h0Xb-xUMdrMRt_gr7OCg%G_cl z*^}mcwv`p?wPb@mNv`oSLBqm#U@^spvZb@qT4wq5u}RFP_Nft{N*PS!#_U`wRKjRz zY2mI?zm{?*)oL?)nJyQ>PFBd8g9%r}uslRt)O<@R=Y@C` z6&r4B_TlHVeCq_8lbr%rmnjNYFv0&u*j7T(9yaOqY&n;p-;HX1y4)`+zw%!2QGXrVy z!OT!ZTO*ewbu>^;J)X?t@fBuNDxcDWx-pWQ?#%f3ZGlD zD(+9DC~v=%Q0nL&_ARPuHn!TX$D64z!J1-)kJ0{f3row4d>e7Nv8G#T~SWh zr47&4MWml_Zw+7V%l4(Ha255W%Qfun1M3#!2r(EWKz=)?oiafU$WS4xePbkhnbVb10OXjs29Y4?~!(PdQk^W6%y!_5%$&-iXiiek_1%w^` z(m&d!?Tx+d+~2TF&Zkbycnff0_|${bNKjX5;-mVSrs5%KWA8p`U0u=xz9z7);ft*m zQ$HLGq@yEjQ)Zi9aYk;1pRUyqc1#1k(je9#Wny$w`7L6>*DMLT>584_hlNiFiP8MQRNny~E zlAYxWN$%ma+LSS4Uzlws zH(!d0wA1zy=+^sQu}w4PbJL5dAL!CH&P4Yqj8cDY_!_dF(cs~w>Y}vurLCqp^kT2i z+cW;?Z*=7K%X)=Q>LbBEgXS{i=_vqa#kIWn{OyNM$AYK$hpM38j^4hF$3$uAu$Z&y z92;b~dWb;N(8uY+RLx>wx^{u5^ptVS4Wwqv<{U#Z2h{M#cwisF)msge@%sCb%!V2A zkl`lWEWt|#YM{9R7DC?jDusFhf$C$pyA6KH0*$W zCBf@&c5VEpXX~cb*=0~BQ#p)@4V!a&I0{FQuv^P?nTEv!kAe7%7G)3%m+=-1YZVaz znGvJiNite4o{%kQxAVnDZ)K|0Hcf?&U$HUdfGtX#6eB*fZt9D^tyCpRW*ui|t-Uv+ zc1+Amc>HZ6|KOZ=Rq)u8#m?Ne22rB2)FqQ#;}RPSQ5T@3Xl35cqCZ9F<7_gX;4?y;l zok3E}*x@{{B3G%3WiEqfL`RR6_RI2~C73xe=N_^s%q)i2Ih*m-3$LBpX$18_Qp|bL z9fv&>2N!-DR-3}Bh!Hi)jC%zjRubTUPv8L9*B*1Q81 zp6o^Mb1M99Z>p$>vFLMj+CZ9&SOJ%q zrHGnOOczHp{w++5qIG?gW5ee0afZJfU}}O#+`P0IREg5)GE5C|r3w-&uLtciw8qThsx{{OHqP2^UTpXszPHX%?p8m)H497k-_ilY}YL* zmTwGW>ya|-&j|$uC2rnhl4^|&2~EM9r&|G52TyK;wFri8l)a5C3I|@G!iQIfNTI`N zd+EWcthU4DP*eaTy!GtnN~LUyuz=_=JYjjXUW_L){!xK;nKvZN2Jv&M}VCvrtV z6Jyh(aS&+Yo0YhCdB*BDcI**^61^XhW-4M@v-Fz7aOsPQHu#Y|^io&XZdu&f#S|^q z#=4?sUw6|7X7!|m_L=$+T=?2JTDZ*`yqLCQT2dODyMJrhi@oNi52AN8w5aJ)S@_Eu zvEh=y41?ZA-ZEtKFu$GC@V{KVH%ZKDD7fJzKHOShq{i5inv9b+axmmZi?BX+&Mixq zzq}A|sSn!NC)b*ECpS$^!_d$Pp-=PT74a12U&2R1^rhJ1J8}CX=&SkE-~6pp%=oxT zJj-FUrpPe%&z@J5J`P=a+7Z3xs=4~w44d91c5W0To@Jr&hFv{y5jer43~#< zqzDOkd-YZ?9N&EGbvo}33-I8#-;N^~h`%hCk1UE4R}W>C)JKe@#xgVLM$KM+;t9D; zOasth!>FN8(8XB*#)~CyY+y~|tYqp8Olz}G4`x>R_H#6M0C~aUItJ`Els2d&I5y5SwtA} zxq7f;5s9Bv|wkrx7`fX#*we zn^9=$E;NqdAlg=RcJ+A1m+|ao%Q()B`7RZn=}*%_2^AA(ch35zR&mJbc%Gwqu$(XL z?Iz!uvrr@P_ARufC_t1SJpT9?Piza77q8>=~G*xJDmjSq$z%(o%uqi@F} zBeSv_8nY|M^o%5(Moor4mKN2VUs5C78HU&XdmVn6Ewc#O6&UHaM$Maliv=LyZ>N21=MzKdbcOKx4dKcEZ1$Ci~oEtcvQ)4B>p@e9dV!HlMj%v zd{Ty^j%TtVPO_bwsHdOo>w5g+O7xLi{DeOJy5);ET-^#Gv2t9bp#a>>_z$)HZWlMh z#zgAr2)_@TfgFtJlYl|bWRBg8fB0dEw2tv}BZ4P;-(!mlh%HKJc&t|b=!ZF!gwz(c znO=NM&yc6HbsO)yWg?PUsK98uG>(N*P#1vxSVd5f0g?#5N_tXtFAB_e+>?V9#ujpY zS2$G0q>q&CwYv_l{gf#1vlAmLCxXZTxj|aslH&sp<(Bf0EoL6%ZBL5CV6|->Elf5T z&KsU>;495bR}Ke!x*px?nN@(VF+V;1JzFnl8y(&>m}8rfx3y}CD$Xv?LP72uK$$os z3dLX(^Y(4et{jUnSh^^M$Fl^P3321__ z72LHQR(fwrSs|@OJeOkmk#@_rpQ$iV^i^0Q2G0*R8$PN(Jl`1U<}Ou;r7itB1t6K8y;qffwqLv`y@#?h}>I zxaxzgjcuT)QQP8&3^Nh7?17hQ6`9ZQ9)rbj| zTV|uF#MER0SQGff&Cws(ckz|)b$D)(4>c(me*8cM`wT~P+A|?3?T95~P;?p{S)Nyyqa*epZ28h{tsCRXCr?0gU7I{mS=leHG$Hd7Bpz#j zgE^)#fV-RiX%(e(&T2&}rDq{4TomGJWZ58%g8pP&L?<2~+u@qS&s3d_S1tmSmrp4D zQz=Q{VY2Pj1 zxY(dl@Fb=SJ`*F66^nRE&jc;Vs9kscybPL(d92r{4MGY%_TU-eYShBn&xtssM!L*s8$o1TRaVFRH2qNX2k}e~Snh*KY?r2fXzllFS2| zJst`*v}C?Bv7IX3#m((x#SOk*w?< z;`HKI6P}oXi;J#%rX#BmCgvwIE|c`d+vlW3y7Doc++tP8aa8@URNpX_>Vg6!IDg18l0 zP#!g$7lf_0f+24O)zsV|wa0}bS_ZkZp6r~T+}IfjB8$^GzOu7VJjjQFQRT$fk;;rm zb*V;mu}0WZi&Bo>)gYJs%Glp(@IwtA*Wdy7|H{Pr%$m;Fd1}%Ih&r0#I%m-TG9Pmr zmI#x82}3d@lK2R_osA!dSTZr0HZQW{TqgNO{`oJBt=U;=) zXZtin@{wa4&Mx`dT)fM_8+$5)4VtVx-kLeN>lJi7s)LiA7?`ZLteBWipw`Wvct+F$ z&B>3m-x*VCd_S}8(gycegOFU@nt!>a{liLw7axF4#7*bXJp^ZqNfxYNtv46}8L46n zB6$G3&!Suj?9X+A6Xb(sQn5)akbU8O4(-ICH)Y!-=v|@oYW1)k=a{bs6hKN2cR!<1 zzKJJi`rMRPYbKm)=wLn>O9YM=*!1kLfp>wur^2>NpeL+YmQ&bKFe0pOuygd3lq=I* zHnLDu32Q)RPj8o>E7WOYZMrZeWs$vSAWGThC&t=UpKue!w-adLN!X??!l}Xb8bqp! z`|zgF`=lkqy7U-JFDXdznN!6K2a{ zm%h2N?03JzW$=a*AwBO)s`LbD4)al!h}WvD4$Z^&iSza+x}w}lK=EY{dXu|HJThcE z_q^mtq_HOqzKC3sny>VrgicVkQ=RD=)-#Fuc#*s;kUjH5EBx?6j+lF7^2s|RgLcTc+|J|D zz7?KO$wr0H?`$3+m*m!yJ^PquIL~25so=JGuOe1snYF{T*9*r!^Fv5OJK#DW^cJ$m zh7hp|jW)`CWF;DTQD(L-?Hz7zo}!%LLz=k*Pp#NhjHW3?-`8`=JcaNtdF-Sgg~E(p z_VhnD8pcJxsuwE;q5t;bqSc?-W!@V)`b3D5-FLNzgfeGF?8?VnIWd=b*{OWcZlWGu zF*ZAvEkz97Na0C?bFij98nfDjJ3xn>gM)yHCa{oeW2d8Oe5rilzMG3kjfE;!m!f=h zFeG(pR(mabjt=`4YGnA}YMiy~r$clwZ!vW3+Lbm{-WuFK<2aacZ}=A-;h5UvN7t^? zpmM7=812c4NTg{3JUPdh~=l1Qugjh_^H;=C^cA;dSUEPzz+r zRQooKHTC~a#4Z*kz|PZ*6v-06G7r`~+?6)A4)0{Mn?;2QYn$nXzRVHS<~9Q?v3zh?ci0i-1vUGy)qIQ!rsQ4S23OkYPg|DDDNU^7^v3&qwpL|8C{{M zSAcD2lR;0x=@SQD9RE+J0fFf&kC=EfGqKm{qraf#sD|F)74?u7hhckrB`69MU)udX z+;CQ-Z766+$7xs$_b?wd0JWgnua7|1)er!0>yX-p{&If=r<~twO*9MYu$&k+$*nJ@ z7F2rkc;4WFh{9S*jO?}+AG6ZgN$I{O8M!}2EzQa_<^os9rJRdIDOJjPO7T&@9K<5Q zqP|!LO<|Td57RO())X~Q(kxjDQfCe#*Q!YG4CR1t@3p9>napXiN$@VR^tvo<;G!Ot$nZA{NpRUMU<^sDg@a z{??A<#C;bDrMV-uCro`&gA(EN#5u2O@3%`>@!6wu$Pip?!X@QUr7=5F&y`c11)n6% zYm*D^2^yH(2lhsCdh<`w%pH9(DGw6Vz#W7p;^XYGn9~~?o_*O4rp3s~YNVLy_?pX> z3q7UjL)ok%X~w7!9u=k#fEOZ?W9Om?)!VjqaUg*MJ{u=BYUuwoL2T08Q{t?*`i7y( zB9T)*5w{~XO84Qz?9KW5C{M=K91#X>n{l!+v?G*b8y9kWEVjG3VM1dGv5p%=n}=Af z^o9(~uE%qAgsWCMnCaQnq z2}ah%460KnD5s=QTs5{AIr4l>!`4Q*S43617;kxWMB99guU~amsD8YXS=^7B}S~AtQ^7Z@3;~VC65xt&%O=6JUc=m2zp@2nwnWz-PzL*1G$Prg8X6)ICus^mWNa zzZY2ud7HNd97;^e9i;M*TUS+g<*^s(;@j8%BD5*Jr;0ohxyN`_H$KAjHE8)gxksX)0So@QnPKYz zVf5CFb}+fq^sN?bH$uCP?NY}pd#%DU`t8|nK3uPmc6T_tNh?q5uxd(Qv8L;Ir!)#h zsaVWXHg>ArM>&3`IVwy7xPcXv6x*O_U)JYn+%`*6Wl?%lc)oGx!lZpE$L?mcobW6H zoBup5x!k{Ieq}Dr z%P!WJXIDDgTwI6Q;p1reFx!=?TyKq7dExFsdj^y@uGI;#vq*=s&~I%{rf?%)b=0X` z3wt-$AC~T{fOnU9n=@vDLzCkJ+du?&w^=c@Uv{|JBq0O2MsY|QO+h<-WSfDal(KQ` zX@FE$RXzc^;x=NfLh0yCoCd@0@NCq-><|0hFa5vIP6OuV>g(m{=wQ^l!D(>^`vdvT5{rT*#QLp=@_w~yTi^IJv4ht45`Qu<}af6pwh_Z&t-I&1W3-Vv;nq+TuF@ zkS@mMbkQXkkwe!b6;1Uo`5pcPzZjSJc`XKCFGv6CosACOvXQ;)4~C=8+oKO2I(+*Z z&tor^Kb~gOdoG0YK?z)hzVT}I4$j{_ubWX5?p%#%zfSRaC#A>l;<@cqb&5Eh(;d5% z2YYb)%H47M(=G!d_98j@kYkX_&kjMs@FQnnIlwRz-LgiTq@d0w!&9<@96bM7gu6NX zjm#5$fmarFp)#2)I&{Py5>o{j80U=F6dtGGKcuJ{o5jU$>_!%KB=^m6Q;Kn%PnkqZ zl?ZKA!i?BNAEMp=EQq}l=r8nc4g=hb_#Q)==D$)c*JIn9BOm{k6htWq81rsZM+J_t zH~f5`ul?v70pEFW@a4AKoHT>xf@hvPsnh)7BW9+VM06KD72n+!ngJJ$(NbM`rS9C4 zNF<*6?E9S5li3AF>0^ACU6%V9dOI#9Ew&CS;E4)&l8WVt%VIgx{TUWa^{P`l&-LBp z-P?CZHq%F!O$FX(@ZI72GFD)Ym24Wi%Pcpi0oCRNs?CX`Jr(j884#*%VXO8D8=ZKWgEt%*zhNk+!HTm<9Sn?+b;KQ2;*Wjc?|x|r`&+o9nP9wyUph0FZ94?&enh_u3|4 zG}gP4cu+0%Q1PGmj>K^Aat<+;V{_U+KSO^CEHBts^6K=-@+VruU1gAB>}o=TF-O(Htiyc_9lRS$)>^yaqmm48@?;h5-foub zThGwL=!H`mzJJUyRM9Mv^EF5CxM&*aU-u0Sr+(8*KFend)h&08J^97&^n_+BF!oB@ zH};|4phe8p!nqC~W;ll3JS-a?e_wT*>p6EX<~{rl_|g@3g+j_ua%W>&%VeveujULS z0oz7e<<-^1q9QS<3t^XYx_>9^+7hvtVyuivCo)ol!;$viLs z|EFG}x-pO}#fD`aQj_(JD{KpTz1Ka`b z0JHcG4uKDW4}lMl0XS6e_fxA*yxsE z@9Oen|GdOpoDBxu^Rp6l^>ujtb=ZU*`N;O?18&LLocGP%A7c)SwEayk1=|PSV=_m} zrJvv;9BkS!jCE|LW<+Fo^3^&jw^1tFwYb?9Dx7XbzaEo% zCa+b*DDZ7>T$TCj?OYD3Pvq7RR-AratXqEua-O4}>WK&44=eJ@`Doqny7}KPSAULf zx|g)#@L=?@f7$)wft$gw+5VV~ACoaVeN#ggzjWck3?pXg^N{#^u|yWuo#}TSlqLq~ zT0tDy1#l+{x4?ZJ2msR$E=@SYZ%)2k^*)aV*jeb3A12WLJZP@pHrJXKZ=3UT{Xb~7 z{OdH^!)ALFjz*hX&14h!-IJaNPI!;Umw@gG;^&th>EJ76T(T>du#r~CL1P9Te$Gz6 z+I7>>_0^ZZF0U>y`!py0VGn!HaMZoI>Hg*A8=PEyYkF^+9*XW^!{_*VyqNO7>HXG> zxS@B}KmRnu>@s;|{@8UvJPbFFGBVy!29y7~ptRtIA?tSVVvN7EBf;n;KSJU^G^5YW zh$nw(s>B5hQO@OkD>W-Dxf`G;3%3f(JYr>pQXPRJ>Wd%+W zV`0t$cAv?q+|+3^;f-}(#E z^`2R=huCJ&Ui>a&H9**EX}^SvUzxC3kyCRQU8qbr=$o+zR$ZwjMP0AfH*NwfIfU}7 zC3AcY%|AdMWf@{7g@E^To=K=e>L_LWZ zg>PA&Hl3F_GhKf=2J;l2-#S3yNWm|5heLG;(#6_WrLW-Q&T_4lUX`0$8#^-c; zK#K=H+`HP0d%ACN#*#6ui;m#*oiYx?P$j=KJ!OBeQi``ir&#o+H0;X|KY*L?Y_|3}mR zg8`uXS7~?4C#b2UiK`8JMhmoX14c}IP_j8QXo# zQ)4;Pzj;2)yq!A=sI4O=Cc+p4zKg|;p{l#zIE-z;PkDQ6s4Du?&-KfcbaWQe{g3JB z!cr=acBN9O%+%Q-JcgF!jaH{DGL6~g*A<4B>>T7gpZ+p(s}Z>DKwOSH!(MUhB~U5c zSMetv+Ad$@Q+_tKYG4fo38(7{z>rb3Nk9B!_Yr)oXXj9>+_qT06OJ=GXzw4_Uv@3j$86ec06Pc3#_U3%~3Ok`4Tq8}kU^7#0I) z=A_r>r0yEywM$`%M4p)cJ6zqrq)gVkBY5YAd3o_Ft99{NQ> z|FU=oxwId)E5&~EpL_qoqDnw}MVi5J)or9utSacxPUbSI2R*uj_r09OZSh8Q9n&Z6USkZU| zaJRD57-cXuF^vU`?tH?5WvJa$+vyO3!-h)#{L}=73uOh-mvK+EOOVMk)HH_PY4F0? z8hK*5*_H;qg)NMR(gzLpluEncB`q787A9V@7Unzx6tP za0_e22+*eRA+ge?RC?sI2Phsfn_%E&>Ua)2d!LOaY;4)c_wJOysA{N{b0 z@;*=bkf(geQ$FS?AM=z?dCI3ekbiS9%Dy=mW#1g; z-yG)O9OmB~=HDFU-yG%N9Od5}<=?7=6(Lnhy0rl`8OZ(Z$9MTe9XW3 zn1Ayz|Ay;;vO1sgZ$9PUe9FK1#5aQx?!fqi5QO7^{@^rq#0g=*1*iTffpyFuB_OOE zpxK~5O5pgwA0;5Q9B_!xA0@Dp@ka@WFV9Y4g3%Y0m`V-?>4V&%i`zG`sSe)3*e}8SgrS0*Z(`$9i4M+= z4DeRf%(AqBbeR+P9pniazPEKIp?=im!I| zwyZO9&cRT4+0An*DNB6g%cHXN=9fphv?m`Pl&I|SAxK-qI8n?Z~;htGXRaERnG z5}L`&czAtvp`eXTad~QTG~{@?$VlTdIR0{iU}(tc0d^l|RRQsKL6uoonly>O9dv$i zkLL21^~-YzE&D5-NBNOFTPJLZNqSNpx0{k1*&_KzB7tVY7UGg<``1F^8WfsS-XUin z<{!;h;cks8gpe>p&@e-oNA4LZ&}_iK(XSyWpl7sYDr^4JJfwUA(9lAdNy`U*9(;Mw z1q3o`twM7rAl9DUV)Afre>ehtb*|q&@NcbSxrMyq=*j(p#B3?Tf%323%{4=P@xuQM zg$`$SR(1bffR|ppZC4MvYcXNNV^gw`KvdYI3f;>O54?L-^apwnLVu=qGwH3-cn5hl zs-#mFb*)p#+!G>YR~K;+rD3K$rBpujGqXiV^3BJDKa2q+nVjYhiY*6n!swhH6g#9v z96#R|-w~p@yI|{^a6$C+u6Q~qo(_wrqv8pv^ULDs@E1EbeT2YS{?ZSNA4hgP*JNX_ z#>`E+4PoMhv#HK2;k-QGgws7DO4JCoL2FUQbt3(8*aoM(uei6uGV-y$;I{c zm%D*u!wsJO+>@Imxn!~wXkus=8hlDu>r zeNd0XjYIg=bQ{N;_88DN-f>==$L{S-8KRd|tK#vzGvqxF{SAo<##H)7V;JPVj<6Oj z;g8XhtE1xTz1?AjW=Y-_f)}F>KJ<7W<9l&2I$19k(CRPGYhJg}y|E~<%%6O5U3R#& zXMK%#PhN`h@lb-Pl?kj!O7Ufu(md)JTl2~?eCLypBlN!suQdlQ;O--kp%2vvSeL0b zuI%Kwc8^C>b7ELr6QrM{k*?tC`S0TNhW~rclSi4Q&GCtI>2x0g#;qyzju*VM#Kk3E zd1t?D{w7Oxv-h=2PG`vQy-*?~Rja^-u_XY)giCYUEs?oN@$KW0?JePB+=;>vml#{g zyy9}uz8Y&1G4z>s8mmXjvk5Ug+gw#Rw+l>W1aDjl<4ql&(-=@TT`w_2w=T(hwXGN` zt!>NNihwahrGn(+nWw8XmQ38lYU`8=_^?J4?hl}=VO`6e^KfLcDmxS^Cb^Mrk+`kd zeIqO?j6CUD)sShPZXj^`RAz#Cv~c7=c)akG5IHR2M+&N{;rdg-#B`?swM}7Rn3H0u zm6BmNhZN&DEE;GbrEwCV5(ymFCG?Rem_wU?$XDRlq_PwjQEVbvc9-@SJ=XH=B(CLH zyupK@eQM|qWN)p!6zgVlG`ELR0D{=vlP>ffs_I(E4@!#4W{MR>zh(&~5Ni=q!!#HE zNeKw$*8x7Qs6b$2;pwyL+H@9pgCN_xjgLT_iEeI|O%}d@_%ZGUxQL~_L7cs%gv#laRoUFzenc_Ew zBYx1Dr{l4!2@?jSg7?)>tH9-F22-Zuqbi63+Cwol9=aPn=6hco7d2Qt&ifwzj@2Lr>cwVpb0}bl8L-I0 zhQMHiHGZ#KUh7fJI#99sA);Zdajy;#R^b1_k07=4S1mdn6w}{}|JBu-kWbt(=gIFD z`(5C$h=Wo(2qaoUrt>!F-3+f$!s-uAFrKTn4epLF`rW!#oJ4KB?R9mFPyF6Zj(>H1 z)$M79a}R}=b12BpX1&N~3y99hRN}yKLanyA@IHv}xw~VtxIO80MmN1-uXn;B_K%_i zsm`L7EJ>h_nk4+rk@VJ(8o*@_PaQIRUB7Jc{Y}*L0GDAkan94Y@rubTJ`+TkGXS(d z5oaM6%df?f-3>gOlbq0&JmDeti?COtlbho+UbJ9Q;7AA(K1zhUOb+VO3EgwcF#ou| z(d8yw{O#IlhgH2mOetxnaYZ911|zI(j=Q=ZllFAQNq?vnBZI4oMqAiStu@W0of$%$ zoU;4euGbgxFIik)^@^!$wT;nf2m|S5oA}x&+f(AO+c~%uE5}H)MCd$*_#Y9K z$!nLh<6`!ot~7nt|LMmsY%2XnQ@6eRf0+Rz6mtAODKb{#|DdM-ziOG6=MT{TCr+x+ zF^^kbPQts3sd~AWl&~4YS1xZ5NH8U|z>>&HM+-l(ZcV!Kqv-zGz37ch&(Spl;v&lz zT=#W?-*7Twak$V`8w?tiCOe>z_>lvmd4i=zBZc&(vSDUQ(U@xfM6}6mw*Oc*c=sx+ znVp3ov*_icPYIJ`a}Xh#f`Lol(p(0%{1j4WRThL*!Cp8UPIyVyT<&|^f~;cum6jwo zxt8bhWP6X4n}<4KH|R?1;Yi7p7Ga`m8JR0TNtD}!e9ScXrFr#i@0TAN;M_S18A1tFhUbGfh{&l@z zU!lKtoFEGj>BPz)+GR9a;u)PX5aO%`473IfOUR9s<;g8Xo<6p5uJmw$q&z6ER^dyu zP|US(&@iE+YLHasaEvyV^3JxwEIF=SD~65rpcy#L9awa6$^62z?p~2A-xgiYt1!` zYe_hb)sV)=Nby!|@!+ly_k>jdLdXDs%SD&cu?b7zuZ&55pp41eSBUY@$9A#7>4oTs zd1Nw?|Fh>K^#|MW?S1bTtq?O5*oCXH}To+ zgzac?{%fX@J`rGr+?AA8TBs*@MHbk;x+(o`h(u( zi5^O*LDXXbXLyb>O%|~}E7Ppg%Bb~Ph;oT~b1}HSMnAtqkmI#1%IDnbHbD%GQ@=0- zmpm~N`ddNfOGrRtFoZIZq5I=-lC7&u^C9L@^n4#5JgAW00MX0Ej%8KMmd?AKh|%y0 z@cu(sIa|FSV65JH&c?GTzT1f};0ehD8$LR5NtX6+o?RqTPwSV(^lmrfp)el*`(+*> zu*v3OjIiL?M;?hg15A4}ci(D$$j3kFuoyTrn09UsiM|UQcFx@8CKsc&XqZ7h!IJrw z2WpUHxygsyDeIL3plC}?FUGID4g^y!J*`KW6vxOR{T*{H`M~tr4PSUC!lX}G3bZQu%!hw>!rQqDXs9XddE&@uA}Gw)1@qhegbAQ)#m)mlOIl<=+!8GDgYAQw!# z%Tj|}&f$7YYhfk?;e8A033nSEF{#>eS46$zyH=?ojZeL*JT?DNvwW_aF!HoF)e zIshBJ%ca@+=iLfvvkgqGmt9s$iTg1gnO8y56vw_66^3p2&b1_}XH&AWPYE-!lr^yo zq}2T5hmZ29rmt)nAa;T&v>9h;tkd|M>kgbOs_PZgS!F*hc~Qyp>vc@!dhxM|jqT{_r;|6U7J0B@U%VE$N?!~v5 z5*UZNG7yb?y>q;US&ph*gOJPOw$XmAZoZLk1vV`~R%`QZ9jT?tnUwQdKH2=m&si0o;ZUz1YdMb2VKe|Ab5$7c z58~)v4ne3N0lwv8P$+#F#q`Shq%Bwk_s}K?6VpAB8!HJtMxAgVZ8Mi_9`y4);SM?Xw# z6Z>Ve`#wUZ0$<2g6a{T)=?1%P1h)_4k~209f}i899l#&(pnw4(dyfmUpI^^uc%b1G z5aegD3;uUat5H!T39-PXqLamLBuf;`7jcM#E!32?C*Y9+{6ignOo(doDvm2!YMoA0 zWeJmby$2->dzcZ$gJMU;HuU#6dW4YF4bcOh6Y##wBlij#MJW+dXfT_7x2Dk<(>dZM zyiWxO{u}ZgV_zQ@r|Uvs?}g#|vRh8y ze-gQxgEKne3r~t$;+i~)r5DAMP=WGUH>$uI2%5l>r~zG&)CAkq_6;i zNI+(u;=W(m3C0fSoMdLc8G1@2B_SqJ)D0hQO}8z{s7jEFi^@0+Wwx4WQ8>wAPKaxg z(Zr67qaEjz;`U-Vy1Ki#7=7#Co_k19gWn808CY**2)hbJIFg{fKL*z~D2pqnn=bnL z?@;8feI&Sqh!Or6>?v?5E~Tgbm@N3X1GvmsgH zoBnYi4VPZ7pp@Y-?-_VzYi(kG$F5cD#R?Ut4=yGi+;bD`H!FTM$$IOetj_VQEWz z>&vV;EuUs>Xi3c~-bfu_+g8~}A~TT^S~q}{+D2U~iCGVYncW*DgvdF?LQl@K#MXi< z7;S|&5b70BFYm2DC9$;v6^ynDG!W_)(9@kG{!}>8*aP*%dJompTkBXyYO7`&PFqcT zZ&tOE+E&*J!rsbOu=drqfz(#rlJ&9^K&4wXGOcsn`XZ(7t!0__zA9ER+Ul3B)J6rf zwDzw2=PG7d?5kr9rLB?~!Dv)6OKYoSmb||oOV)E=C9`aVQm*<@57i&rKo*Km7?lM zDTmmzAfy9yD*r9kpf<+w`DLB5S?hz{Zk$doYs8)MK)EG)?8}6 z+tMP{rZJxzt*WB5W>ZCJtxc`}+p}qoQLQ%GpBlTL@(SD~McY`l;;CK%FOFH;-oGci zeD|-d(mc18InY|S%1qf;vkKC_dR372mR4|DD$>Ad$w&44r+gYXE%`L^sLjbry1uWi zlayZH*cu6OEi_u!GJP93EhSfQ>ZP|P#u_yGrKJW9oR%6?aOyQ^O^h}06_vWEjZ4g? zNh_aJ%OXz4FgzKpOQqCk(>|1z&S)vCr8{a^u|wL*iD~5WR&wgD%faoRC?H?;&aQdB z$^20DuTHN=!|w2FmH{=0=a(e%+S{Bqs^!*>*qYsBX2~ z+7VlFY;QzMj_rsoIr`N4S8d*h+LEh^Pv>W=UiZ?rxJrV37!uS4mBjq3Mq>VD+gBqj zAoA<}#5Hi{^`u6Yp}c*`p~R4!`YUlPp&6Bgyq1+Au7A}?%)hK;S*>LysaZp1TOWn2 z0hQ$H*9`($uW>6vUh7tbYVBK5+Uk);xO?8=|HF6o8p6TRyAQblqmkX4*lPU0%Qs4c?Z(SO_(8w!In!R}>jK;T~drIG% zLk+Kyk9y>vbE#l8@~AADy)~&|wdV29qf?nHjXX{}7Z=AJJrp879z%i2?gxr`c$yOD z^1583%RDJ{*G77&W?GbS; z6$t*}u+20~St?>U@|{eCB28?2f5jrp%jpM9BV^V$+%1lhWfLCn_1G+~zGa<&5~S2i zaeYEBmI}57N}7vc#xt5qnehqhy61b;iB$@^WP1A5mDq^ukywv}6snDzh+M5uX65#b z9~%1hJkoqp8h|aMZgmNAZDmMf&~o#57nRh-Vm__{afXk@;yb;vBEl8S&Kzgdne9g1 z2~OzU36HC|33yfq#>}&n6LUyYDNU|~Dge&rmAEkN)nS`$MzG%W}znnLWgB4aZ`qR?}hws`_=!<49 zQrZv3hu$M6=eaFMfIZ32M>6nmpy**Mv<>-YH_maHyK>P9ov0e>04Li$DdZ7s1W?G)4w_!$%oeHqJN2P>r!+<+P;BaltjiHRf?=&p^M#y=!$_Nm2rZSY8~wbAvX9R zf^L~#`i5mjvQ{a2QV2)i`wf&9>jNlFFmI|`9!7JeWOJ9k!9oGJ8fZtM*C5ZYE^qb|v;53gxmC za0r>0Wx!yJPq)xO*`mr6yvqv?^I4$h(E{>$fz_Csy6yb8oGI)8mQq5@djOMf-D12G zVWn9{G*|TvM&}?U^0NmgyR0UI2%m*;3#ZN`78^#T@n&|?j0qdXHXoXI7o@mQvFvTuIMIs~4)Z}ÂY{~Kn+ zBg>;2_)*&PHZx6;-t!Q!lD7c055q_PK?S*n7WY%F>*;rdWTKx{9o-%J|E!J0lHaJ(!u7 z{gzi({g=nFIIT25y8e}lrREG@%=8F{ z3Q!EP$!e*7DZXJ?BXf}5tn5s)i#H2-zA=t2%pY-YA;>ggXKu{9vWMl!gF)`~zxGBQ z4RahFGmY1#6XvFGBB7J}t9yA8J6)LD47nWoF^8G2f$`p0K~udnkC(v{2GzpR3FZ`` z`ieVWZL~AZY;|+B9u&A4<3&QR>FSkQgv>(JR!|k>J)ANOh`cdx?|lls;7y!3 z8)T6f`yh0xZLZa}h6+`I8p)Mjq|JN5%{fw*wbE_eV@oWOFw?5G;;}OHb|{c=Y>?Dl z>Pr8&!o!r;JB%pxVGZJ&x_>en_I@|V*TuK~)d`NU?Lo)o1;lWNUxpQqijB-OOt_C& z;u(UsesS+`GT%+cIOv7Av8rXP}nkKN0*y=bH9#k zMRRY7DUE$OCgdA)bKCbS#ce;^pXF;9o+K;KQR6t(+Tt5%+`~gG<1@o{RkqA%eFMsw zQwQStZX`!U{`_PDZRl{$(Do)JTPlaW`SS>?JWT#l6tf^4H_HqV^GSOQ5)0eF06=gd zeDgnk`*=7iVIhaM6wgfedWCK?F}Mqtn*2r!o+29T6v^5`A&GR|T2GN+dSf2wOz1@- z=ftSrmf+kNCAh*#njAk$0F#T6OH}MlS#(1drEDz~lw}SUlE0LjkSpaWdjV>4lp;tw zD6MlcY6#Q?92VjBljmz_4#vuA!81*`X^uQh#rq8g0_KM%? z5j$KKv0M`ykio&MRnJpTg|pi}Z_-<_pvpg1EGSgNj6;{>U!#X$jXl!$m@bB*GcIfN zvZa{q3%M|l#_j=@xLa$FePs#{BP^9dzm9Z>J|DLR;K^ZX`NmCdh&J9g(eERacB=d4%j?T|_Hd>iqD4P-r%K z^i$Zw1Chh`JV;`pqj#S|=>5CjK055<0dGKC>gR*s@MJC?9q!iK7COj)fma??B0iK1 ziN+)E$CyJH0?&4eg=Yophmp@X4wcN(T*`CR=;ZO8y9n^yJ+oAInNvp}FfJED42Od@ zL{0e5k-H-OaA(ht?&kTC8>A&~n9Dm&9()U)hG&<(61qtB^s0nub3@ub^$6_P`8T^oOMurQ;TGGPZ~ zyOJ$|j%vd15-3q68Mqo-03)EaJoT$u=vRUazu>fBP`q-mGIqgl3|V#s3aI*Lwb5@( zHRTX>zx#mH0GaPcAUM}&#f=DQpki2~6~h{`&HCrz=r{l2{UM9;1d;#Z!JqBy;N#JE z-1&P5C;u@NQhz&&FhUMHJc?fs3aN)jzlB^5Kd02sF_kqHQVE4GK72X|FhUO7;Hk@D z3Y9P~cf%r#slOeDR3>YH5sI)6A0zC;#{i>aLg>SxO1sCm*-9?Y26SH~?wDmd-AMX) zdq0O2+!}e#w%JI{TGDN+jOjNsBr^Dh>kMHbaZ$2W1kFe(PQQN@<{{C-!e{jY& z0U*tZ2XW)mv-s_wgWl-+^mN$62VRNx6&J>O)32H0C;6CQr#!9@^aPBa9awTku-|Z4 z)k$m{ggtgXuK?_rQh~(JTzcYPgs>xL37k@{)`cJRL)gWbI*7V^jr>TBcQCIDK8WXb zaCdP_X_e2RyX`~3v05%-MEZ-I1DB{A9{s%SIccGCvatg-$LRR5>`1R!>ut6}gPtUD`7PcZJQOxpowD#~F|qD* z-*BwTQV{&Z3RdRfgNolJ=UjrEc;YrK7sbwH?iYb6`?snn%Xk4hba9Mn2KrxnAjTyu2i;y~>k)>8@?=xp|U&MsmJ z!AqLL$-{-0CJ+~o)_M=Sn8hL8@+7L6=(Vj#Q%6_Da)jJwbj&{|yvJ6LVHB$RWK4^* zGJ-gL(g|efCmj<3=0z?mjpb?vW)sn}t~YDDl!S-*ms)!b#5xk|KA&fbmej1ARlqCN zG;&cbPM~al5Y20@XuZ<$qC?l&Tt<)m8rg4htp9A_oi_L_mIi=_h{MAU{*J@orgz%^ zV>IXthk7Bl2yxDzw?e;pn0$Em;eEJk3b#x_48u+rWFK-bjU+H6+kDkCb&sqHu>|-_ zqA|4w#Jj-lCf~C5qvsmx~!zaYmV+Kx%KOWR#>!TD;(yN}FPZrO&s?%BDyRiJy(mpuO*XA0Mr&_jpfrV$_B z4F(rIiT-)x?xb_u$#A>98$Eu|m4bqDETbys_HLNr>a~R4AIMFv&Kk(^l>${StHtO< zKK9G1wpJxHBP%=m;;lkyZ2$Dn4EeNw)gPXtMp9N|*c%!{b=&WLfz>J#a@^k4i7{cl zo11Ii737l+OIkC|i~`DTGh(N~^zWbeY3R9-7W;%f|(7_zL)EHxgYE&{ZVik#bv}u9IExxsMXik}aLvMPdG5KOv zuVj?ss`nQqXIBO5{)I|Jpe?z*t(GtA)ypOgr@uyls!s{g9<+eGmyjTj_Hl|r=tgpF zR3o0>0!5MblSEJ1DAYbG{Yh)S)DjDErGkfwD4H{}7PeVqp;W=xGv=YuPZ4K0s)}CI zeC!Yi?Tlk~1j7wSjT|`)ZNd&Hx(F-hd}yp+0F}F3`4A=Zj1KK0;SdS z6ilAZqUcP`k9qm2uH^sXB-2%$%{)Ap`2}aF@Eb}L$O_m6s*8nJyI{|H%ME+4v(7{)8pcE)1EVDZ(c+ZOJnhtsB8Rpt-K?oAYs?mtB zuZmlq8Iu(gBdcnz<^0@RT=c&7E=D{l)ChmVtUgXj8(5tJUwQe}cq zZSa;eb9NuO?@Fl+tZ-_|i_|r}j~$x^t|N=n?V87sc@VppZpRPYT*Nzs(WVZ`fsu*?)kzwdAqKaX+6B&l?D5@BCYk`lztKdm=Ha&R?Drdfu(lVCc%NDHq zIp9n_g57EV8+o;3)$?*9_Aj#Ai&)Q5RO?^lw+F4B8?7jLANFjn4oq8*cN)2J#i=WO znH?zg>`E2Fv&;4n0S_GDleNsNd{Fh|oEO7$1=@H&ZJLnw8hnJL*W`TQG7_QFiyq{e zB@}N-j*_i_v{cj$*@|!}RSvl1Aq7)ZDK#Di3g=TF6?7|gkSW+se#~5=z)TV$m0tC< z7q0v)c~_Zj2`Bf|Ut-Yv31eR_IZk^nUdeyVsD{>_SKJfdY*+=UJs+(O#4y(n`s?o& z*lwA6nYorFAsOhbUQ-jw6l8;8BG!CkGZCv0O~mV!-dC}4kp6ufpfWq4ag$-=M2&^( z3i(cEGWmPFz3%CJwqQu@?T8$1?W_ROBtzMF&-axS&!GxRc_de;x;WdjV0vAqyDgYF z)qCA?L(!<9+7usD_h_Xx4oYj(`Jrx#2RUrkTh0ZQd4_l;(*R4k_!5hUdn%ZQJf!&h z6dtj%Dmcqtx3K|6Q0gpyTso~IG_m|WWog#2GLfpudvy@bCNxWuTWKV2Ij2}bIFF_S z73dpmtSCVeHC8@yRxEH|m6UX8ELn1y!lG#@9_Smzi#)UxFR*cfjpA8q`}#*oZ}txe zd#dil#TfV09y>RMggqk?Qr|4paauaY6W-_>M`-JwkkZ~mp17x>wuW>*sW#KVdm3qJ zZ#GdFEe#a-jpix2t#Jl#Z<>kjME$@NtCR^#RaH@EO%e0er4xF0WpdH8TSzC`^ z|Cnu`$XXBHhU*f2&EyVZ@I>7JLC`s`1)&}D)HM;^$U+akVp!xV6})v9zyHaroA$K& z*1E)AX!mR5Oh)Yh88y^dZ3z7`m&!+G;u;m3D5;MmmG4WM>Qe!b?f>z!uzqG!^34f} zNfWpiYkOnG4hB}QAb^s@Kb#Xet=UN_JG}c12>EZu+nJxxS$t2BY?D1@nDOw`OsO8o zVtVsTR!PYis+e=_oEIp{o>ZqgdE&l%1H0nN zHXTjG^5|TeN(6C*3HR(dfeeYK4-xqplmnCHsAD&G2F@HSK*(|wTmCJ8)F;06l1&MLS)xVRMJwgr z@g5DTb(OLkFfYFWRvj8Z1a*iUx03zu{FcB3i>&g(FNL@XupI=o+by@k7VhhQ*g|^# zGO#FjDAb|E_%xe*SMY#W=3*GFt`z2GB!%B+_#fZH2ikh~jIsz>Wic|#V!CK4KO@5| zW?3S}`HI?+X+wNP|HD`#FCqmgAce_3g~>dH$vTC}*uvMFF&cRx!6Pv%kL8(t?rgW? za3yc$TU^paiv<#$$~gE~!w-P?!NJGy1%!|5%2*YT?a#kV-~_fxEnU8v+D<@7c6+7`+KQt6ELq?!9^->>6p~h^FD;sDyAoV~8pjwwzc6WG<=6vD3d<}n^GVf8RkBMD=f>YcGkVr+UCJij$-af6fqSzI zpNDVu3X~9P7tf0=xy6@Q_oHx8eX4&^YmB`e6M;e;zU|zRzhLXS)1#uLfCNa8Z;uy~ z7v8kB_u*wVJCeFr#ye$-1+CC3zHK6}85eH#Kt8|XA|^eI8HM8pj}a!5P|}3tv|bT( zlYTv)+8s}ZrO|BXWH95Y*^1kn;_7G?aC&4a3jKBYM-qDl+I8Wo)`EUNs^Ae%LSG>U zh9`52ahOU5X~Ijk*ALgI`Km6qp+(IRrhynU)^}=_kTO=H0uQ3oxTyO(*(2v$WIwle zc8w6$L}pwZVK(yFmvmdqb;D0|=tu1QZ}eUN)-{cj!pwMvy+4nDG!3 ztu|@K`hoYUko{kNpIa6!Y06p2ElC33^|hNK^&TDfisPOF4$2}B<1&Tqsr=?bGWzTr zr5qg!P)Q*JrSRf%J%!vhcE~R|6RbRbup&x;THp+NXrrYU0Tkrs8d$$99jtfuc#P>a zgl!B#J^FqjazB5hG6g0+JSk=DfY7=vf7Np5D-7n^X!<;&uEzFEB9SjjO~iRdoD z0HN$}Dx5Mn*{Ju5?zIdqJEv$A^g`tP`tte==Xlprps?iscDmQc{mxY_iW$n?$<_7O z;TQB6Du|=Y>k~9Hq|9LOi_YcoNvB#&fDLZ0|J&={Vh|W`hhKW%_>elXhhe9@#fXo7 z^ykP~T-dZAAmkTKg3&$yzz}bbVNvKO1pxv=)U;l%x0|Q=Zb@|M{T2Cs6QkKFTD^2^ z^Kd4W*uYm-#B6LQ5A#Q~3yQdrxH!=n@DLVhcj;$1xQ>73Sb^yX1Ep$&Ef1k+wVl}z z*$pe&GhxIm>YRXQtqF&g=-)HC%Vs+mSOIZ?`^ZYQHdyG|x=FA!p*&J6*_L3awU~Mf z?y@UEPh)&~dG8X>+U3frj#+kds+rfyYm{o!=mQ_c${5lQ4K!etnh?)w;sfDV2ZtX% z9Q-zl3ePq*hfIrk?6AS7V!#2l7{LDoVWoaV6VAtrhqT^+-L8dWOK}!{4nGw`w7!`k z{&U6XI=vF=?aw)CS$sKwTA>wQC6<3j8~+;GXyjU zyVsWkd_{dbEPCdA^RJ<1cn}-^Wkaf^Ju$n%<>(h-G>b-m3;5Ig6=W*m*ajH!x^=Mu zH($F49-vDTX_z3&PMY{8PoqG*=Zq)#pzw+5G3!QKw2hgij_mNL;%fGXr5UON{wx7m zT7XiLw@HnRty5+kY%*+OSvJHXsx85^uBXtWERuqeH`nGCTBI`iNaHgCP+qv`nnk#O z_|Ko-@Ngf`4)y2le8HwFUA~=mMW3=7|Ke7Ape6W1YV=g4mnuCJ+8Y{Lc0k$qtl?SR zEA`Iqj6yBDkyZcic(T5qk5_Dr*t^W8-_++#pe?^TnA@bu0L{>wgE~UI#D^8+9P_qoZP|tbaRfWUS>O+i78JT4oFZ>*NjepyhD+$e9-ycw8uPBy;?G+`VIRKaMKNXiBu|2nG zcfkJ6P+@}D%;J*GKahxk^?6@GpW6yLj2(L9^+YeHS%^v}p;=F+_c5Y4Xp+~#mf$V+ zj_rAn(9A=bd&03bGlWOO-_h6BOtd}o5~mD`a9Zxg*M?I<3bdw*B}9OQn1@YhEQX!4 z8!QdB8rtPIGSXJ|iL%T3G@|nlZJZ5TJ_EGo%EQ3YL;%C<%Cd;rhqMgQ;_jYEW%Fc#Rg`akmRC$8{+ht+F z{fH^3haz6&jjniBP&*fE)3YahI{y_m_JGaCzD9Cj9f@0w;&Jh#!ugKFL#@u6OxHTf zBi*sX5c#=(qH5*QWTO7h#+<62p(KH`CMc>@XJVD$p$t26)tPILQTOgvwt#`>JN^^B z!4SsMFa`(L7KwLzfjIdw)m4rH$g7_x{CB6btRv;{91}H|hi@};9HTBEmUku-&StG7 z?V)4Y=H^Ql(vBmQbC_{Dd~2Mn9n#;O9?BmO6UBnQ3lQ8S;3n)0FFb1>veT2vL&cFa z*Z|w>TxsgonhY*tK@rM_KCVgG#-If%Er$82CNm|0y|s$ zC{D2u@11t;E^d+WAs)~f37;&ZZE<>dSx?%Q3s!wLMdac_9Gy^1uz{JS`M;tyQz(^w zPBb+Uw5)M*fps1w(pd|9W%L>wN7YH0vBAG%F!T4G7}18qS9XNC0(lqOnPnG7EPYKp#D-uhH~Ke}!)= zI5Cfr^*791%UB4hm@L6c^)Fn|Y-y^jM{RyM&#IYXAr9g88w;fOW?KvvOgRh9UAEDbaYto=SZaf7`fKARAX@p z0o+uIJ@yEt#dJV2PZZpC&vUoSI^l@su3Kt}WrDtBtvr~lOp!33Dlm@w$S4~u-5I7|2WdCm2pht*vqdL(p|M?Sv4 zU2{Au?pC`ed`&_z+!|qsFjj25ao?O=!_-Rg;qz>x9){bWYX_7R0&2@lKRV)_d;4`M z%!%fdgDmLK5~vU`7a~!6m>B)zi{AhG7-HAQPTXG!#sWAx&|;zlMQp-`UqECOA}2pp z>{KP&^3~GR`pP3=kt@ma2}?eq-E9a`r4pXV0tq{%*v!|*st+Ttf7S!`>j&4DdsR4w zV}F2P!3dAPmKpVYxmU=b*03I8m1`;UAd}y`QnvS)ju9R)&Dqqr%j=a8}c61b*TI=Q5>pNwV%htS<<5ztrBoBG1{mTwsR_^>~ z^7OL$e#n&O=d=IdY{H^UV|Djnwv_{#7-sDkiVLo=+H^VQvhDc=5sPAWDXPnJv!L+H zw2ru<+u2IFxKz&>5S=4`9Txu6^WV?mCq$`^B_F(tfR6$2v8ScwERp0myQlR6vcF8V z*>TfXX!`B!ZxAOge}Ca(3#HzBcSynp`5k4e*aYp>bW{RZ>^5s-hjSbMP!Vw6d=6_X z)zj7J-%4x}4+9YAcB*ZTzK6A8jOo3o$`h85I#rX-pp`V((>w?^hdB z8K97?gSr14kI`;^j+@{! z>>jS9T)8Y(jt{Gi*U+e{RcP6%7ijEV*|hK;*DBeuGlx$1s8OGb*~2qJ^0>zu>_#ki z6Oy4lYKvm-`90lq4N-w2T;P6^HOksCoft^JE~3qAFgF3Va)K%+SG`(4-e-4~3l3I1 z8e?>yTObd$-^vEN5=VLP`zhS^b8*dGjHAe$aw}Xh7QJ8Ebytsy^UtSnS?M9W=i=0E z=c0RaKaKD}0fLLQ+?XS@@2yb1nxOQ2Q|W7)a-5Z=d0%FWw1ygT?i#)0ysgXF5Z9 zUkJ0B#$2nzg~@|h0gj}PyDgLF6(x08co7puU?1pi6Fb1ri~ zY9`tBk7}Ul7l9~&XiocgyIE93l6tBUlsv=yJIgEwC?j0W7;_YJ(~5}UthVvQ9g|qD zDX2*!T?y+#MNsJob?onUFEg__5nQ!)2>KrexRjgf+0KD5S?C?iGBsQDKYeKnMkLRC zy`IvC#*p3KqdUrZla^S&STOk~L8k50Bn8;RBEGfO@ZB`Vn{R;D)_W;xyoa)J2x@8+ zrbN75OpEm#;t5L9aY^F|L}7N&7yvD_GUdrG*RKqZ*Jw5LC@axnT03)xDh*^A!i{V%4{w z-RysF*K8@wl^6ZJT_c=8&?S%KC|Jb6hkuqSUx|T zZu#^l4{8M3qo98Ij7_YkR99s~E|>zM(A(f};rt#GZ`Oc%dRH9d z@EtpqE$=Z9KIMcb5B(zK3HXhK!OQcV)zX4le~qw zQ4w%yN@qkuhQm3V(QJqwWASzO6Pe59Y>i!2;D)2((7 z=F5{QU&vY7+4CL4JkbK8i_sN{4W>-)yV2Ru%JYr6tSQc`p7$bn zOF>z;!H~Tfjpa8qh$2#0*O$-8ZBV{ohm%?ulk);s`yCl)*a)Q<6SV>GSwkN%<4|bw z&tx~vx~0PiFs#KX{Hmro8x;#VWms&q0w(&S8}qUzX#U}Q1*RYAH5y4pFc|?4;rr7X zvNWA#4zI-38{GJN3*9|Gd@f_$*CIx%pt;2FCBB;yRrV#WM%P^GPbRwNn>-0sGl)Oj zk?95IDfHfi?{X0OH`07S@4{U+U2aTEDtwHcFa*uXF4Dj8%6AU*8OJM;eEkMgCdcvx z+G8ZsaAO4^0b}$+FUPO7>@eW99u{0>+1|Wk z=3AnnLxOOLxRc-A{0SnmaMSoLdP3vfZt%1fSNFmliT2Q?narq*p4c(D3b1m5tm_4y zvH?^Fd#A?v&b1CF5c0SYuNO!Nbn$f1O?Ath_o382bwR(BsrUiC5o~}L8y}3BmS37orI3sLX-K{oNKxL=0x>X=P z6)T{?CHU%erB8J`90LQ0M;sa*#w%SkLHE%5Vr(I7oCpxLfmE^{jFMDXZS<6_IbHJ1 z2H)LPF~5|-;O`1;^K&111q`-(;ZBD%Dr$4W+DZhP2?p0WIK5XQ=kz%?)+!KoQX&#Q zGggWNZqlBmasieqYjMsesd~yx#;VHICZ89eAp4Pvd96qa2oo0S;2cH;RQW==m8slZ z$YWpyrWnPRNE{!;pnPWmF*z%p8Ud`3CA&s7t%Q+7we1{_;vnfvmbaOr!;qW0-gcP? zlWO_8gy3_$9>FXampJX#;G+LU9|IsEPi;LQUIXfhcWw zVWooW*-GMAOJG!ZkYzF}yC+Pc(2}o5ao33eL^-~|d=i*BLL{BG5Luh1feUSJz^#60 z=eDJJ9rq+^PMr9u&`%^`>~xN;j$0hF+IY>(+nSMlU(T^^wk%^L5EoANsY4{lsdiDE z+NpVAYM1ey<(DRKO0WrRdwagu_`Izm`A&1Pp5V{Rgn(g>(AJZnFgq*ki^NI?h1n`; zxLQ}^-SG}zyH!}cxvxTfT~Y~26A@By`LTUv21LjSC$)*_SHZvXTqSY$_X?nrZH8zn za?fM*s(0*(Y>9A(@CO7KXx3)1v(s$t8^@9X($EA`mr5D>-j2UvZ?JXDL64ekj4Obx zfQv^>IsyWlz;}U^mHAh{GrEuncKRNF_<_R++=p%N!eevK_H+&qeF^L?e4Ife z^MMFZiycnEoG?dlwY}b|c&mgT6o_uh%TMMy_Uaay(pa1vAY$y4j*y}@3C@BMU_h(8 zt5Q>|-$<(TI^R$w_gSG{3#5r>UmL^9h4l&4F5;F2?K_p>ngWuY1LN%lp|> zzDnbc?M2!gF0l}c83SQtjIYYc341E(Km|s50wh6eWX zL%eBJrp#(;U&YE+x>0%mV?u3A_@+6A08^*e#v@N^8;?A_eLTEG9}mK+aT*WeU5jgk zwaQr@151daLDjDxq7`!rphXu>7y(Ti+dn~VZ)?T(ovk&=O=dZ$A`7@cG`t-zd|#b! zFs8>TBHWH$60^~*;k^(eOP~&U$8$QkK`=Fn_!~Qn8XSOGAS= z_HZ?L6oCqyW_kU)!S~5dT9Q<(Y#M`MN>cPv)CII|J(+!H6m3p-Wi_Z#^Ld_O>U|yQ z2iPx9r|4JDR2-k`At3$J`#!CI4-XFy+FlV{Xl~lv+)K67aQDT*`dK&_%dLIYY*O+3|EP`f%E<-K5>-C zscMWKsZB9*m`C&`lKLSgD$a*HstNxEb#_u<0Ihf9vz1z%j_Tv%@nagmdYp9;6fH9( z1Lj{Dz^8OrcN|mFfSVlX`|LF>Q4YxnEkzO2mXM7wH4@=~q(XfQ{fSeJYuZ$MR@->N z_XtHL09^Dr?V^4%Hz|;v+cg(m@{$UcnB`=)wZ$fO@MQ%z$T^kz_w4G`+W;+>0Xk4f zht?4xnrlJL=+DC^Uix8Q&fpwbv&rwdq3<0trcoW9CEm?;e!Z{h6abul{2XX;oAlIN z4|zb1YSA_nq_kXL)0vI(fu#zZAn?YMo3&D>Yc86@VSb2Wl-uKl{3y`pp z@K{kv=8X#_SH0qClWA#?APTmG5DqmeJKw8Qi9>qx@t`MM;Kw0AQzWj-KrO2?>Tb0S zQU*zFS*&O)A#zZ)N)CwnqpA<6yaq`o=e_baZbFX_#yC4plHkGj`7e{zAlT*d9$%K$ z&sC7I`kmDT-x)sBl!wV5q~NUTxyZ4%5}!J?Y0vh8@)fVC!92}^J8lDT`Uv+%7sLQlGq{u&4*G>fqlw3&{{>i`+#M7ko9yAHUTd2U1Q-8wXY4@!}%Xi+SJ` zE0cKSSGd-)*|gJj<_>3vj(=&U1~zT>YqHSJtfu-TM87Lb z-!TEI5c&qHpM6BfQ~_1|Nmv?@iJ&KuLzLx}@Y{9V+aSm#INLM=S-+Lm_aim)zDrS? zEx!8E+ETY#Qmlb}qJq`FA_Xu)SZ{ywc&brfwu`jk6_YWf*FKBxy;N$S?eiC+9{q*U zzk5c3_F3Cg=ju-kcrW^0Z2fO=2z_^X%&AK+9O&%>?)1-a4?uziCffykKH`QQx0T@{ zEYzJ9RW2%D!#akdC+Hg&Wv|37et}T>f%Y;|@AQ2mmyA(aLzaU!f3+)?&PQ=?_=}>W%133NN9Y?!4ecp|5Pt3GRj z^L)F!+10W9^1NC;0@QH4UV~_#kvtw$muLHfk&<^<#gjnEd7=5^oD;3{vbr5Lb;6(_ zlA$6uE;>kGi{p#yZ>PM%mELD3FueU>e?Ll&EOB!0;;h4~C&d}+uZN!x@DXs{mGt$z zE7`Lir7y0odtZ9jOxxq$xBl(<@VwKxIsxanf2(3D;P>wW^rnjwfbIv0rEj|Uy6FG+ z>ZH@VD2Bb>34d+|Jc3pXzw`&V;&D2IIdjKjP48Om>;e)}{!r~*EYa9uIH zCW%l?y6*G_h5qCK_4nn;2m1T+?6iU!M&e+9(&&vee5Abb;hU*Ui?=>~D-~}kZ+!Y@ zDwE)iPn)TOFWn(jRDWZCDgsr~-yDQj96+BU==Qi9gX&^UoIid$Jc_WtdN8PSy~$a;#<&!1yZk3I*eCi+c((7V*)iXl1dFqoF3hmH<; z?eVuTs_4OmW($njIWE3JooDP7u>l(h9(#uza&62x zb1y7BGxE;64u_#xwj=+1$3HG;R4kxd&+14c%-4gZu6!gl4*N8Y&a5GIKVw^q> zqogHQsShvn?wUZ?5Yd2(&)hJ*VJyDgbOwo?u!yq}7UZJVeznDCX*Z|cqr-y(gOEiY z?cyiq;-cTlVH7CEGikA)G{<4?5xy-5^|0_`yt!|TW>{5tpuzfpLk%a|Xp&Y%3!hg} zuzv}s!=dzyvWTb{08>j)&A4w{Zf<1cMpgatElfk=rxGTZrGPz|;R#$ip)R4tY)S##tg-z@lAfn2V(`GElyaoq zfBL-@8oOKF5C7+kD-n-zjmD(~u3_gUvXV0sQz=lvWeD{iNtm4U%A`F5*x3xDZC9#? z0!s#uQ;aEwD69Fe-ex_)F%A2fMoyM{^Iw-cOS)u5#)Oz-NOs%kkM9GCadol~3D=ug z4H}r)=_(k^5ZxiJW_Wwl+t~=@Wd82vX9x^eJ2ZP}?##>rc&2fEKKm8(^lz{qGw!J|Vg2h1PCFT2cc7Bsb_)4-EH8e2x(Y{MAB0V;Hw0O2=+pSd*( zZi{tBz6w&}0O}8ZycY$)J5UbE!r`N(M9U@kV-+mHGg3BOJY^`2d_NXfmmD0&dTT`f z5;}kID)l8U$azS#_$%`tb*U4n9=JA~ZybZAvvrzb4{xt;IQ;6#(PGHi9E&7uGBi>) zGG=ZG1B2Bf6kJaMik%^53Cg{9J38riZz=Y)e}T~|nf*07zdJp>>|BkmuP*+~Dum5G zcCBXuU0sh(FYb^7{52ZzUU{Fl$76i>=T$dFPVX+t6n~VPPp-f4hunId%aLB^CO`J~ zSP|aozPip3^lUd#y=^|SH@u0czhe0K?lgsYG~6Bp_cR_1H=3{%Mb%_X@8@ zh*)=D&@3bf)|Vqh97qrJK6<}9qK?P}PX4?Kp}$7Q{j1K6x}Y=c_WS(aU46N_{&t0b z%ZJfU8df*G!RTnj$*MQ_ivW&CEOc-%Iym}VT=uU0$Gk9Lfs5YN85YAK(r36j7sDc^^6|h;hw0PM3^qiZa*tf|`|lBN2`+ay zu6xD>J8Y}8{6`o~=3#F`Ok86G8N$VCEh9}x@su5V^eodRw~sVS$}mD>CXE%Pwe#mnT7023+?2~%dLG!Y%)mVu+p47@s5RC znvo;r015DMeC1jV%|Gz43`fUS1JxzwvK;>!nMzy^Sd9OE4OuVjiC!{<*gj%Bgh_o! z!H91bg45U4XrX(zLZPXJ?iVBbU5uu@T~p0Gu+I)P+p&F?bC9<9)FYsY_Obzg z^BQn1$-|?yxCu_pdccH<1eKgxAs!4LsQm1sf)^_mmM@NA;e(!O7$dOFFlQkJedQRmBa~SitBNpiCF2lLeByBMec#kwb+m{p;0)GYU{BI+LmV2 zm0iJ`^Eg|n###_g!VOW-xSYB4ML0=AV5`gz2`s>dVc0Muc`0N@2%bP(sPm&b5wIZa zWWaA&8@2@t{H*8cQ@Yp*`+z_NQwff$ka(1-x_Va7e*GA)T#Wq3$#Y~&bOx|ZjVa<< z00i{PvQ)+S+TZa^iRUPA+Z)W$!baXA>_jNvSZo~E4}L7=Xma5r$YV7kYh))Sb56>Z zbqw2CgDYL3T%uQkj)vJdAdubRNyTIex>9sgry$|QfOEa<^NyQzS?pl+B6R`|4tc~5 z=gGlbJXq*(X)?xe4n14o#Eth&tW;`gPyX~Jcfmy)(mi@02T}lc^RnZ>(I83_yS^RI zFcJ-g|CnLR4T9|IThQpO<}nyRHFD zj|CSUIf~4-%J>z|7*I}<_z0bpTe%h%NT+HmA(w(EHyzgXTizNd){El7G?cCghVI^M z%e=woPAPM7vx&B(8cb8-(tSS_k}9_IrMhM{Ip& z+iexXm!km5+ziY-XYI~=6SFTp_i#DW_;gR|Ic`^6x^tTvP_Sv0F-@BeD+_cpGAR%w{MMVCwlCiJRZEa7%Xx}+%~(9#rFZ)pe&S^b(K zN(q{%30nwtnDB0#LRawWu#|Boe3T_I8L}IBJzaK`XQzvPL(z^yS{J+Se1YA&vTS6FB+aT_Xja*#0Jh?;_4{ z`{cCiIou`&8Wy&MlPjSoT_&TJ$d4FhzI-)T;nWKF?I>aC5P*#14gY=R##QHvkW0A?WxAY zu%}8LRa-R*VY6i%8WRK~l3-xR{@1(AJ&@M@ez(10dqzy4vkDFOv8Q>M)- zS2oEf4-F`r;uW(>dr%b)eH%u}$5&&XWomt##dm3(xTedy#&%1Mp^zI9bFUS9ZI^e_ zd?y;GRb|GgEN>QuX++Q!?1OT;l$Ecw5yr&$SV;%x>zBMHVI@t|V310+bA! zK=sUa5jsZFn+}gS7w8DP2Y?u8na!YN6Wa4B`)r~5gA%xP>+EQVu6xQCd(#)3G~BQT z;U?wzeg}=wZKy6qnbYMk!&9!Gk7p1M^A|#-^T47PQZ@y$Tp0>~0-E}`%EEsq!SS3< zzX8Zq(RiW-u5wd>fhft3r+=#Mv%yf+m{#{|+^&sR@==}?H8``eN5d5+_FLK_nbSu} z0Xi206qxKltEj|6b{@aEyXqADIWDe7XE)b(gJE&zXjdZ%*oP*LANDSIg7cafW<8^8 z-7=i(-6(&tWebPF{jh{nE_M%h3pc2j+4abXlDSXlp#>Nr#|=m~KoD`1Xz{}eFn(JB z#?QOsDetN3gz7#mxdJsJ*tj!mFa0ptcJW$p4@K zgTMzxaz8CAf+g`boSg%o<9A!vh$(O_SsdeSLIUe^+n$*HliqgA^g7<%@Q?W(J#!L7 z(ZgYsfM-riCMajl_fDhyHq!1NMUN&wD%YTXAjh32x3Iy9r+=U+{Iaonc#xC*lr@eT zwWVCGYk(NlTT*-(qun}sNH4!P3>E6bn<%rcQxV5)Cr5{Vd#b*}c9prH@u2bC{NV-4 z!!9#WgyPFc^gh_-m;A?;wus> z0!=JsyEk!fLKn3>@p}7c?#N1!PlR0IT(*Qhj~^cqs{4YPKl4nilq_xSmi6JL%7@IPU2E<& zw%3UK#%zLNGnywG+G2$mZwjf$5wC8MV0kg!lsDl22ZmQ}`;tJ)dP?t=&KJA?xA?#Q zF9;c3{_fYucl>w%{{KDz=C_qOEKKV2*#dbK>)q$LDL$REfDwJgRmAJT+wE9-a;9{7 z$-K=xMWWPhA}o`ZUEj+$C`Sh#~@t%+kKEwf;-Eu?i#f3nfY1OuPp%|L1&1L-jL*giF zld+4`NP@J@y^O5J?4g@Aa=`EX6&|*i_|+I#l#8PIkMH1x;ZYZb(SfQdCfQqnz$Z8_ z>pEV2{EF+<74Z>pHo;Dl&;)?fPWMF-&Wol2s>_$>KUp_8J-vMzuZjnzc?Uu54@ugz zAF8i35Bc_Kt!ImA31ee!&aE>yGy(za+Ri!@NA*u;KTcVSLUr9wJc$Jb)If*|#QnNO zOdJ%qp<%Erw~;CxDoT=?Dkd|tuuy`;nwh}E9o%lAJ+<30B9QAs{#Dd+y~AdA z$UJH%n|m!-9%-2)cx8KJ-0mfdML)Ax<0>4foNQQG3i?Br=|CkNRWan)0?F@)WXa&} zI19<^iEaa=4aJqtSP#PUMxnjSlm=d|FlJnTihDSo^L!gqYNCPUCNacLIM!)~N;+kG z#g9YHILJjJeZ~D2g|jD`B%Sesiv!&)dj+v~S%gJI>o6Fx*Ap4o7p+^n@3XxMQe^jD zHXV07iey}}dBhpKY$cRt2KgCcy|oiH!qrCzRWaYl{qT4B2|>wAT1nHs^%xs!;UcHu z^Xq~gQrFH}kYf}c?pP9}_Svg7t*dpjkEp*YVd1=B()aeaXvtE-r1<$C> zSEjfqH~#otyI*tS;4#}c!|8dE@~*uB7H8)F&!~`RW#bI9N3$9L?$yymWLwUvFI#mu?Fr?llR@=@t z4yrZ_638FCXvHRl7rU!9msdXtAi*>e8f);fT#{k%SI!A3`4A{8qwD6Kd>^Pw#ds?l z%JrGT=yEGka=Mgh%5>08?hX842zivi^)ED-o&LCpBf%6H!cK_QyL+Bo`+7VHOoV-M z&a+^_&%=BLyRMn?ea4}SMZZG`tSMmG_{5D-C-pXiDw~8s7~xb*ryLU>O%q~#A z2(t%gkB>8>B*sNVpO+7){KL={yO)jpU~)UX92)_%4I652G{&ZLjQE6rPT|ZFl1*RD z<#SdJQMHI63v;weql?Y7?Q~JM(OKItm`YIdrRn#~SMQi`2mIscvpQn8u-E>enWH%K zH|)RcAxwPcXSI{29}gOxSegF3y4trY z7##11iSb`TFkyl#;^Wd%kZc&$u-w0#6=M4OYF@6guXtGnV!DRs9OGYT|7F@3Wgz>= zC`)Nm>w6k{+qoAgp^hVrn-Mp$3u4REf0gn>3AI`TD8y^bEGt=(=+o2c;5lkLT1?E7 z+!WGC87e?6VRIOxL}7N2@ih_Gn~_O(MPkNm zk4#sm5mGx#!Ne%IC}D@bk0?LeimnL4tm~!Krs>4eoM|7)R&VG{Mj?sx{X}wtc9^YO zCj#;eXbHBeeGpIWwJUqr;mUj)x|N2>7yQ&CNhRz9d=*TB^^t$6i5zBNWrBoHP1{my zRm`)=jsp{2JmRKsQ}Aasg>Jk`q{|vsqfluR^so+P^|PIGDm8Y+k&fy}JNY@)4UcwP zwCQmQ*eQM;vJd~F$l`Ha{Ea~63;JF-y?f*-zV#Y~Ttr7WZDTus?oSV@(ZfV{nVuyU z^3-Scjw(#~&_2xjRPg=$5pH zNP2LkKW7Eo8M_&q8L@%>{9a5C?uzN*UGcmA9em~YD?~>{p>`BDy4~>_FH@X-ik%WF zB=_Lp{ZXCd2H2f*@;iUqR4s!?G`Tx*n%S$=@(5#Ka=oOj{*%f!ij%DH%r$;I3W!D;b_*-*iBCJw0 zc!zwOiCYeYCs-Zts0B~3I^O#hJi+RCA6oDPtK)ra!4s^G_o)R>usYu77Cgb~c)zva z{T3#wvkwww+c?;T=Y5K5Zu^8zqcjU|FGjfJ53;~=G@sYp2AEaW@?}x4&aA=W9UKN& zrP{z6!x><8yvA^X*BDM+^8(?+3`hY0E`hW;lACL&E=T~1}!mF>Zqe+wW zL|7$1@EYw1usU9&9pE+E0j$xE0ITQMXa{(0?WofUwWCfa1gq1D2&HB{m|l4JeuU@&#WRQN&RT4NuYoWxOpRSE^xXl#Jh@fwW?zA=fm9Zaj8_Wtm`F+(D( zQW$uR!UC+0SMN0CSMM~z>YWy0_5A9cCcH+c0jpCd;nk^=V0G#gVfAwB)Jb@sH30*U z{KJ219r|I~?9c$K6acKzp#fIMYjh}hjSdCY=+FSG=hx^^@ERQotkIzXR?n}|q2LKt z$7^&bcy)6B9$1~+M_4_-2DukvgWMaiPVN)1k!RbW;HRY7nuE4s0ciS*J07>Jee$s( zJUe(FV3kUIYFy9aGt6OiyhdHYYg83jqox5?&#y6oz!R*F*O)-yH6{?S#smtmdVY-w z1YTnT0c%VkgXsWm5)a9lzpyWGtyR1zFkk5}Vv!%lddkti-2i1VJObsh)d*&_;H5Ke z?d-GxE3HEZ2Y)!`t(_=zUxz?{SMQi<%gPV1N`q(3ed>LHRq!4@H7SX~^lmH%Rt`78 zIRw0b*lD-`{b1B)Hp07M7Y(srwQ7EN->hbY<;4qDpI;GH$E(jT;R#m9tIsdt)#sOB z_4yTH_5AAdOL%pPFIatkMOZz*`uq}Joj?gzCr}Yq&#ytCgxDZZ2CNgP1Z?ElHYg1O zWuLbVi&3pco^1nj&^9s$Z9@Z)r&3`?r8tLN8fEqHZ8_hH=94ucux*hQhzeC5(Mp?Sli5_4cbor@y?g1g>%7+kzXU=M48t%4!!QiPFb%h%7>;f6 zF6O{(P!wegwyu=ybCMhwB#WdNQ6$BSBpL`>IzZ5aMh|+>qk{}G$gn>{BZD6Hpg%-D zLeKm8z0Y1%`&Q&GO3q1;Mv+x}zw5pHFVFw-Ue;Ql=9Zsv|HyY=ZkfA-4eGDXW?)ln$UsiE=P>7ASs9$QhpJ$mt3@nX$lyhv&BS#g)CTYK?2TS*wp zx}+tckoD@kMl@Z!aW#d5?NuVro!Xq%wd|e;F=T=H?q^f(e7rG@y~K1n);<+j1I2$A zQS#wh4&Yi)p8k--K#din-h6b$y1e7@-RH@+atX?QMECwi;L0ZX{?V=FdkGm(jwy~4 zANwul6HiG*jg&tKn$MuUZ6!PBCvRpKdVVwcD);AK-sHYzV@uaLvdOx67Nm1mW&+_- zeB8T!_0i4g)~5!(_32o>2}i!+%y%bJdX(ouUVP#>ZO(2ucUdlST=3TI98R{;m#rJ@ z-F)ON@;O314lFF*la+HMi-+I7G48N+LZ-LGzn9ZGf?wu`ebnDV^|@d1k!QE*W;_TZ z%k(*!`S|i;fqW*UH-@H`qX&yR>trsjj>j0>udWwGSFepXrr-Lb(cjFzatMEz_jl(1 zkV1@Re*@$}zCbdsc!)W?wwGqD|VpZ%m>*T4rnvrBt- zv<(|2H3y{oAx~AhoBinPQw|>mEem1q-M@NspMsgpp@;R-80Z1d!(T4Ez<7*6cBQfd zx;OPa=5SUyGvij4MM?i;lZ`R;9me}#oF&-*@~0~~I-RFyT=nAdMXMa1pWc0R{n2$N z7~+yY%FW6jPnU0B&%vivleuzj)2+5F{$QLDS-d_qu%0kKo~IDP@AbizIX`|kJ1tE4 zde8mlxCD#$CZc%*apC9gUC*xJ{uciN2HC&8c{dw83r~>U;=Ty}LGG{j&Za*G-Pse5 za>tvg?GrDqRGgO|w#s-CK7azCN~4 zvtzk;#_7Sle9z8w&F9{OkN!Mw7ydaffykzHwm8R$%A8=jRoU2fUXVBL-&p!icG>wp zsBj@?B2epDrM9IWJs9GBbpLk7b|3lZVfe{BwXGT<(eY@nh~twS%o-Dzaklp0x>Faw z&vfX(wGKsPS2d?X{rW66vUot>D*UhA*f^7PVlI2Iw3oN{^5%@CWsz3Tp)Oe1S4g*+ z&8Ti*?Vx;7u)n$c=ioE%E*MX`vAZ5~`oopS@uUtht$;Q+$lb{e^y5U#zSIM!v|fNk zU&CCAfSh-}efQNI9Ac#(-O7oJ@f^9FFz#cWZrs0e)5)Aa-|Zo?{qJ?+2_7M1U*c86 z$XsR&FP_a%Qw;Hg!n~M-vc`<^&vC{MV&1xQ)t>9?dEn27IVBTg&iSoBr&i=Mo|50k zm624A6TX^T+KP>P-Jeg~P1xK&{k14vgrMB7c>m$mocwyT-40M46w3RudmbbI!>t=R zq5ARl-@$T=LbE4Z=19aFuMPBleC6LHc}*0^?~s;M-Mg{50MfFDxAPK_-sr*E`P%exU-*f^ar;ZkX!yMolOFumD+y|Y4Vqi_9Al#@ zeq(sUOS3nPhX2 zU7QY+UvOMTmP?lEEF#HLojJB-S^aMAZI2f$kB;X3_T#*L`_|{U^e`k#D^ZkeS#^?A;Q@8xNY!}#v z%=pG}E9H(|$zJ^pmAOg5n*dj0z{!`-ZNz~6vZWX>%GPGqP>IpWGQ{~m?nkFV}sS^Rl< z@%O~^X>v&^LT@p+kjc~^gWenCB-ixWt-VYOGS58u+4S(U-WagP(TOvg9JOp9K3zP_ zn}GJMVfxDul9F+F@z#U8)8qH^#Hk!Q{Cs-+c>2p<)(1Ghu@ZRl#G-6jWXje>HkYl` z+uK;VIC)}}{UvwOObp~|_p4&KZuwS;)U+Qg)yC_?)w=r(&ZH#+$W69*?$wk>pe<|A-cTu)pZ)4ol z+ZcB<&YnEEC|l_-WgFuz%GT>`jGKDvF@kT=6mw=D9epsSJp6eX7hOG$+>K~ z(=%5#W>zQXvgLYb&u#22ot(>->zzBbvF(4dWuHG-Bk`4&H}%r8no>Cil2s9NYO8~*2KCC7O+#tf+~8elfC!gYJN84m zd}sRX&XpVcCHr-9>D_VZ-9+o$>!en4jye8Zoj-&YNzcf6ZsgWUv0cHqQ}VUz?#mcw zQ6Ef?PvoCO>G8?@^C3HKC;ZBpJ55Fw_0ZE8rq6wMb~Pt2R@prN$|gYOvSl49TL-nyietxIYyTkmgetMa6JYg^%?Y;CJ@zihp~wXMogPuY6C^{vWLaeb?@g=<@t z2ZbAbZd1zoR%M%SQ_K2RWovFz%=%VkYi?7`*uUJMbDMHD?3N}@Y*WuD+~{+gf=;Y$ zCYR1_Dmt-EM|msN|FC?Hd^8`0>!Y9CrlV1~QFEJ)PAc4}xlKnWx7kkKm$ijXg&Tct z)6vOo_H%NZjz-}|pWAeFa+?k1)mvNW+@_FCrp9gV_`KDX)U)HWUE9RZs<8igBu zZqw1JZFY2en~p}|dY`Aa>1Y&g)ZAuAr?=VB>1{e1g&Tct)6wZ|c6551jz-}|pWAeF zTH!{`Z92-^E4S3#rlZr_?CA719gV{E(a&tt(J0)gxlKoBw%O5{Z8{o-8+~rm(V1;_ zbY`25M&U-E+jMkhn;qp%fSZ^fg&Tct)6to2Iy$pWN273~&uuz7v(1k3=EO}pN8x&( zXSeBS6mHbqrlYgl?C9(^9gV_`KDX&8Pr=wk^4V=V8igBuZqw1(v)LEiKa66*Gba&q zn`6&}zL^hsVp8@>E@XS}!#MO?*A5P8xEu0rPDW%RviJG)d5-gE)o%RmqWtZ=!m69S z)1wnPr(5ou)45RF|(SGfz_fHG#jfxxjgKlr0uX?Vjg$);umGZ>oD>Phs@f-`S)X zHz3+#nRgd2F4h$9wk%s=2OEl8D$V=Yc_>UCN@*i#tm}^3SKsQ6oTmo#1WI1bkP}xP z;L_Rdl`+H1ZBzT_jaIq4wq+T!WmogWH`{HQFq;|$BSUYu@8&kj>E4Oy-pQ=+U(RD0 z@}9YAFaP_Pi7cKUpyghktMJZ;_apM@!O4#n+dJbd(mMxNvYq9AcN;QpJOpC@Ap^nT{)V@$yj9Wdo!DHuY1zm3Ze4OdcRWlX>)ns8zULTEp2>90 zu99tqDZ}N^$asMJ)oi9_jXu?K(jq%3qw=jBOtO!V?~`|VWJ~&;?wj_h5&MG8I>3?$ z@-0Ij;3=C?Z+pnZe)SZ*wbG*d6o$#A{25y@V^?a(vX=)*C2)MakDpu`U-DP;{f=6A zD>u@O(-=d>i_blx7m>KLIu8lB*D4wLgKQw>Q47^ecj2@D_q&y6emsi0$0HEB-S{C; z_4eM1dXT<1pJ|(7ihUT{s1r|m<)eFmHCnHRgzKj*AKknD@#5JV&Mv1lMC^@6U<_IC z9TDw(%EObQ-1pCBBM&l|_qehz(^tU;+&SIzX|9d!jvO(|YeJyv(s-#{sOg7nHr+2_ z*W$iY zr2N%Shr7t%QTw5>-PN9h1@ni+bLTIPhv?)WNP6&qxcBBqs2mt`AD@=TPhB4mQePaO z%X=n2pArD_{QoUy`ns?A&hOv&+bpLA-Qxv^<7p{2qaXC)Tz%@-`&O`8>8;>B&&s;P z{oLC7a~|51vn%&nIXbRAzn^0O6=fsNkm`6AMGiOR(MH2tM)rM*accHR)@YyAz&?CC z&uGds7E=A52Qqknjo+Ur?9rq?fN`d&0B{C^N6V|B;NB1 zgoKxD1%8yL$1Hz6spXx;i|lU2kM`?abH42RIL)7kPAho?-Ghg(jf0Mh^Nt-atK)_} z86@yfq0BmFpc`v^IOV9J|6x8)iXXpDjNd1xyCHov*yk+-%|NP2Og(E#V_jD_d zo}seV8qb0{KuJQVc$yG)WxTM|^BndY-@5bRt*f^lUbypk(LYczDi%YySAUjq+O$K3<$4IJok8p1FK^oLK6cOd}8vhIwAXgL_LAe(RxrasA_OE{9G}H@n^kg5~wq+fQcZ{NL(8Nu~0% z$p~>sbU3u&<;vnwHBQ?~#Pa;0rLmI`Ik1~idBMTJe$?k4ce@smc#hpiOTFwn`yQNQ z#KoiMCJpf3h;}a}drp082AJn7CTq=6g*;@XC4uxfD9N0>l+!~BbAajk{(Co9 zQh-w@u5K)nFUqdP&|+VwrfX{n{HYUr8#@*IWlQP%sT0>X^3FwB(tvoO2a|{C-pJX6 z0~ZaLeOdBtxm&ELf37aR-p-Q@^PrNxm}@-4XK%b=F1~T`7PRh)G(*4sagT4N%BMN< zkhiZToO+Mm;*4{isx>|?RK6;jY!Iz)Y@M3Rmf2LcHklgrvR83?x|&CC-p;?pYlreg zn}>Ug&+DUY+})5~l;vs1Za@AouR_|JJ~i)IP2*0TJiD=zxL>wHXzFbcx+q((w>IY+ z{jE*QN7>qpZ@+B4zqR?^sJAvHA7yK^z5TM){x%K}q+ZL`>uvJeLj^1Ka(CO>y!q70 zMcI12js8+k*?PSV`K8{5{8F|dzeU-4e;e{ky$$)LY(svFvi1Jf)-wjbYs(pSbmq(4;5XMtM@+7kPWl!UJeEN8p z=XhhomY>n-Bxt!^xnq)_o8fi@%8Dw z>7D81bY?m`eL9_(rZ2vHJ%3)GUd!)u(<{@(DX$rvPE8k5awgwheL4S6ron5|rBUP3 zbUNQpr`DNK_k6CM7%g5+`wJ<%IO<*4Z}WOeULW;OrI%MyerY;C#ya&+Pr}PcxD<-; zb1HP=;mqLim3%s%vX}GoT1xPCA#!r{LjLC^jN=;ly`CO?yOWUeC{K`8gdzh@VQ&<}~7jGC7;SC-Uihs=0C^Kd&rmoJ+0qqwdL317@rC0MEZRf|>*f9cz)H#*97xVx1{jrUM z_Lox&W@&?7u!(XUoEf^oJVBjJkH&v>ntpX+`enZPe3GY<@9j+7x_ND(30r~Nxi1rg*CmM-^n*wF9>hAacVqWk* zWulYbvsR(@cjjK+%ePOayc>R+zLn*I(c7ccneuXnJK^bZX!$gC;(Ifivg48W@r+c; zSE+cADqN^N_*(BLls&ahQ1#S0XLhJ_c85CWrs=2aHnC1KJKCjIY-NYOBBdQ_ zMNT`^illa^6)^}^{+^}_2;^}_8=^>*bq2zhFMJn$}Z zsi&T@iMid9MU6_ie`ha!Qtv;=Qfz$6pT)fYJZ)(XU?l=qvfgN8ZopWq&>Wo&8ozlh zpL3sNC^gb*{o^U+5wB)!{ptDs82RxuU3|8_cwysS37^w%ZVhjmX+XZ;K4kRYrgk3J z9ZKrK#ewUU&NpWMr*nDK$heMLl$P@B-i&Xgbtj{^@^b#?k+b<7tbF@kuH<#nsh@3< zDX&qB?2b<_?MwEhd?TCVY5VbrJ&&h4hu$})_w)C1e!rK`Z%x0Qo;&uFpo4VbV2+%6*j8J=#%m-W zvFuw1R74U#eP`hJ^~i^o9u2L{2!_pI0zbYI5Ytcg5yVDOj~si0|K zJMYfkCL5ZAMY+T*q2tpB;Zzp3%5!_KHfMUF>w0R}PO?s(evAYk5L_Ek>(l*c?Mf}} zQOb+3O??(qEGFB@Lv!pUPhw7+`$045EaysZPVY{C9OJtF`_#&_a8l>y^yZ*Q>8*Ua zU3r{a_X@kpF`Lx`+c>?D-ttJv(KGZz%gpnY(4y=@e!~f_*D*^91EUUSrXSzh&}aLaPpkKZp%&;5Fx3jD2StjlfG z7Y)Wpzj}J>73qB2xYveP91-O=yV&3pJn7HZ$A{LB(m!lhzw+^cgbi8`uRC}6g{8_-)#HJLToJ+HUyn zcOq53oOhsm(r1)wZ6e3+oa- zO6x(_Pq))$7A_8ozFAW^zg}xK64v+KP3?N%`)RdTKl+>cxOr{h!Sv6jpQXnShc=r{ zuq`>FUd;53%Qx&Lm!Ga|Z{G;|tAT~%$+g7Di?N>DLC6tDcw-k$Umi9f1Ke)aLzbBn z@Db(&PnMTVb&i8`2KxTo_J@z-SNy!0pPUAnewQEljTY0fe>qJ*XWz?tO|x#AYBuls zVm0U6^U4WiWZv?F!=w0gEOWnOnJFF1obtu$^pE=}n9i*8G{<109nV^etl@6{@?oDY zeB5;LgIrzCMdy06L`&<8@x0S*WHGZ}9diA}dLMJ%^hWv?ZC7f4^8mTikJf2ExHfto z(lD#EQfU>aGt6IR9y$GRo@K6I8|xW|ULAAIkt=QM*Lvib>pr1`3d{^gmKG_!l@|XAj+5oU~U>l>$rP^AOH{Qv7I-5_nO9mjnZt@IoK6PU5Kk3^)GMC<#nMNPEBYw- zYa|X6BnIj=F5il>${(RK$_N4@ghFa?>pB*h;nz&u*DJZWo-h89=(&sTc0mm_v8R^f z6@To{?>Z8tYE>mH&o(2ZP&Jg!b_t<{iMsIEE09fM)TmdzX-{tYN)#w@MF7r`)b8L5 z{xq10(-8wGm_e7~K)%~N{RVl4fMt%P+l&UsvZ2+OO$megcfCf50!)Uu>X*gPJ*lxK zpLL)+Fvbb8;0j5~{6<)P7y|3Nw5W>piIKL^-mqz#`kl`FHp#D)|Go5482uvG zfagROu}z4&J=?VWZpto9&pkt{SD&fX#p$`fIXZ=Zn<=0r(PwWPYBv@~f13pwi}SOb zEGJk5GF`K1xY*u#<4^fyQSfFa70a7H7M5*9SRS=`V0vVOVqQ*PU$~t9A?L8EoU(l4 z1zB)G2aK8z z;dz@j7T`P=5dkF#bFqyBVj%GKhi3vby_BQ6S&>gY*8monwcv8`tQR%O1ixycz-Wy< zC|1%wn2;K?fz-L++o;@&-t>jn<~*~sD-$%(K?4Q1Ph#ZG^va{&E9aU{eSi^|r7{wf zjaG*BzrLZZ+L+H0FzIS@_TU@>D(j~k8}-P)DSrddc4Z`# z7#k+aylX`$*;f>P(}+4o)s9UPw7vy2SBbu{872C|XNAdi>jzCV+ps}c`f&{F5^$Jxyu+RippqIL9U;e6%L)=h% zd!VcK4-9ZyTvxZQl2a|C+@cMvNDW>=Lhme(oJf*1dac|SE&8E7E%m79*?P1`n|95Z z=ppkIV8e2aOA{DJp1-=Q;L0izIILp6Ze~^jh!F`u`0IaNV8xA%s+yQ7U>08!J7ApM zbHP;@m2tgtUQ|F`6&Yp;sN$-?N_pWx*aeQhwQPMrqzb*Dl!K_y2&qa^ZtOy_#(*a> zAe)MwEby!~emNN53n%07DlGv=W8z!uDxdLE#XMF4Q>wKya{tl?I?2FK&9QBbLlSCK zQZuhLIFLDj89Mb)4d@Y1vsvMwuAZC$ZI*g*;+jwD(JIu`Wf#2FuIqdr{1o&flcg#O ztd%07O^a?Sf^tk1ioTaEHd=eAN(d03^o4xjQKFVUkfBb6SKmZLR8*3QL0vGN{^3^5 z7Sf=k9=tl6IYPAN<+r+l9bFU&MWfbmR3}>v%5Iid0Cx4Otg(Rx>L#@! z@!}uDb*L2#t<-+?HCq!ZdZqd${<@~(ikOT@;5bGxj@mb`P`9UVQo%VIV3K&N9u!l7 zvX<+WvT6rasS(K&>eMEFqiM}O*0xY#gyI=R<+SdtJ?Mo6Q!T3MAUh%%xK6cjOLqE0 zYw1M0*1*>BS%zz*V060lOf-2Rq96#;J|xxPL%tETAaC3nc3zxKsH5|GLjM?C;M zVn_#wG6*lHt41tcf{%fqnq?TajMceTc+})dg`+-Df+ex|jbLSd0~Q*9f02IB0ErsB zXx52t;Rr94Nu>ub2(EtMMpq?omL`%BTDcpR{m^V%7NvBd1hUkoiDI>*5?S$6`-IJ! zbfsUKjf{0ypr_R62d;58yX9(*kd0ev^wB=+c+iYqJ)#S@#XcU?B$XmS4Yer=rixlU z<5ewx{jO9C0`yU+-blmuT2QT7tvby*Jsgk%N!2<@UKz=ekY4brKi~BL;dm&Gb;_l_ z&X&%>19e3)*+Dp|<3;cKp%r`>k#zc9JscGGWTF*%s==uAu$UrJp0V zu#j@JG4>a4eqtYY^<2lnlFQ{RpFGSi=khtZjjKPfC+X~b_aKz9M`{56A#?1M%^;4A3eSh9@ zUv2qdnr^)rnOLrK%AqIEoaMB8?px0jy)^x8sD!-v%*1Lxm($*fQs+~91{593JUp15 z`*>F#dvelgrg=&0{jp?teVqNGpPpOoy%>jZ{Nwoq=JtMaug8g})#!3sIUQ%(KKkk$ zyc_vAOLEZbA@m<2^QT?;LCdz&Qio_i_a?Q4 z^EJ*p-H$GgGS(l0Fjh^Ehm7%!ju9V(v-fw8Lhq)ew|KEr z>!+etPy1}s+4Ofuq2h4fwosE(Omy_S$l*b(=V*6;^wdfAb9SU}md_C|w4?mzo_9dZ z5AH5m)AGG^!O)*}!_Yh$dtB||5ET8Z-SqeLez$1whciFhq&i*Rb>wZn^AMYh1lMct zI2K&V22l zm+6C}QdN&Wd*wr@_|XCX%k}4MVEX>{>pa@C(Nm5NjguSnwEp4r%>7L}M)SA#(Xo0G zagNHXS=S*_`{uO~FUFlp|7tg@bpEkt$RCd!%lXB;GAbBwdQ={0tTq4sqLY&3d0MvGoidOukR0QTfHx9eePyHAa`^MnZGulJDdMf-&za7uG!}G!uv?D@kz)3SPwX{szS>2~2ffZXE>h+(o)&)=JY3stw68SA z&985aKW5GAPz`U~Cq6%2!>XJ0v&Gr@o$6)n=jZG9I&ACD>>z7M<4GXfp6szacI$4x zSAARGr*dccE;LwU>=P%RMuD2+-1(0EhJx`Vi>LRiMyNQk8@;VPByq$RM;{|R9C3`S z_2q>D+n?03tWRsX^GaecaO5`O<;ZQq&5_$2ogXXJM;*sH^wHZKogaGvyV^x+?ug&o z-}Iw(y}Jv;|5x%qGWoSbeKKb`wmXOCCjq#ZbNvwC@vLSY+^Ll)msJsW`D!UMum-!W z)q}*${d<;Qti?iFcR;3NIcNIk&(ec9dvo;A`g07P?=1f9sPiaP%-Q2|4&MkcKRZJ7 zIG%goj223d{cM`@I7#<>E#E=EebmlDj!%Ec3fAS!SY=drKp&3B9nC+Q=Q^vAX{OAx zEIv#NIeee@APaN1`^TZ6tKNMQgy#Spb|3A{w8?t$8S@r1A@Y@9lexc#JqgI&T+jV@ z{XW>`1DxZ2uM=~P)yzkxV+3)ohe7x6U%YTo?l5idPh4HGFIOkWHTj=orG0t?DcW_2 zzVkc#7WtiZsQk`8<_qwU6UO6jkU9Rw0>|H2)%Y9ykH6Ws7=P2#_?y1Q-}E;AroR_w zBVO|>?fw@etMW~I8o4SGFUqnJjPOk^Zc&g)|wwSR{z4L z@2Nlj)_>dY@Avxek)`GO$h^kiwi_AJ_}+HT6liDnzZn`zoh>M)>#tG6hKl0Z;|$D? zjPodMLdTKYgx4drVeygIk=q=VHsgf0pUyg*z08~$_8EN(|F|))+E#1$?(gOWF|jTd z+8m1qn10w5BWp>0YSQJDcAfD-@|sI|GSmmTuivvAFXVO<&j>wu8iJfrR(L%2&35y; zkXYRGLi3a9+xq@w-xp2K+Zmj`zdqvZqe{#AUhe*L2EN5>?C*H~boL+zYoc5BBYwD9 z>mVbYzCTOYxuDuh@p;&lX!4LY(bpkYVhM*_iESKmC0_oJE3xJMCnBs;?Qqy(*M=P* z(#|=R!`o%Nac@6Nc0A}KrCROu#sBC)3jA3<*Cx(R_h*Nvujt{YwLTz5BZ)%bRi7v~?oc95)^yN#~qZunC(SlNO5 z(iuD4x$bV-YQMW_pmn3!5oixb7wHGrJJfo5Uq;!jR&?`}5%m=t-l5jhsW11t^c8D- z>B+u8U&9i2s<#_jJ7M1i*9}j**4z!(O}KXLb2q=L&)xiLW6Lh1s~L3dVEtb&ky) zxs^r8qtRDc9KB7nbtE|$CmbEQ%~9oToLI||$BES(sSV5>l{Rfc+mWg%m`)9`w$SpN z;B0e$l;2kRtm#=l8{0SIf%I3h>}+{>esHWK3O1URZ0}{dxC;gEW$XXK;eEVNil!6m z+xh?F^y{>m>GiN^kH%hFzRuDA`H}p6t-~LduYL#Rd3AM=0VVe#WTPx7SSoX4<$ArA zt=4lJ=0|J&DO+#bvemY>R@U1pTW#CTrPX>ZTd!y1X}zAZ)q35OS}p75)N zZ4b&0_)sR>U2og6)p~9t?Tt#wp_29c&lTyY_+Yj^J}#9R@(Kp zHUd}Mc0+KrUdvYNb+d4_Udu+k^RH!d-|NUu#v;5^&GCu8H11M9yLq<{=6E%wUY{ph z@anSZ8Cxc=Ip14^`)V_-tJQ-)&9U8275QNcdgbe_pEQb$-hG5;X67 zbE`Fq-FEDjWr%Z>QV+eM+bFik-F)ojbY5ilWG;Fu^eds~^-$@}a_#kE{!Wkd*W0lB zfCe1+@d`HYp1YKhymZdZ(q8UH#$N5_ChrURujJCG?d2jU>x=iiK+enGULOCwJkCwo zcuw9Q+3_9KSnKPZHId_m@k5J_gXqDCUII6rCkvAG@U}hT7wvgc0ghfxtHh!64(^a@Dfa$8m?CMTxIx@2_GBV- z=QV|-9n=k}`*b0cYF!RU6G~2J6ezN<;+=r#hY}@y{o}=y+GK_zM>L9d{Cl|{>7dPv z9O>HMB+&5Wb&zm}xddH!G0GAmm_l8Dqb`%&ep&zCN5QJ6OGsKAI0%0JnPpAMy zDmPR#L|$qO}k074%o3tJ=V)mtOc%rrqyAB=!77+ck|i&{7U z?U+xWut9c|Eo701YcaD6+}!fdxs`8RU{wY-^HV#>i&5cWp&qaGJez_N$~Qoj27DP` z#h!>u6rmvEb!d#AAo})D4`1JhQMjs~gk^oeIGe`~)>w2Hd3TwKqkpE9{(uM+Painw zvWnHiz5xP(!fd@3uS50qQG9$~E;_w?J{jwkQ2a{rJfF@a<8vtQYU*E2t*hC`b~wm) zfab%l=F^q@zn;(62UJcb4@TXU+@5_cb8WW9MadU}rJPwYkkx*1$zURvxz2M+fJC({@IkpSRWFhh2o zp{J67F?$46;Pknnnlgx%?XY%U0!+Pam9=8sdtll9!E0`fCv-t z$0f=vWt_l4t<>Cy;P}ms)C3VgDP$Uc5N%LdEUzca=11oYNy}y+Fi&WN&Z+=e8`)bQ z8ARB`S%3RgRle>UV{h-yc@*&yjj__Qv3WKk5M^>k&` z>c8r@0|*cikR5e|OQDP3G{IrZlxY$I)PR8liZznVCE3oEs|i3%KrNCJh?Mw#EhPeg zFmfX$yfkAuJ%XJuD#Qt^r*qvEf$>Z}lhUbN$z<`$sr11>Zw%`6S@U}(<>wY{)d3Dv zGBCAxfhMW~uCUsWiVD|IrhGar(>?d6ID2yJO`>KFMgQ28zTyqp@s z^(*uDzxD_T z+E@DMwFcTII3O(o(Mipdw5k>I?^+(<^5~uNkPeq18gXefNB#lwyRFIFH~ZH&S4oaW z7gR+_(xn@25pYGc>eOen(PD!5m03Q!{^ca=QltXRw-k1Q20hS-BG*H60m|_shx(CH zFE9AiXPLeT*CkXZ_5E70*V*@5e5g0Wa^YU~*q;27umtLcej|b>7*Y%yp0ma-{m3_) zSb(DRUSLv-7)>gCn?Bi9K+jh10Kg`Blw;8a#n1A?oW(&B7rV@VX+U%&KT_4DB@zXU&CBz5)TuTpGiKhC@8%QvOw$;Vg_q`QdGD)f0oW!{=ki-AFUwob zi-yxDA`K6`mp*XJxB1V%>W#1U_CC)&6Jt#0v{$!NDZZSWxjyI-y~GAFsYw!Fc|F%5 zp-Z8tK#v~kO|Rq=&#wjqDL+5PAqR#W6#R`y^2&%9A`7m3LmyrnUCyUpWkwYt)Y{AI zCg2pVO%Y8XNdancBIc=oWAtb`C<~$+x|l9B`W}^HeVj{QRwbT|ZqsSzI6@j;ofxlyfMiG6)p-yrbu9($z zNKu8Ck+1=^>5+6u3$O%hZl$Z%t~Q%){Z6N3*flpw5COlsp&!j)zq)HVa2>n3o}{v$ zaIiql5!7hOiA=cNF1yJJ%oWH-P4ecpX@?%vl2+12XA)X-nVn&fEQ*X}E~1Sd^~1G_ zBh@gxa9A|nIgg~=q!V^t%^0E^v~b6!`(H&*3=YL`)xMdD2}aj*O%IB2<3KW6;*e_q z*auXrqlKI)C((c#1K`C7Lif5dzcAC~mF3HlDs}h+Q?Uw6oC9FxhE-cFW3Xa=gl{4s zBWYRT>do9q`k?R5T54dFZ2T^@OA-7KytvjG59O-CY-E&Q?uMhUtJX4pvGV#?CqaH8 z)#NZbALJl_r@Ejq;010`lFaIFf!_Z}f#bX$5uMFnL5CFxVnikMaQYP}G+$4x1|dS! zj`J5_1VGB5?uJFzgqp%cpy0=vz);4Cw2#yO;!6t^^lpYCA{tynPF9pQN0Qo`qcp8= zvWKiQxmtu>PaVsF*x*VT0C#LghQQ8;u_h|Pl?V%A*0Qy*@Tm{8vc}8Ke$1j=6}eD^ zRjd$zxmwKh;x9%yjGxOVal3hqmYlct#KI|vn|g8tK^}tV+{by5P56vo^Dn9~&m&N| z#;h9k(A&rj=~Q4oI=%5#IWcEN*YpOuo}Hhj>ohZc`8;$$kGWEn!Wz031*BbdstKEI z!A%o8PN*}wDiEN-xLY^s5N+pKBB5`cl~I2e42?`#Qag)=Qe|rAAG>5qu$E*+W6s7H zoZl>H(SsqGqH}^ZF_U8L7!s`W?45b4tsiRQrug424reuls(iGcqq?SlauPCoWbM?= z-ie&Aq6T44cp_kb!GizhjO2%`NXn!oC&QCJwm4t)2vJK9EIH#q=&k z0Uxi!j`ZA#t8%3lQR_Pj0&%W=h>MLWqLWlFi<+CUWL=R@Q&mZZSmG!~p-m8zc!K2yJ{dwjhTB2FKi)K^IE(si!8cuBpfLXWc;u%^RCRo89>j7sjFe&efPJ z5%@iQ@t>Y1>A&vv9m|EZ7xAc$rtU5#gE=0-JW>7_(bThQAs+$4H_Rf?$Be1fhlrsP?sOJ!TM_Fe9jDQO=KHzg0jHl)#;G5ftRDLV}FQ8WgVOi!&SY7rM>M%%1O4)G( zXr~z_M_mt^Z48@O;#v7twmn$*^51cxWI@h+k#wmmpxiGv%sn!1TYGXn(ll8xjJc6@ zG{#QiOj*R10W?3LEi&g^#Z?F)O;NTpl*U}y0Efi|)d7@D69YO>pVKHJXoIUa%fg6M zl8b{xfd>`-Lk%&(9oLRB&WQjBv2KnNC0aZPQaFGMcqA1q=^b8RvQwGP!sHd`Kuu*- zS+EMq(Xy)oTKjx4WpWW}yG2U$M65YC>Ah?(}fBq2t*8#5rQ^X3S@u; zq%)uyZ@mFCWLDg%`0Pqk5C*0fu^S-451<(a@8L@O?;3UEIG2tJ&KEuWN^>Rd0qo^) z%#9J$5h!JBrk#!b79*IND9^|kw)~g0D6)54Pq*~lteIzrLF=mtbzZR3@*$AA%cv{Nf2Psv`%Dj8kB%Hy|W4F zh@RLHRk1-o?4|+HH&TYudHL68ypU^UN|`7`Cn~fj3FB08;y4>&%}tfa03d`$vS$}) z5^!;01XP+iG|dv|t@LRjM5EsL`kj6a5nX*~z=jVNgeLvc1X^fZu!9?E0f4r(Qez0q zO~|AdWGopFaCrkY_$mFMFsaoz^;6yjf4)Qys5Cw+uffzaF(C*M>;b+3op(T;gaAEH zo{u**?VN;O>Ay3o1n7S|TS&us6Aq)1a_3N`5odzD@+Kfgtrvq89*Iop0v>8>)eR6DxKUYGc@;YHiBfjN4;q6fi}8!K?ab)a;A58v52PMjmbF1iA=!wtb-it zX|k>tx*7+_X!{TAQ44|uYK!s622YuvVzs{Fi z<9LOWx@$)1JJR&W%sAn;ZNfpFdX*pzHx{P2Rc6B3prl3&EFi*N5GX@7B4tqyH)sUV zs%R(=%s>v)b-}GS&kB2x3!QqynP_gz^pX?5+~m4Cc2VRumBk!(P#N$5vP6jDxF1GE zGYwMvDy!FG7v`ID8q!RR#j$UeC3`CZD3~=>C~`AcDD(W0$iwd7ify)Lvk0P;!tngO zcH>ffPLAt64Tm#2#hY3W=6J8BN{zs5Z}te&7yn1Qb>y5* z=as^a1x#3)9S6sU>CPCTr;bv;43!`{P4D&^k+wxgZjVKE*A`$L@q~abZXfDO6>P&X z*G#9hS{EZR5K4($`bL;~7ihGX2?l|qSG;pNodF9S4V4WX5(;hgMW`$kQf7;*Jquhu z4O-tdn*5Rtni4cM+C6AXTRK{$i_SVv+&%3F;OMNeEc<{2+QDupn$k8MC5Th$Hjk+&!gwpDUs!lGD z5W39Lth5f169T_xcU`350$C7djR4}MP&5K5{cv#c&+l?Uz`zlqrJ1bw)fkF?eXuM! zj?BtvAV*OQfmr|tc%pN6d*uj?+T5POG?Q1CA3d=t%&|!IB>O~SvOri!ZZbizY9}0DZ&V_7 zwt+})u)b>| zOIC} z#8rR-HIAKqs?Bzghjieia>{80)i>oe3$2xLT%0N8=)Fs?6`F)dPZAgqs(UqpUiB|M zYNX|@q#FA6-y(oI_?$f+LDnS#Tb$wmE@1))T7gK|U`E>2BDLc+cuFS7JEDkTpujlz z!W{`}4OnXB=+2nYHAL(JrkPJ>pbr|FLxgmyrf^h9N%9&fnst*BzbO6Vi^)j>DI=-3 z-iMUIiHL~1=g@S6KWV&c#Okz>s_S0Fl^yv>6+# z1~RU*a225&omrPW18BMFPWAaFECB$eWKHo=m(Px7hpi1jykTKNlmJFx)KB#VICH}l z$fGa`-53AwY?qzi+hX9XSXTw5y5^c5 z>=e^#%M}Na>!)~a+9t}uM-?i9bDr$Jsz)0 z*;NZ1b#L`6R5mZ`OyYg~WYdZj$F##J@UDau34pQ{Yba;$vizNzbOfKseGk9dy zY=D|OZ)=>?w4$rnfTz=vCN8?deDTUY39k!;6h?5};R3=&W;hqc38HLsW8(A-KqS|a z!9{!ZyTD^{1~k>?hK=u=n&2)v*KgFd@c^}8iUp)(>W_)#S%1J-2*bPl#+ZB;CE#BC zCvfmK23X;OLthA-6_$LgOAY2^X4WOQ)XbI5xISA9EOC;}C!vdPZB&%Xh$0l?hZX9H zFik{Eys4D1p|Bo-c#FuQ6Y{a3otkxv`cMWKMgag&(VsCp0z2sRzF94VXGh?R|E)Tp ztFQJ$%G`hm!PJl;d=du|^e#;D^xgKLf3ZOD$3C4U#C`eG`pwS33vW&N3_z6QNZ-f^ zq|6O;z;kx>klb*|hjn(z0-ax=o57%iLMaO#L|S6uK?ajF{ndZCqvooz9MK6;94l=S1VgC9gg>Mj!zf@(dz^;gtrwwK_R_#d;9^D|86g%wTB8eA zxEv)(Apz^J|HH-#uKHhg1CaG0glIm%A5czLDhgmRnF%1CK)NDOf6~y@zQyI~%l|lc zSm1PF0bEFxqu^YmAR6rQ3L#V4*sVl1U zN3@*U4{L%c4#Fqs09ve@Z8yC@6YWY$+7lYMARNJ{u?Vpy069`7-o$4*cZCrNG3|wO zrgyHCE8}(W0&T3m=puaXQhy{NB_nAhd3iHYhCmVBH&n)FH2ZGMAh>!G405cE z#)#8b*@VHeQudf?v-vtztr!=j5se)WF1dLr!D>&`=)o0}Y?Nfq!Ykp-(-g+eX`_JH z7eey!zr>H|&Xsm*0;Tm3P4YQZo&%#;BSK*sN}3VYv>V_t#=aPGqYi%~&g`2f(BK#x zI44;Wm~dji%JXx>QjMEkQ zNaW0!fRWUbCUxPK0BB4vbOwKoPtZw01O^ezw{2#DF)S^VGeF<pb3?P4~NaIDmSPXOoWhHL7hEs$>otROi>P5;1``f;YF&!Y$+5k+0*^<$BO<- z;BMD3m>L$CpjeAh*s7PoM(0ix3IIGD^8*y(k;U-gJdxTI$uPBY9sacesm9s*VX)%g z)r9)mW3u0WxYR(yW;Nj}kOvhUw(oPP&$E)jr@5S~}bC zn-GeASg;sFXI3DTW2PwsCr-bNP$rC8f?=HKWpM&UaRvoMp$Bas5(mN`;VC0feQ@(l z1e-)^(WxbiK_R|z)48)gwL*PWqGzbp9~ITkh#vJ#cX@n><`eLSYO>N!KjMbgaznN! zV0ZIX;>1>jVIv#A=}?nzQtOBv9~j61x4bmET}N}1-=>6O6}$AiYe7KQ3i1th>g85ZhA8~Qjg?vOJefO&>M2r?4lBAgD- zwNRQ;%(EOo;_bmkO->6Kgkj&X!uxYxC~IV>8)kQ4kFGjk&I-jJ-F&y1Qbl>n`0%|aJ;XjMj`9o)`y zGvsu279M$On9-ZM9ZO#w$($I&%t^49{B^yT;X^v%;sDFU0`Krp>^3lSJo+Y3yl~>I zk#Oq{iMA=KLZ?|2(U-)X`A#*0StN<^u4U#XY{l6;4-{!L^Z-?PRz{>DX)znQ6y zzgfK)f0Lw)zk%xb+y2O>ubws*>1=!LsrRn*?GPFD`+Zrcn-Fj13CNy<{5Y>q&NB6{ zylc&~ot5rQ$MdA+kMrr{+#=~kwfDx2iwA9{A6?CJZLg%pom{({pWAt78ksGgUHpXW z4^!{3_B4L~Dc28gZ#r@M3GI9RN$n-WhmS9fJ{y@GMt=k3;q80)*p_{Q}50)2{+sMR~K*Enm6 zz;D_f<%K16yao;>U;NJLAzyUxsysRmSidd(>S7IA`DOCc&*JH1$P=5IO>r)qxFFtn zPTd!`ZKm7|8WU~NIa24(ehcmlTbkaCmB6?tZrgP|nUTw85w13Oi|O{>4V;+1#s6z38^fM&^5dj zCp0@x`G^sA`D*dU3Yi#1r{WS+bRk8$fi(DQT!0&~qBxfiz`{Hkk+;EP({Jko`kJm3 zO`;6ZLmDAdxCmGb`bN=ev6ud*D2#&(11vK5AAJ?Hjkm*X;_=Jdz4O*RLIV4{BlGQp8c*T%ab%Jx`ab6_-fUddif z(VulhUWW=OfK-4PEtF9=OFcl1W7$3~c}0)Y;uE{5LXzahS1=56C^$t~^tO~y)MW#A zCw62Z8lr&x`YxX8u`{IVcKU>*^fzOn>rpffm`q6aVeZ3Jd8#fvF}lu;>D*P)rW0~y zemp$g(+!EE#B%e0u4CewX9wFjQ~)4=S~UPk!y+FcO@Ii@;9XwqPq7b2X&BkyruSS&!MOdVuT9LlYOsN($fQi@g zUn^dt>jsUX#8Rtkxo-!71EaiCQH+~B2m|Q35he@Vqy%Bgn-fAFVwEs@#)o;slUxI~ ztPE=O1TW+XjoRo@c!zn8qVW!4NeR9x2|(UuPl_iW(o|~IjLiLI#fAk!aX=g1g}H=; z+L3sUJ_=?V4Ig!85Y_~oOCo3-SLIzU;cDcStkv)=x(N!{bg2Z60f`D{*9Orc;iyf( zmkMA2=*<*F8*zY`4NU=@Mg45E8)Q)%((9iYkS&W$r-(?mypr(28_eOW1CdI(AXuFM z9J{MLwBe&zqoJ#s0+&oVcM@oRgm)&PR#nCqX^A+Vi4N+kNKJjx#%NK-M0}!HzS9_l zVgyPznc@S?VDw%6fCvNN#=B_4>FfKS9FI;Ee97WS8fWAUD|p}<$WJ1p4hxdwk&zJ8 zbeci|g6p94E->SiGvdIsBoCTn9QuP%(^@E4fPq0XTir-w8>#0kszb|y8bPaE^B`m! zih>9JZceT8!(B2l8piV5H5&H4+{n0s(BJoofv$B zfwlw%BD^io$lE$AYU)WmfTVQ#;y;LhU9^A|4!Y9>I;dqJxOuI5kUo37P6;Jwtb`~e zfm}IP%*Kk(=J3J=594<=sMex62m%Okhc_5T>zp&wg5(5 zq7la%q#NCedOnwLSH|CyZ0j?*|Il5QlEPW*n8T?7K_b`HRclSj2O~`#*hC2<2eF0+ zZemqSz#f%xQzE&Rb%T`5YtKw|MozA?G%+}RIrd8#Kpj7HFfb99{qx-Trjo**8+lfu{3~-WTFn_KGm31g02#=<`_Nr$|JF$XpofsAUS8p!^ zjIa(4WJ)ITEqM1$?1Ee-hC?z0QxchV+jR+2m)$iM^Gss6EJm(EmYpxa5Y069)(Y!u z=zs(0RF~dZpk3Di#s(9fvPmRh>C_-Pm7_9!1hN7Ks*X7s%(D~V0}7>`O?8Q6PCN<; z7AIT55*G{}O`@b{&HUJnScINA2V^YVEP=Y(7Y;8?KF$n zK~zmVF%d2WpqU+oXr)&?@tHh`pvoLbh1oQ@%rmAirIKd!huBUmRqFH=lCdm0SP*B& z+zbcRg+kW|kS#X1ff0<<9b;50ljIU3%n^#XL_BPt>a-%zIxG6_Y7=V}IH?*l4fEp( zZhu`C4&q9ua7_RaDf~6(;7_aLt|Gt~O<+*2OY3vQCtji=Oo23D{^CDLB5+Itz*~O` zY~<|<-$DYl95&L$Ur}8Rp^tx}GjnW;W;L@n0>y#UBD3WB5k0`hn^D7^b%21+DT`1-;Nor6I zG$JD#1mk9Bo!0^_p|X1AAVwG*GBB4(N%%-(`lzz1jRr`t0k*3qb389Ox+5!H)+H3V z4XTW@Zl^Pe#w7Vi{Umh5IvpY#R4_(!m8UD56Ia9b;GKr(4xH$g^y_kaluNZ)XzZoLKUm0qrpLR}{- zKO7bg%bj+xUNeC8zq&*EYg@DJoLIBiNm9VdZP1v%#f)4D=gm%Ym3mxIUEm(6>J6SS;m*xg^HJS<&}28-pYZNLVkc zLa?Myd}2dD15zGbgfa)1iKOok$TU(5Q7D4z+kd0(D1EYW+ z!ASGUrZfT2j97s+#GssbSbei-v{R4dvhI!naFrDYU(WFAwLzRJTxA+s)qv;FL=FvK zb4n*coY5An0qAh$T5S|Qbh?lz*IiQMKD)P>Le207y9+rzI6vL$0 zrj#gfRKA1*{)}?Uc>9;85#B$!2;h`}sQ{9sIHC%c z2C=G-dAdZ+QffFQ5aGqtNoo`k2wQYgO9gUpW4|!b`H%dF{qpfNz#M6-b9J8>Urk0F z0&78-PME9Ov`PNFR%iZ3&=)r#M);3d3_ym@?SXkSRp>(>H(|a-!%$KG&wLm@11AE0 z5&ey#T69^t86bS2CnET7jbxS%?2LyeArziKV#SMe`Jjtn)Y9MyTTHU(X^vFSI{m|9 zb(GuUqs4&gljOlu9HE^qhjmG+o&wZpRJR6Jo1;bwofZkKwkcH8Dx+|!Tx_QozJnx- z)?Nky8zvOs3LQQpyjhAdX_yf;IH0BV_y;0E8>+N{7hweTv#Dt>>uENNXPH#}2!kQ6 zF7`ls6GZsJF-MF}ZFx$l({H&K(wgnUA<4?6{jeG?c{bfSf8n~DmeK%xqMei~S#2P; z+R?g`J~YxB*|^>yfJR0R7L^2Ag+g&yHlP)o1tnhhzk7d}{E9#1&HT_WE!1<7C*zVe z@seGS6NYJ`YuB*DLW%%*(F@!&(avUR0cN3@COLS9EGg(@L>p+LNuF72<5rL60&EeI z;G#~S{_CH4RQ{6(HL`YE>)*&|FOJpf6td}v(UPCl85l%037r5f{ve&{iCYY(Mh(^` z-^doDnsZ4$k=HneVBl*i$;g^?G`(cpO%sG2Yaoqc`jAU?X_QbHumIBa7ADoz3NE1e z5KyC?3WPM`AtcTOWoYG?xFhYA&T}>@;i}TrBz;On5`o?@#cm9-G-)dRU(@t-$pNVxM_Vzd- z`yeM|Z{*wcd~;g%U*!LtoPvFrzs|%SpZ;0+`DK3aeSZ4cw7s`$Iqi9OdWPQK{yJ&< zW!_i4t-oibF8%#>8D5r|Ok}YRV-~1roKN^zzY)I{HuKb%^yS60B zm!e@Wu6dLe-jMTndMW*Q(TiGlQ~G$w|GB^0t+zMR|AYLX=Xy>*f1DG{_lMRV9@g^* zyY>8jdU0a<^59m#@8#PkhxPiWuhQ#-^nQpO-hMT_LFKA6Zwy&|oNEUteQA0>l6V*? z+=)c*Zt3xt({sPymCh&k#73U`>3Ux?E_(L-QRHBIDc;Mc%R`c`--+I@ z=L)~O^~#GIb-(e}^uhFp{2cW6{?I=Jkkr45huA3j?(xXw&75ohL;haO|MyY!%}b-~ z{ps(f>D$ZHJBUzgcjxE5Ug^##p^b<6j=E9j zx#=hKNN*3+UmrSzvm*B<4xaye^!;R};R!W=G}n1Gv_QjpPybv`-+d#NcV^{U=zacY zu6^%=NP~}FZkek;erMm7++~2PwHiPCW5#@t|68wq_thcYwKm^hou9 zW1Kx2{LZC}=iB{U*H9 zr}SN)a4r4Q{<5F0?xu^&(mo!K1U2~PM<8}Dd62r0Sf6k$xSe%2B>u*-6qchf>TZN4 zxeR*X@nLA0seF)8h-jDDVYwsM`}8? zKF;wWo5$&C)+-I6Q)Gq6>D-0T^)T9#1isVanO(m_OtER-wEyYFmhm2Pv5P# zU6tMR?Mi@5*z@$g18u@Rl=S|yh zp-~^A?R&lU*6`KMJ%>$v`;F8%xa&>5`{9dkrllFlq8(i>dr&qv{h+v@k7kkn8ee{5 z@nY+hpI(T)v0M^7@X!~B7b2(8_jfOcS|i>c{lR5M9QtVXI(zoF)7RUJng_j2KiaOj z-wn;Br*Grwz~fIp!1c$u`f2{Yo>B2qc}zcTRR46)+`QyZ`3#YJLo2fP>HB7&TRA?r zD(B<-T4J?VhYi=$Eo&`k`Pr<^C)Z0X`-vzxV{Lnn)3$T^6L+$`4#pMU#tFxTZ>VJAWTDl!CNB;VHT6Wq9K&o@>78OLy+u`D~G143* zo<>39@Xy}}Kk^eV-=+(4ueWP2OP2VJS$@;6`J_9UnaESk)b7Ru%x!0l*SpL<4ZY2W zo_nF6r#D2FYXH(>Nd|2T@F33Ao3)AyMmiZl|{9rX>d}~o>_`_e% zv#?U2hl81~`Ky?9JbdvOck=(^as8#C;pdLfT5ht|`sd5}0xvt$V5H;I>;nek&%G5& z?o7XkAC^1Zh<+aC=YBHA$0^rR?sFg?ecYU$dvoS*dFFPIC$85wmpZ)v>5VtTgK?UR zZ0qwNBY9#^Z$Fv$+3L#0(=C09@2Y>;wZ+0G{G3!-Tcb5O>fu3VqT<8-l>05_PcI!- zw=rbD-jC*bmm{ayyDWLMGxPQJF=w65-uC+P=-)#Z|H&q0D)mpY=d2Vz`wtx4@l3!!i1AzOXu>W1<~9xzZ$SWL zmg_zmu;yyo^9KoiZ=}ZExY;>Xnaz8<+ni3VrX=fb>%9f7%Z_RK*6ehLTmH`RI5Huo z(*kABz3|rbtCUQ?c_TC*gqY)@uOaqP_-ry;!Cwx&bJA|naWQ56w&ZAU1bVzqKfIUE zb4%gRgAjxaPILMdw<=^^$^X?+FNYeFo0Z;v^R)WQqtV6Mc)wofPWpJTm|D&bo8C;{ z{3tyx9tH6keV1~9zSA(;mRxqZb$RidTjtQT;7E>7e+;CL2S2X{MMCxF^kOx8HX6X8OwlT_PYakzj<^?oFSFcBWU%r*_*?lNzE-{m6D!|? z;g#=^*UE^_yRDaG%(Xh3tupRPopIE6tt7OplnivPlsG2wWE}82kkFZf6r{+<66l&1nd~mCS$fmr+k0 zwN)f{Ecav|dprN%&z{KJNtvhTFJ}E`I+k6==cUin_b-nfO1o%($dwP0STFXEj^$v= z^A1N%FMQDW_AM>mOZ`h)e*1E2zn3-_(k6Ak^V`(=V?MogQ1;>*`D{~BX6 zyP_9H`P->6y<|Szb&{?_H>KT6o#l0y>BooFn-lEm$I|m#i@kttsU)5<;&F7{4e^!->AutStxh|X+>dtNN#u5h;QHu!Y25G4nVAun%D=nJgAw&K{rJ_;Xe6n> zm4b_lyzXXdpnLk!`?+G0WuK{2gyog!>DaZP=57#y+v)jh>1jHatm1j{n!exF0xQM0 zbLC(SY5G>RdOba>XL@Fh0aq)UeSR-oPRBy)3y+3Gtja^doz%37Fn#A{%4IBf4$5A{ zQKfC<2f>$>>3L0Tp3)tTuQe(T#n(O+qsEM{S#!pjcgv@664`v`UZ}Yq4wms{@-^dY zZRGFGBUoFyn*L^d$LaS{wI!ol4o6UZLl^%RCsd z__CV4j4!#S_<4XY-&XOpf|FnP)>*~si4YoIKS?wF`0Bt<*NKhWUGT1!lHGLdUuO@@ zd_~OeTH(RE(!t8+`dD&jlk?|()4x_<*-O`3yCOTU;-l+}y3` ze&%#6KKj_r{QqR^0&Mp3PINdgrF5xcaC$7>bIab*?-C37B>I5BdGE+-{>RbkX!{Mw zqK)Z$_ksbE<+E$=BLc+U>?^@abA(TEyQMTa(3a9lVQi(Re7kV*m9hKhALS z#y7&T-p$X?MmyJ1PDfYseJ@m-+m1QvBj;J1=9O#CXMP>U@7*wNIHFgz9b0ztR<`P_ zYOkrslHI(bmeagWD>skr*Swx-+h)!Jfw!P~^1J^>^ z%aITIoXk9z&*$^^YCe$)+4tzTGf!7jn>6hHo^26$#x)2~J*4>5cT`wg%s;ji4~k4MmR=&~B%26Ijo7tB1$l#N%$1 zKBi&5Ez5|`Y&)P%4n2#UIm8iVPi~_BiBL#J@KY($dT${m0sr@gM5ZgGMVfn|aBs9m z-L-tXn$k0o1Uy^|g=)a*>GXa&<*bAxucg#E>?`>}ebKm=GN;2UdwOwIgria3v4{36 zAyTJ3=yuxtS}37ywgAV*$B`_or_pJ{=w@VBhU{@|R%R>`wdzGr^n)5ULpDy8>sv`} ziB4IX9?E&UifGL`bA9$+73S%N1jJAv-~+^06UMR-naj4HW#Jvv zk7IreP|W6R6nAQfj$u~uTneEvNXsOZ4%t-Az(fIiX~zNj4T@TUMejP*m-;o4llcVJ z)4v5=E|=pck5jqANH}jGMv)(jvLM%8$NvFYH)ltKfVJg#}6)k zZUoSro-2S)BOHWL7!C^kCmFo<=0b3*Lu!4xgBHOm>Ee+Ay{s!TZ}`K9aVkHi4`Zl- z(T;a*@Jo86Mu*H>4@|Ih)#z|7;E|cTrI-nW>3w;eE@?4)5+osJ%sq9yYw4F;VDy|_ z9UfiNV|9owGOdZhG&`XE277dJX{G&YMj}bBfql^Yl~7UL>-R>!q27O#2rCW7=RzCq znljK~9anE8q7}DmH7KDUmWmyvwKwkW`lw~vUQApM4e)k!9WL8d?`Nx1q&27$E=WP* zfgXA#2bkk2{FV@TS*TBy8BKDWI2CHyp0Fm+pc!v$5@KkzHCdQ%+`kaTURe?=g;0r- zKp-f<3CoBhjvexBTr@p40I*rep*7g_A0}8FjMS1`(@*V!KjbY)6W2u^JePVc(IM173tqJPffaj55FY_r0Y}6X+LPXq}{mZt;L#d=dxn4iS|s3>W>4 zPRPeK)R0O;8~@k%Ll(W$ksg)74b9Ukr#8t_jL(A`FkA47hlqT z#U^+|9u$iNP|4E$g(04+x-XtPfnpVnPK{u^HXd1rG|VSzWOaI)lcahHX~4fL@EKNv z7Uv^t1#3AOfSI|?c;F;;EH|d4h8ZFTUrcB_XGQ9%Bd?+o$}OwdXgHiRDE zrZ<4HZ=#4(2jSO8t@$3&wr~%Tc3SAwt>6Ww`&T(UH?OQVVeM>s^cQk?$)X#~QG0k3 z`Y1eHKKaMpt&$+))WNu+zIU{ey0JZKBKv%itIxgJzmI=#OE>Aw<$Xv2^!Q|UN^kz^ zTWwUjnf~>Z(!E}b#NIpmYNX=!d%U_?pX7|8HeHu5C~_yVo{YxHYlj<}oVC@I1gc3) zkG(^=h`<+FR>O2)JlMUIUdY#dz^|rGk%4;j?kZbcqtssBH23_eDvKqcG z<_hGvBb)!fFn+rO8M0|z+R>-!@F(tt?lVkygIW?EW?Fd@V>RU@1MT%qW*)Er?e5z~ zmHV^Fp%0PjXQ)Dn2Oy9w8GAHCAMxOx_3E}Z&XVAXmis6LR@~$Sy|rQ7mX2N>m3wQ|rPz`Ny zP@9c)g!bYZ!Y__?wHDHYO1xDMwM_c*d;nwC3&Tcbt>-@aqDb)83+<2cqdo1To|h#r za-@H@UjIgB&}^*&9pp@#D287MU|}MW`|6<$as_2pD&~8iG>3Nd%iwO|nHBJV0lW zMWZ4L>vu(46Mqs=hos1{{()5orFo65?_vVUu{YMVi^nHR{n9Gkw||m3ie@Fz{jUc$ zz`AR-qB#0+>k40DC5nc4G+JiYsP)%R9}`4-emoq79Qa|DT-ni9`6N^0(VghwO7?lK z7_oftNg^fOqmP9`TT|a!Bq^h{{;2+iUtpC*tJ-u`Z<-urtaY(5_D*YU%UXTY2ft6Q z37bQ^5nvT{jh|j>0^7U)@N+2UV{pJm$V!jpS!9G^@}vv?q1vDa zR>J;yI_>(SPvy$QPI{`wNW71E^4GWdf4x&Y-Idx_QOoC$MSZ;S_?TKKE2S&G$if2@ zv31!hi)$t%V)3^m#CoIcvEI%~SfYnWktMrgmoUQ~j8dP9Pk2ICtsVbRjBg&;Rk~$| zsFlwdg&g{vl14oGl8vxFK7@pMTk)U2!x0OUMRqlw^kGm*$44tk>oKEzT*UD~^rsbR z@OF)ctxcMIJ1p13Rmbp#TU?W1b7nFt>gJ5cXo>V04OZ2Z1BpL8jK4kl(C{tkr`$7K~s0;IDS(lh3kJKFl(Xet105iVo?N zUTBEcU`jc3(!u}7-o5;IT4s4-e?p}a!U!RRPzfPK(gsh4WAn%&b2y#eLv{iRf`u zPC^Vk+M>xw8jeV;fp%JqFB^%%mGl_x8Jj6SGIrF22Uv%p$T^D<9t;;41szd*{LN7{ z*Hp(D5uD>qE%WMP5%Cl{=RhWXpcrXailnt~LLnyVU$+i@Lx<2qbZg#42PbYsJ^CNb>3aN2OBhW!!^r5s zKyCCn^~mVx8D;gLeQgEq(y>DVTlr`a{1#6O7U*r1vRV)HJO?e~W^!b7xS98*yjE#< z91uR!JN^Ns657FuzLmH3jVHJJV!=6K_)_b?>nX@_5_gI%>cF={~QSDh9mrsWWXRDs!4WCckqwHf*H1#BpCqR z3u`PfV1o$~p_|l(b3MRtPU`X>{cw~rMUxxk4~b5f-7W&Q^R6xsS`>Xm>7J(3{4eV2V&78Jg_``V8x7?>_(z!GTg^g z_ddvm5u6>%817Ocb?6ZTppD?3r=Gu10n0Q_yYbiI7mtjQTGS*w1f7|CQu#1tqU0GQ zMAuD%3ThKM^x!$nbs?a%;}RLNx0MzT3zHohf=!G+f$>BGkgPCV(45f<_@!%4xQTtF zonVXPszcHuy;z+6pf3?yN#9v*?c-h|1OL%XgkvAPIEo}99l;-GDn=U^Bu%&gcQ}Ts zWE>bV7{-yhj092G%HX^h9kjr=ae88sIzZYqJWQe80&rnW zJTdR72`mppHUy6$7XC^sLd@x7yvM6SU}e!Jbx;Z*fdC$-T6^pSf10(KGoJ;-DK=?gO2ETC@ z=oi{U4YUFFzXh^R-~#qw-k2}|B4G|s5uM)`tTFq+zw&q=DDeah6(fibU@lfC|M6+M z4^6R?VPHOt!)h@?m=IeqsUVB0!1FjBjkUKAzHw3H5xazDno%4eG=MHV3tNT68lmFR zK*Ml}`Orwc1aeV_VHc?BE@2#0Y?bsv+!d@xTB2jL18uZDDWH_WLD(z!hJ9eidckt^ zgO2fJ{P(ykiQNFh`A|o<@Rb;pS`95U4yy*k<076|EPjS))Tihgyd0SV8tT$um=QF} z=poWW$wsQ6vHa~D{}3osIG!A|gvpiz+O#$!hVW#by^057w&#GJGcbZQr^ zsfBJ$8Ff9y^~Ri7lvEmw_CV8PPL_jB$e_t3sKg26RB1AZVl^~_!RcWQpB1L#F-97K zH{zTWB{ip8T_pTfgDzopb!w1W=)<5SVAGp;JX+%*z_8w9C8CDoJw*=rH2MQ4X6IWg z8+ru~>8(*&$ct5D$?nx(_d~T4<6P1`HTk)(5JGA3y=cEK(`zXYDYsFek@q z-1?*;>r%d|-(lCnq0Uvbn_=@@#UDCl_^zCjYcE&3dTrPrXV=SkE{{D&Ckk3(We=E= zc9|&E&tI@7!tNzI%Iur4zv#W%m6&~4PCOp=;~DaIpS;Q36R-~mEHUH@B||#YTr&j*du$1vUk-k8>VI4XUage zJF>?n|0@$Pe6JaV?-OHxE9Y2$i+}2G2}%8}8S3wok?hf3YgZrH0e$N-)z`_s^M_In zJkG7`&~o~Q6Mu$1xNH3tjCXimZ9TBuxrBp<6aF4JF<@xiF^4w>{uxfO%)uo&XUNl( zey?_hq06a#Tz4#^u-!#p7Phss^EP@|nUj+*?bh4e>DBl3WG`Phd~;`2e=_a}8lW8H zce*EwetEUvnC}JKQv0lNJ2?b5h7a*39=H7Q(`pCw-Z*J#=<#j)k`At8-<*;ES+$XU zPbUW1{&3jY)^R`G^_P8k#`a#@Id`G-E^!#%rJ@9XN* z=$HHJmXvMJ(&8{jlZ^ZD9DEa*wJ$Gn_*9j8r}oOi$o~GVGi!YZi{tLNY0K@E!{N~m z)(@*+`^Lf>(^jT9+IjPEEyAh&htVwW+{7{N-P-ok7Y3Tc#qwM`lqO4ajvMSlohmln zk=Ql%`NG<7%3fWaylrO=E_jlyjwNZh6i>v<>-X>8-Wg4P(Ci>w}L!Doi zNQ<3*T%T?4bWFmTIvXonJ!7!Sh4@AfIRJRvTKir0D@8c%nMparc{#ty8c}Vwr$;0@ z!}pR47v;JByfasKF&HOq6NA&+%(p3Xwx^f%$I=~wejHF*8HDnCbp+@m%+x1?g0%^C zrR`G~WZl__>71(X_BJa1PL0Bwmr7j_0;_AMXS9X4;?z-+!Tj8ab>WE0jvL0w%T)~R z^c1V3WBGjb^kwzAp?E%uFiyok_?>fqgmD}1Z|8KOfbGr2V?RAu{p+vu7uevJSmDZ)?9L*08c{sYAgzX6B>LVlH~f&@Ogm zJ9R}VG6zlA^pD>e*%&(KvW+!RmK#uqN8Ay!-|iBt|Gds^t336c4kUTar#kBMYW@7Y zKA*1xKE7pNr}XPIJ0k*DKOCE^xe5U$xP0Wb-90VQZv5+)h639~cxu1nK6cs_H5JbGB|3{)Jp zbmGH~B24pjK{sVK%-e~&j^g&cKPy%BO|hS!EA?Y{>Cfut)B155!++KOcsOt7N}V9{ zM45^omksx~-Epx>U#tK7-yc4xmGT|ygoA47-jj6;fO;qE90@-=rw*#OQTkz?4W&t? zzE;?Z&nDU=o~_Q^TjCcr`pJF4#>J|;87~j`d|(?M+T+{aY{2*f_{k_|82kQ!x4Xu- z?fjaNFoHwJKR=*GoYImb8lw=4Iu)CXFTN^F@krVpmGl0Fhm*d#rifldBCX_b&C9B)NWp<-~lO-4TUn$J={}uV)=aAHw3p<|60u(KOg?7^jlme&HnOP?y zG6K~0uZvpULFqKa5pkDxt1O=QvZN0uI0?Uu&fP!TZ*BPY$jc>F&zEX&fNHKD=CJ!0A)Yl)A89=DtpMWt?19M&q72_1nWE{nt2W=dSVn&V%D;XI|l@ z&S5+E$%*^s?t(|_Z)vo@-h?jjM(~F4eeVUSsEycW8GfO3kzO zrcqLSPtye{*JbXC9EA~yPLm0aq-YUTCL{p+$c20YQMk?T|Yl8pv15gLe! zX`?U8wcPp0p~P$`YLm`)t6UD%JzP)b%Jxb}W}U+UJr%FNTR3no>TinkdE1r?newI9$n&Q1(Gw$EV*v! z*iW@ldwsn|&wcg01L$Og)?a-7%Y?G+~)`0UXXA1j;(SMq+&LfqG#rvqWE z$ut^*d0K4Y`_*v)n@J1SeI946`ATcHqj>536aqKO!J&ieVX5P>Cw?~DtrlkIfAjJ` zu9}hAXhbJLjxz!vjlS`>>X$!DJ0|wb+y)Q4!$rf>EOVJ#gJh>pXf4d{TLwo$yA=Wxw&#WOiT~dCzKJ8T-FBf--^uv?wj+~#^9!MP4PZvxiM#Hrq zyjsaE3pmV=pJ}fTocDR1Wttk{OV%j2^L5!knQk>Zji-3revZ+a^4Nt-q&Z&h3|?wO1?pdA+r_c1s&wAGGIq3sIjFxK#YU>34Te zhey|EyyJ~U+mi}!Bw^dHGAD1eMwjIER5N%po-4X;iL_)6e16-(^|o_)N*fx573*4R zTP-}%XLiUA54a$G=AgE6e+=(_weI<8-Dq09i|;!$YZkUcSgQvf-jvX>&ElOS>2tl# zy~S$b?ATuN6y0yy=7&|Cleez(9$o)6$YU#-@C3kt`k4iG{;Zno5PSzcmsXJ*Yj?bm|8)+w6T2@|UN=w7E4!o}xv3r>@64Vh@3wRA#loL+)UEkrwUTWsNETT( zD=_EJ_A_^Nx3d*^16A%1brQ2)seF^wdTr51W$Wr5-ragT?YW+Az46J~Gz*Jk+1d26 zFNZA67pR=!AxmdkwOv`-k5k1BJ!g(D4$`%A8}dlodE$J@(>(Ust@bwU&FRvi)1ISm ztcpn{NzcEm(OB2FS1rb_?9{E9TUxs_R;Akg>9k!Ex*Sp0b{o)Fu6OjZ*J`GZ8fUFO zS^B}@2fB3{J9Qtu?M>Tur=Q#G!b>M^N;GUc5ucvwwk|QG+&L~cA)ilAR#s`P&5=is z(r&Wj;EGo<)u!beyvz5W=A1WmPS5tm2imKaSWP`IM(IYqwV50`ZuJ;;$$JGMG)%W};;#C1PnQhH{c*V<(ltJNo_{cme^zier4emMWo zD$!Q6f3c+27qPNSKRG&i-(Ro!gY0K+_gY;nU+#{2_c^q4hihrK`Vk-NRixTBvQ(RN z7ImDY7t?b~D>}#EF)kRrK$cW2^;}QI$CHlvA zeT=z;j=Q0?ec9U9+LiW7%}?--l2w2aeSvIin>YSxgsV5&m*trP1D1gv)Nl_hxLT57 z9YrBX&@*>|w}SGljwUbP-aWy4Ri2=PGaKbt9RkRG?kR;d#H-`g{?B zGR$SQNzS;|8Idp5-voD(8r@B8H~z<$2CkU<9b^3Hg#JwmpR6uQfxzNPSMUR-13rnmlI??`g7K)d; zb85HVta%@+QO!f$hgf}kb}1}IISR{Y@xHt%7VWB$pqea4hddE|>}=pC;IRx!O(T}f zA`she%4)VxLzm2&pQ=oQPiwyWbarQYGr0`?8jmF+oGYiD8~^C=-K{kMuq>gB-bsoL z8ku!QCgPekNZY2ccRv1IKq2)$b!g(k?|l7j`x+Gr>e8M)ggM`vQ<8R){@uTP9+59+*3br>bTq;&*QR`)m8r{Os7F0c7sb7Rn>i^%1AOGC7H zW`vF*8|5)|gfnw<)J|)2nVE=D9!WHkxt*6C5^{}s_=w9mD`Y(DD>eoghutU37B=Uw zJ9~_M54G=3D4EE`LhUG-_Qp{eP!Pz}^nSLo;rDT2d-GQ9k1kPXZdkx)>orFKYd8L< zK8(G6KL9YB>_{`kl=d!?h8msnHHlN>-GPlEInMJZ#rQ&{fTsjepdk@PKYh9PK6>w8 z8-xoQ!{#A5OBtVM=lZrcYwfISOJfX@5{jHGotV}I(^GFOp25z^-si|Noi+RP(7-|u z#*+kV0!HH&?^mMkUhjlkUl#_x^yKaYm~?1e=6UYr#rtV6(uFTN&N4niG6Xl5Uak7r zjTgee>*t%o|7Z0-fzc;}o$^f}GhH^~{mp6SkE4{}#5kwZx$Io8@10CcU7!*ZJ@sKFK>l_F}Mi&M$#Kf2EZ&EFjsNuMu!DuF2=#FfqZjt-!UQ&?CZu~ z|89mqM^fj7L!;na)F_!;a-SzlpWr6yzL}0@ZQ$P(F}u;d+4GDe&weY8{8t%#=bPBp zF%vfx>~Q3|qjXfBTm$;%@V;Z7Jg~1D|HJPJ0ZXooJ22(S0|DFpe3-P!x>@NGFChIsLOD;s}6Yb4Pp8es#Ii^&9Rf)6@Yf-m_xi)~%wI=Guy5rJZ zn!7zbe;d{a6Y$d8!)Zx2fpfX>{;zgi1msqZ9NuHL*7wZ#_M-}|_kOCx(hV(7R~W5>4f>;`$r+?wPBVwsG;&yY&sU@|xDZe^9OD+97q!WxM#u**sQny)*Qg>$9BpVx_&) zOZUApuV|e z$TduQ2hWqklZ+M2j`?wp1!&)^PY$JVV#~W#w!PvYAlLv`?x+hL;m0K~?^FxUe1Rv& z)4W~3#+&mhj5Y@fX%A%@rpk4NZx2l(FTmd^FaThH?xCT=Ajxo%!AUt#4Isc`xgZ+x zGfZeS_#Et$d%V)F^KHBfS{&z*GA?;Z5*({()fO$Ka$=6Zm?g}KZJ{{tkpL6u$6^J~ z!&ZoD;5mla^)v6*djx)eDDm!o8{joYOr*qnLp$$R%|4=B>IWZ280Z55|H&yq`hjMM z4=Xr+=Y#qTJ3i-LFIyIzbFx%U5_9~Lvxt0$6m2Q#v?7ve_Sooh=o8j;evxCGoP(sNFr*`ya>SNZ z1vx~^@u*HIf#%ILwFU7<9Z zd6IKmVI4)%j=ns17L*gCB8r66aaNQ7jQYj2M&wX96n0pg|8SAB){F(Ejok@T-ubJh zXa1`Lw??eh@Fj|(2960%aGz7goIw>1!#@tg^OTZtC?G9t+=LS2>mUE-965@?d1PA8 zabfV}d@L~GX95To6wC3Epo9hRz&|*1!rcp1-Y-msyK_dCGuGfiYsQN+!zDNeZ|A^6 z{0eLM05stUG=pathhMylm-I>rkN~F^s*Nkrh?T&9u?6rIT7@UbH9DPb?F(E17PWAT zPn0wjq|Woz3hcp%9&j)T1q-UHgZFC}bnydf6QNF87pt%cbT05bB78bk`CL0G7bjt}cm7YJ|ESUJpx%^;W{VkBh6 zl*ABo=V(4E1EQm1;UmXZA|Vz^o1TLL#1tnLKz(>l6p0nOPB@ls+UNjQ7{Rk98PTPggtaXEdmcacmk6}t$RnQqhHjrc2Jri!;Zy^ zIYN*yg3}nZ9>}9elz_j$>svSv-t^{3JsjXEA1=f@@Sf5{Uq9&P2RwllEsZ_~Cgv7C zsc=r z1V%b!(E{>CPxf;O^fh`kUMzO~>@NSVV?MJ{PA!o%{iH}RFw2)>CNaW@`#iN_hrP#IB3+K(t< z;HdhDcHI?A#PEbeS@lyO;V~rO^0pLJ%=g+8xhfpH*sfO-{=}Etl0@%WR#+}kp zKd``OiC=)Hl&2bv0_|fYP!82W2y3K(@4;A5L@*OS0}i6(_(^c8SMQip*a0O8Ne_Aq zrHur?M-g_fA0Ly+7?#K@xz>-7!zzh{=SYsSV1gT7S(nckZxTvjF)}zXN(}z+6qqSg zP{Sl#qqREWe@dP5F&;EipTWmBG1j;b)ZtwINIBz?1X={Yrje z$#`RQNiBT@gCL`EI(0xuA_S^<1f}C5@K5!YlJrZwX&NUIPRHWQURyIm$;A_qr*}vuLqRRAkP>lo$Yv}R z4q{(WFnU8fECAOpe2UI6#!bXG(5!Z14z=)HoB}YU4|VWpGFT&*!K1gV9{Y+1!hUpC zY*;i#*R3Q34BaB(i?AE2sUKX$s)Po#JH4k5W5%dxle`Cf`lSzHHls}n4bP$_T}m8i zY^-i97@vTULsA?EA0FwQh=@@nD8g~t=hEVeSSam~dRo7W8k*n~I>0DtY8sp1#^<0j zyS>0OEU@vSWayo620r1KUJ8w)+wm~|hYRmuIDD=wTHtwHg$r;`JcZ;p)PZsD;-Qf* z5b0*vrE#R8+aR|%4Z$6*I9jhFI*SyGPEP73jR6I;fctP;j`U}R;seEBF(Pg~4h0`Bjm^bvvGaOF0bGLiBo zAk4x%*rPF$k0I0e7Bu`(yo0W^22A+z1cq2aT7q1A&k|n8dJ2FDgTG>P*1aeeMnokoynrz)Fm z)8~nrgX=Ik9Ko!#k?O71+FtqN>f0RRshew?N5b}X9$B?=Yn1PN^nA4h;;h8TGWzLi z5V-B*Gnd!L+(+p^HuHVk>RU~6qW!SQ^{*Zuh6T|lOnS~2q>LME4BaZa>7w=yS@ymS1HF`S zS|2t)TR3cKamv_Z;F~Uh8T)H@JGba<*#rC5aH>PQ@&CTOkC@*5 zl>uef>aTgIyJcWhgsoHUjv-312SWLrNG!7N@WSke1RQ8E)S>+Kbj3X zn4kx(&@6J*#vX_5So)SZ<>>)t&}&)W_2S1cQ#*ZiR-T-ggEzJ;oKb#q(&&x<`BGKR z8Clcm^uET%(x-He;ja{BETp<#-9`lZTJBL~EPjW+E;b`|M+8H;34DViZrPh|xm91* z3>-I{SRwVY#m~I~lC0YF+G!vA`dA!L!p?-Sp91!%y9 zC^-K=jsoyDod0by&Hr+g0sJkq$6xIT#<*U>SB_qSIIb(lkeeEpi)*BeU?M3ajkt!6QG`U-@b(y^FmXI3&4-#QmM|2)A*Ft3-#eg546Y z!7V0~wMZNs;Yh@bVlordhY=|SvtmK*CxX<1&)^3SD&boA$z*RbxSa#Vp2V3@Ms&n< za7Acv8(1o)Grz1c>_!uKt&^m#6vF-x6?ROz82J;d(~P=EXbhc6tO$;=1VoZ?PiX{5 z))Q7I^|ULr>lI-ErFSd^0W_Sth_AJfE5Uj+Bhn^el7tKb69#=sOJZ_R(4|I&v69wS zlU^Vs7!=c_Pvq5ymY@)aZo(Q!A`&y>_utBcEBA?Ok6WvkVLnZBpspyVKK~%)?u)O_0j?QgLh+s zOXJY1al(XANlHZd^=ZCXC;Z{95h;P`;VD*ya`cAyVtAUL&W_d80=pyCreAy!5jA48 z_BZ3uchoW~q%D*|OD+2x9wtP@EmJH}+UTb)2w^Ff2z`>E1C6IJqCG-KVW3@ zR70#5p23~C4mT&A2!oy{z3eS)L@}Tx|M5h=Q~V zk1EsyMekcwh}nxMVFSd>Pgm>*msD~t{?i0~Lg!Sqovo~sdRBwtKI@Bn`@{#n$k zQt%CSDvak$ru5g14M;!>3zT4dFgVmV1qecZZVZwVsEL!bf_mD<0bpbJl=Pgcq(RW1 z1maZKg)ub5mBEn_qcZ8xHXTF);S5K?VDyRcQMu$gMnbPBjQSZr&ZIhVD|(?DGZ3kQ zC%A}Y8ov>N4Ibi6hNEddoCB|5z>5?+p7oy|0#%F=e30L0DL5g|)H@uIL9|zsF2L>4 zwI~92!2wy=uG#ZOI8+Ob{>iZ+C{!IAf@4E)YzU4G0pIvP1w+7eF%#SbROKjek(1O) zyv9s2vy-lWvS>x0&OEH6KDMs5H?kvM3cFH0k zMlDVSW6EKT6Tmoo!`0yA_Rrww40FC1YYq>`4*VQ1P{fRK02p1y82rpO=dv4HE~gAd z0vj|pVrD+hG@~0=pLylJC7_8*%EbUHlMfco0jzlf9aospq$qjQMQ<6g} zKL>8^Z!&MNAScw_KiM|9KW<=hyvD|@=K3iq%f+$dfXno73b~?kpqyLKW|A9O5K8nssVm6%W@^VpJ_*LIKk!w^pt=E1v6qk8E2T= zuZ%ImX>y9j0vhhH83N&n5?K|D{vag<;Vx}~3e^)Z;2Zo5+DuF0BR!%6JQzuq5pbr# z0BcI2a`2AMnGOmz@lA(;tiYZSg^$U(*CWU{@Clpz$G^cra_%Tj4vi-qCl}d+2O~(Z zBio20$R4gIqwok;7*B@r79qgDI1T{@@*GbG9Zv^QyotMyr-NcHkEesOR^dOk>7e5* z;D7E}z~c~r>v$Xj9ESk^IfeiNAi=ZnPPia!5poK6gcJf2!Jowh2~i|K*?hscnFIlc z;9iK6P)|@HD3vA?zzT$t3ZQERxp>W7kTBjHMgo2Pv!4PkVU-ZevWA4)g1RiT%2F8# z3#|&Sg-Ajofufd;K`1D3Amp(mM8C>{DPd6p?*zDl@dRPUog{z&41DH$jM8^=F2ZC<&(F3pPX!0#~Dum=GlDQ}`&+0zQAW%bx;;a36MzRfr7p398K^ z!4axRouC4WBxxa()Ou!s5~d4)g9j}p86p@D1+oMNPK2Fs=94zy#%z+1(afB2q-P;G z{3h`L0<=y*n&m2?hcOsYxJ(dh)=7_O3VPnO5@{iUyd+M7UkMehs{;>kXCV}t2$qu+ z5q1lHL6GDN-o;hQfEho9Z?g6{i4|iEUci@t+sM#LP;PzjO^P;|DPePPza;tn{cEGOTYB877 z*_HR3>SGRNKiSy6S`fHS);?PM7qhu?-fQiEy|{K!*V?YbzO~e7?X1n!Vm9R22;F}B z+gqU+i)0NKRYsX08|6w-9IvR2!pZu@aYb#^OLBe(W4Qg*aTcrO{6D>kY?_dsrT-58 zsoh-%7obRwrI1q*SB2qcrWp|ili@mE*N)*hAoMc#g${}vXdw_RanF8#>)OG=$>A2< zioa`j*R6^iivTb4SOnrVn{>kJ$6Gr%Ww1dtiZH1F@mrLlCt@y97!N)1TH@9C_P^V$ z9euqc2oL@#M@YCNKu}naARH4K2wnwJh9KHCJ0i8v=fag{LqM0nH5>Qg6-5#mfFN_!MwrhisSbC@ zY`R|I52l2#!ogwzUmzP25jG1z4FgK-jtgHN^yX*~xm z1_T+F=Pty#>U6+r*b7Tw9l{3#V33<27NEf-$pXn2WF&G$Mkw1PO9LtvEQ~^Q`mze+ zG{V~2^9r156{~_DJ$=GFJ@b<+8_2*Ly5N}Pn&d+`J6xUGHEQEHmcjtSj1a)lzYrtk0y=1-9hD?|*i5_FIH^+*bmop|&{ZKbvB0R=%SZy53F#MPBemF3 zEt&}45Z1eB4Qv6`ghGpS1A@@t#7oQYmUfL$OLU<=2y|Fc*(6TYWUMe#^aD&78D@a9hIub-2pVY7s!X(V0v(}@B!{U8OyKB0XaSS=;EwH4 zvuo7At3?PyObh}xOct9On4{4n3d8|(t3!+Ns_)(AJe6ENS58*s;y9^mJj5$pWb|M}PxOGZj)#Z=t_r(?IkO-XC5#XW zo(%4Q!-xn>YLAF}4l_y5Qc64s*b?sJX?;dKBm7__3wRzhR7Y@t*NhZRVTfpf16*1T zMR9f%e=vq;sC3V{p?M##0=DDLfPg|oDJs)n@Zl`Dj7ksHC{Pqh{|s`*;5(&eY>^P$ zjp7{RNF_s!exOz^j&=KjI*PK0@gdhSZIqi4QA9Y(UuE$J9P=ZLgZ!Z?dZB1=i=)&9 z1?s4+L@6DhA~`)2#|w~{O~DKwxKPsZGc;_>UMhp>SdFkR zhQzr3A`Eo~0&r-bs-T>rx|E0*ATZR%$DpY>;Fym5HYQYoZ#hThc2Es~-P^7WNAc;+(kmH4@BYz5h zVQG>-{A|l#hr{E7mQH3CgO{V}cAIy4= zrNK||jEi7nFL1=ii`t2J!YwG^4jh;f2DKfmM>_)yHa)QHeXP5h>Oj3yJ|nNfvr2^-~zC)7Z1 z<^%S%4pQ$!rHH3@XiW|xcBFw)jF)XXIm$<^DDtQo92Z(9G6x4vLNQdrpOiX?nIuvS zez=aO67So0a)yV{7q_a<1H(ggyWc3W%l~2@}>N z#L$AUM9aX!jK~jEU58l{1Rx;=fRST)^##E!E7+oc=|BBp&kzl}#LZ_dFs&90Hx^ir zV2X%nHOc^j2qzVRh}b-V0O-AmWh7umgs2!ZHaC`=(n4;`tTyr!T3VgupgzJ<1SrbO zXu5~PZp4j;Z$Al-qS&yReyLNi7%^4~8)V%8MqnkBAsPgQIwo4`!~zfrN=08FH$srI zfS3Wq@W_=mMsM_kz0$7QncVRd)ZrE-jV2-+13~c7Nv{cjSf}o5d6IA@0?xOBL$o(; zbqTkh{TErt}3ch)(;5R<1nfE~CwFhG3@B{{8n-hm?fkK2& z$}LzYSW3exD#Tpzgkg@<2)(ow%xfEW;WMonEu*Tek-?}D<8M8n1>PVhN+xR)Q@nJjA&m*d0(qkM^T25jRmV05B`NM1NtNN`Sm=k%XlPSpwiV?d7@C(}R+8 z*tQdST^a7UUKyF>h+wf64sx`*A??%Q16(C+xS7BPI#+FQS?{;#xG+Ar!H z`4?&t$N9E%@5Ne};WFPSs>)d2<4j)HkG@?;k)LWiZ;h7)=el1DIV>~D@z2RaI6#`k zd8$s=^@%OaCt~MQ99o}pyfjvPvd#`~_vL`}pAU4&G0yFD&PmqG6ZH!g%SIew?#lTS z?UD9u{l$_PzdeQ%ri*6A`XiOwEAwmP`z`A(jdj}dm-XLL6@55L+I7i}SDqg*{Y5Ru zd4KpV*e@KeMQ5XH#i`P%|9<<6dS*dPwQ_!X0QM9QC#r;l-0^SDMgOF}eN?zeYoWkT zTD#wcv=+cvr1N3@N6~iQt94BN%OyWo2B~3S+nKS=>op38-Wz$pgT5bNzgG)<&KLF1 zww=53`7B;|ddUmM0FMqEcRRhsK>BwP^^c40=jsaT_Jb_>=}UECzxa5k1spH!4aDapA z|IWTPcLu+6*mFL5zw&%-u~^3`JbzYF|54EkkDzFWcDf+0B<#}o=EP8j4%vj7q>(JL z}9O7V6t3-(c!1h<8O?LL||7Lt`2p53umnxL%bUDv8CDJ^ci@AcvbH9r|Nf!5po z?-op77G~ccG&u<;KLi@swg8J!R-*TwntBwQr&A;>oX7fk4iAkl#-=1 zC*@6(;g1UIUsd^!>U-JFJAH=7_TcF%<<5@1 z4MMlajW>5koG2>MUDNT5`nTPsWUNN}(|8-Mfgz==XDG=x^$o>4b==R>z$rIZ0+HZD*7}!7>S)Ki}(2Sy*kTVQM$fwkEz-33Yybf z%it=!ou0NwkB80D0VIEa)b6&?=CR0}{(mK4MSiDXU|Ue-81Hx$KZq?Oo)=qGycH-n88{e0PW z9(Ms+*DibtQ6(>qcY%ItknQ%EsBHP(1`*NpSA}P^Zx2lA$@g%v*--zMJ#~M&-LqG1 zep3CvUHnmz=J!sww(D{#_RIt&ucvG+-{Zpe6Xv@O?f)%+-)$ot9XBIi(!UMBKtClYwZTh-5-?`0ZIA9 z_gpB*FBYV^e6D>q|Ne4~4W7gd@l6GSJf3*+#yPd8b4@&@51D$mN>6?I;?ggc{T*%- z-)OjcecAPl(xGz zXr^mz=MLX0dp-Pre*gdO{{I)+PD%Hq^p&L!+8Z?IXT@vl9{k0MSy_5hIHqaNRk1 zKRY-6&)13(rXeDf3&WvYIJ9;hV*r_au}>9^-+ z-*#u;Uby)!OfqjP(;|ORCSvEAYlAZB=6%h?AQQvV^E}cXLzr{-&&rjN8B$_r?@~Rz z9V4if?t*j%+-H^D!$G$h26Mpnp}gGNh_TspN-15+e_KLy($@Zn!w%nW#GR!UBYtJh zuo1GkvRxOvOT|lOk4GWi$Kjp*O*_{=9Z|I2_<3PxOhv?T24`1-OPos2!DlyuQW$Xx zd}5+<4{Lki(t>C5yj1kw?c-suuwZq-G<+D66L-mJ=3RU6rGh9EfbR}4NsKXNziI8# z_IF3b-0M>;9b_t&J)SB^J3MoP&T#DfWkO)#_?$Ke-9k&Y=V{jNI32O~r!N$qxcnR( zBaDQ6R?u)OP85#4cNy_$4BOk%^LtgkPp5E5xEx;<9e!Q9$hFDip8mLYV@p4;nv$S` zADT$2VCu3}fcG3NmHTy#jH|}|SZgCZyr}=+&#Trridll=^=%kGh^q56K~E0$bmrg! zJU(>_5}bWikmJK(KuFBBZ1-?U-!B}$U;m3s-&o4dritd3dAdyA&0E^k7~P$1=lZ83 z^8Ib66<;m6m3YBb37(Ty?9Y!BmOb8Slk*#JBW&P_F-#gRzW!G5KD7z&9pHVc0x%tx&C=6bC$phDfX5b$(q#ObtAO0l;|J5*5oP)`8FZ|OaS zXWDaXytWns_Igt-UvxdUSGLZ4>k&u%Q~lnKk1cV@yOD~tFs$u%?qB+DZx>A4QV+Dl zs5x(+!}cl&vuNk<70q|+^CpKaOSI>fPmYMWJA~Eezl9b{{S8QO{F_S)lB|g+BPI;t z77O^eGMVe3NU&&DF+?$q4$jz?%v%@uI4@Bb^5}yQEDj7@7rD<(<{-Q$AmrMDytNqh7T-=lnkc=E=9PgHq{nJ5qXLC{C zQF}ch(=Lqg&GVcfIy2yh`L_Z&X_`K3+~;P7`K9}ME2m1`GPSkl@!nt7r`c@Q>9yG* z24RlBo3P#a%OP8NzQXm(Wz1fzlIxh8Lq5$3_j(tL-gs5m$f2oKTf4$NHOJJ$NP%&M zWFBh?zrg-6r=KA@b4p;S?PG0a!TNAKNxlKm`*Ca za&kT=vrTKZJG*Xg?~XFE#Ks3THtP$!MMwf@v<74W?hi8YLl|*q@1uSFi-AL|5t>Ut z#^vu+(@6+PA@b?07NH1ca*QLW4UzNLZf(PbdgIkk_i zc==8nTkPLz_vVvteri+Y`K!aoKd+HLQhhILj~u)1!Bp#eS89&xb~H@tovGSW+zc9~ z_?-SLcla4=Fn&|376fYZlITHVXp%3>a#^)NiuxFK7V8Rn;<;eH$kuh8mNje%H(^sx zO9`g?lGYlN(bdkgFBkUAt=a};tIyc`vW3p6-AY#N4c{*um(<(HJCb>HsbIOo8c%au z@74D1oZ~{hxwfY_dKkp_;pdr4>|0%g1FbnRD2sdi}^G;hiZy6_Olt(7lbYrasQ zub1Yc`;@6wnm?E>X0{FSlX_Qr>c&4>Q-YgaMFnr`@N#wWO*xZG1azWozFDB=N?O?L zcTQ;8E{eO8x;uQ3JUSI^Z&O@11(HIWGYbc0WWFiti}ar!u1$t2vus}v?CE>V6@@v5 zwR%6Gw=;+9t+Q*v_uOG?EXNGms(;_Ieg${;E}yk?2Zeh=qp5-K%TKHI+Gb-x#?OjF zg#Fd_#ig>kJq~M6Y_`+sYS~mcBSO7%|G25+)V_!nBpb$IQzF(A17mA_Hg9x~_h%k2 zu9aEm#jbcZdxyUi`H^JM^cie90(48xr@NVMau)*BU*EA8@j$ud)7AH~o zlRReh#F9f|IGC57h?yESMi3uQrL((u?c+G3-89R8<6GuCiHYgrp17V-(43%A{^K0u zD&b1DHW?9DHGEJsA55!V>h1DW7cEWC!Fr`b-c3V0ub+bxAV!Z1mvd(J2VZIJHKXqa zXTXhGwe*{z#UDxuzQ0=(x?b*Fw}ZR&zAw-- z#%Sp=6w3+%2{sm3p!EE(f+v#a+wOpyv6V`~UAbN7Gb8ugf*KXi1Cu&DLoPxXsf%%J&fJ0l+fNFzw+(BtkCcFWp2NP8-H!l z#tQ@3z~es5RZ%?EOtAN1d{8ChAw$?yH5t(9!53aW?MjJgPyj%umWX%MqUeAy9?bj! z9J5XKNIZRzcx`hZD8h?_D7B4s{?m*>NB=So8TLee3li-2{dC;AQQ>urZ^o+_B{|4; z`EudWB;2yz^%bd~Yk~EF8YA zwer2K%<3M#t+n#)v2{G2FDk!KZljE9ord!Gb}Vfxxru}Il4~PeFS!Q)qGT--8PEF2 zY``J#^T@4gwMDy@GatR(&06zzlbJngyKA-DhIG78GJd}DT>0Po=(KOEQm|j==DR6H z=kMk;oWGk>ZT@bQ^qe>}!1&~Ue*Z6QO-)_F2!n*l>4)5msIn0yykM}(h{hXi< z;rw~+`#U{ZH>$pR{vQ(9A=bh6yW6>+VbK91yN|_))=mww4I~ad{w;4$tpwKl1-7o4>PeMp-ipxTS9*e{~lvW9r;uZa{ z+A&M|c-uK|ZhRUwjnJfx|FYgEZ92z$TB=2+-}|(+>tk};{Oz>8&A7%ml7?OOrHADT zm(9LGU#W@DZnw`Y!XHyA@VnOY95d~wc67c|I3_Jw)GwADal0H%PPBTmF!U$&`{(uh zoBI8AC6z?WxQQg^q>ilmNh)U^j|@CqCotKl0&imO4!f9Y9-nN^B_<6vpNEp_loV@s zMu+{ZqPqU6(u>3A{qy3!S1GEG57+x{jVb#WKP%4}mh^o@h%Q{J(M`u><5-VTmpVJS ziSc^FoASE5Y(>O$H1bnScNOdquf+ z?+f*JR<54EGCW_Dzw?WdH+X2i}*O=c9t1CCJ9IsU2}P-_vFLe^frkx%%uFQQsUOTRlB|P*1g;=-IA;a2$N( zv@q1}bk=vQdD6&zy0cop_l=6F{amRZ2X(dYRhy4=&%=b3oQ1Z=9AVYF@!!8%UF85p zs7i8dQw)|yx&zx0+qdL1g}oJtxe-;2eipQF8v2rt4+b?r(dS9K@vnZ@0L?wdF}F5m zy}I|*^Jwke&WpShnky&%`Nnr~KH*dg9tM4=Jf1L8mS8xY6dH3Otju8A&t%uMpXpRq z2o_W?;i0u`?vh__S8T5ObkIrGam2@n2Y}DBHe;Od!h^}S_LD`@Q+%Lyx0b&ev<_Q$ ztvGI2@P6aBS%j6Pb(UvY=w=a74*Yg-iRD^O*v%Q#&Wg?n#m z1mHPz+XixH{pPGXr#Zzel4z030eP`vlz;5RbyWi>%JMAtAqq++rAB}?N2{jQ}*uEgIGei&{WY3{UurxO|?Y>R7w>@hq zj0Emy6(TSleJTG^nUTb_*8`$5rS}WMdhNaay6w)FD{c2u1&{5S*Xk{3H(jh=W~;Mx zuYlywYZZj#@Ng8|V~4`+BfnykB;MlZSxw7zZe*2$0S>Df+njeEYlV(@KH0@wZFqVVlc2Dy1C9G&PBR9L8HR{L0wU6n|Zz z8|PH%j;3`hY!^B2-vMM-dpq9|Ttj&AQt_Vyeb*1H*+%nyTnz_S_W9Hv>aNY;gIrJD z-7TJY=CFN^c>Sh0ZlF;ekIhhp7v62P`DR0^=5&gA8hr=68j2n)RcozmV!zt>Y!1=y zT%vyUUGz6%cCJm@UoJzr->bHG4qdrKv=N_=mFTCq#uhF04(Elg91fA%TSEUG$lfb! zZEkYH5%f%L#frl;)#6lM94OtL@|95?NW)5)pX9}SQtglqiH_iXX^GpzYvsnU zrF|hq_In-KyWN6zJF&K!YPqa&mI(N9V;)Sv3KXaSx?xV1}LPZJH%&IP()Q|omrEr4}gWENsX$~G5=w6``} zcxy#>yfr{NPvr6ty7tww6?G;@rk-Nmv2v|mTrXuAfrA8jRmCFInIqBIc-|^8g~lmT zHjllTgYJ-z7b=f_t&YpttJa)^{bb#`(H^ji(}`v87eN9r#qv#^DGG%_Dg~7k%3Fhy zK>R4D_K=$j-mAKxMqvAkm69uWez&JRQyd5Wt!lrUnaVOeJg?am;RpLDYfp5OZQe=Q ztV_d6V@nAb+M^+;9nL;c5gTP5GRn6KD%ckAjKNRkBqE2{zYo8Od zMy);2Y2p7{0|w(*wFl>vp1pf)Dw-KNL&<%fq}d)x4v9L)M_`W1V%AW*JwY+x>t#NQ zP~tOOz^E4YKBO$3l}ZT)MitW@%%+SltB(Zxs1ySm$0$%Hp(2zahdnrMPi*4>jsDvBta4xE7_9E60YP>ec9}?EpT*APGfURna|d%Nd_+GOXUF*G0~TSbJ$vyF@9`Pm^EZA=MyjH>7<@&u^PSHz)*~P0I zupvCVi@q?PI@IOi=lAK4nsMZE2u#dE`)PL;4{{64G{A7?>-TG(eyQ-oVMV_&qdG3j z*5X*NJ+xc($9rwGXN@18Em!YR2CxSa=0I_9PKRYE^wa80@iiUP5Bh2s!J(vn;<|>e zeffPL@0tH--*Apvea@imI+>c@967*x$>r>#KCTu;lzVkierMSKI=3k?W^w9=#M%8* zuDe#F7m&1j^gX8Y+vPwrKG_b7+ZbN1-;tNWHP+mDZp6?$l-aFvwEOO02k=pcr1a8pk!nxL34X==<%wK}&f%rp8>a~NTGm?}SavY2eM2Q0M)SwBl|=TUA? zpU&vavTy~SJ*b6|3R@hjvzyV_oO#X{1aqIUUAb0VM9IYCrAVT55=l~)sKd$fu2Tg) zmTgt^@=)i&&7La5^u$sDphOgI&je&QO*to*UMp(p@x`I6OJx56;yTYAH z?5u``3}bBE?%Tvldtfx)?-z%Mr%99DG9#7ReZd0bN|6nI{=@2KT9P^FeUpg6tt$Q; zTUdGjz>*U)1z!Sxmt8Gfky^rWI^)+vc!J`NyAUeOrLaAasVK7Vh<$Dsxh`dR_Y~fC zYIGR5Phta(Gs)=YE$(xcZ%}r$OS|LKDq9ouwS6BCRMb}O`jlnC<2SQO{aY3V_HS7N z*tROrpH)AM@K=L`GQU@Dqd?TPJBX$RmEHj;k$+~t{7Dqhez7+ zM6*<>N1g2+?(H{4lh5iucY3TJ4PylJc_q0gJy<{|SZa5^upc(HJD7r6 z+EZtV?bSO6`2UD;sN;Xeuxk0es55(C^I5etVNql8q{`ekT|Tj|H=jFM)n)(H-Y0*G^w)uNB3w)q75=|H0cIREbFCH-lcrvwu+ZwdDYZ zoGqzw!drXd#VVQ1Dk-14l5r}*DR^$D*2>B@2DgjSe}8YNC&cDvX0)`#7+Q5p5va+K zay{&SZ>aapfQ_!-I_{>uj&`TJ#O=nv-W?FoiyJ-#!DEAHtQx;H>m^AFhrmK)g zs%#W3KeQ(|FBQ0%5@K|$80l}W7P0z#e+-fqqdW<99q#@2*Wnx6n77_xJsgaiqn!3_ zGbP4bk|JLB68&>mqetLbXN$$See$fFrD9{lh|d3*!9c zde0+ctTWel)ccL!t|O2G6%;N7G3thNQBK(oE!zI1KKEdOx|%y8-NmC6rfbL_sZ~~g zy^euxd^5$zx8a;y&}ECjc8-`r@tyO;g=obd6(EMhMvsz`p6VBoDjQo8lJrFF&ZFyM zKNa|P&Uh$>qynbNrO|F}Mm+6x5;09`IaD*A2Y)fCI932lbVc*ohLt1d*o>?W37GP% zrJ;8RiOzT=4dx>mW2$LP8^(OMTAI&L@sM|FX=NR?0h~6F?{okH2 z>pG`&Eq*U;Nr;iA#A^{W?kt*>;$`GtD#;!wK{ z-E6Lf{90OeuG-eOOV=$Nb0I0{+#Kl8>?|rXI?#gDLAmO<8{Nh4Mr7wnhlMkro6{|6 zb84BZ>0u`Qy59cjp*3$TQ+u(#xqRNW_eSWtcvsr{o>933-o^7TR!d<1ah323=I86X zD^tPjdv1K!rjcK$C+F%N41?Z<^A^UzfKlm5j~3!_j@-DWAE(cqtIC zn_z}Z*u#hvhfH1rETpUIHkBA3B89zor&klP`R86CitoP zVFoE{pP#Neagf}#ZbL^LBPPdlZVG3DEaPRmj}f6pnQumz`lhHEIOfqC=8{omZWy09 zN><{(Fx1I&h5=NRHDf??aw=XJdgAUeoLnR$;7a6{__z_=A*P6$k0TU=LYa353^X*6 zHo(ZJ+kDQ*#)L3Y%nNr?S*GORpY~6VO+XPzV=wmDi~SG7i#;|0bkgmcfaC?x zQamK)VCqDlmQczO(0ELzxRYTOIjhAeiK@gB=jyHaRCJx#J|>K5WFSRbBI!h)J!c_a z>TzREY){-SVq)CHm!J?|CN@QFW-;*?sF{6b#LhATprD^~o`v`)alWWhbS;_^J&SHd zQ6kJZ4WcjE4^YZzFw*i13@#|MvF^!w?njiJ2W~{oD4XHGZC!s$##gO}1#UhW7i zpdQ?y0vgGr9Q@P%*|7^S5cb#wI8J08C$j!SNn{5%t^y@j(t`dM!13|XFv{n@L|02KO9n61Sc$a=ZoVi4G&xJ%UR>J zW*X`F0b1?*;lLW1w0|bHOjvLp;ed0emX?f&Lms!8W7%Cj)G~5#gQkyL77LCu5u`QW zWrZ?TDVJF3V4FJ)8c?8DCLa?*nD|Tx zlu*O;DLiRQU=V&%HyJv(05=N5Y_ft0EaW0V)M3W=nIH=P$jvDM3jBdKI9-+!#C#0g zjAxAvpTW3K_)x%-@CT0Jo8-yx;e9P8WD75(RdC`cSb|UA@(gwk4ghK*=wBR%0EN8c zEa356_VHY{d_z<=Rr0qvmwg-p9ESkMA;576a2x_0hXBVRz|leg0j}^xDCMWGZ8S?D z7!=m|EMyXd2}OkV<{9W*p``#;ASPrNzz8XYGJOU^*d^EztOx`J*B7dkKt_;ken?;? zgi8?Zn`A*2SR@f3R1x+Hn1o8g^qzPSLS^nm_$|z`+E9onv@{&_Xb4)RGcrkOZf2o_QckT%-x4b&NI1 zh0ObN29Au)lz`pWuBy?KgjwWC+P1j_JT-~dI&gNFLk4;rGmcD0$58XkiQ=^E(<o@77N)W4n#T`n5H8 zy1CBA-S+;tVQ||vOd9~^H=vK(!|4xOW~S#LSpIJ_guP<9VYvMu`^NTaH1>1d+yXG1 z!EU2bHv8JRw^w!MhqY~PDXgu}bvUOs?UdOD_jobknJSeHc|R<89b@EHCg<)CXXfAd zH;3u;M@87>PQVkj`)|2#Fo$AfZ*AXh);I7#$b4|yP8QnSH_#cbR3P%W_qx@a&nZ(gVUXwsd;m+=5Qp+lyQGnb?u$pBu_iPeyTy= zL`VdtC&k%Wve+m8fW0^$thK#3q9kXZu9mzo?XQd0ct@x4g&Ntfk_}lf;*1A7-_&VO zVCBAJX#E_4zQ6g~GUXo?UT!kw9XXDoUAQ%)Kii(InzG1t207y(=NA(8{k=YqWp9(6 zMdPl~mkYO%uVesKQ%2g8UkF0$Fi@ipO%{&L$gb?tV6OduH4Viul26}|lN`bG$iQii7HfNU zo%PMRxFCl%O_s~Gqc5*E~2Np6o(tLr!Kq97|nL$ zpI)sZId_K|@4FzMug@Qrr3p$jW+x>C0;^vPJnc{k1n!5p1z_kxCU*(4gEqu!XL%H7 ziO*w172w@61!UGIo9^Awvh$ivat@NQ6VyEr#L1TN>2q});xZ0@v~p|Ew=ZHGE>|6- z1My!}?WuS1!&0XfVLv{oiEFjdo&O$q#~Uu@8-B_7Bi-c05w2ixJ5=oo%)%gL5k;QEH7K|!oQ^Y424^vuIbTcN zV7`vXz6WG^fA8U6udzM7R}T+raf+)ElkK&`_vZYwL-u&-@U8y3c>JBh zV-CjMfc=f$Qe3f|F%TYpV+$X5$MO~}pWcp@O)AxSWgGJJQQ_kjw0&m%th{yU!MESk zFIlYPe=d*udhN_hoHsoRzw0y4yNq`^+Jt@NfWR{4qW!b`Zv0j_`1|^im=L-ONQLu4 z*E%88!j5E)MA*qoe78?zL9Bqy;yjBN89?y$+x!?ypY-zI>IVUO=F%lYBqpR& zq$;E?Bu%6UtPQ9z^p%LNBiq8-Q&H}UX1CO8!eJ>P2^nbs%FY=t7Y4J`*{D5yaOrk- ze$?Ti*!9emrMej*A~BQBSB{$zh>O8zF-UyOKPhxZkA?hAtvQXzEmS^dwk)T z$2dF`IE=-up_Y9ku)zr-XRJF`7=@e~&`m+RdKk=0L`ZF*;ZN!WFR7c}#{%yU9aQ$H zyIu>Aeob>OaqN`b zsdMz-t&_Azc%0bY;c2@sReOnTr}g{w6!STw>7BJ>5ACttYVTlIvSPeCKfAlG^O2@^ zb2;moigwrNsDBraXZn0`gUA#F9CY)ipO(|xX(U8Q>N{{}PD|!4 zBY3@z>Uz6E6h~-&P!mIPK=Oq-Mh_3PdwcI+_5N@C^~eNcx@gLB(~K?lTRYbhL8pl) z^8h`qnAjkPYKu<1>*Zy2%>j5eCELz((_t@BJ*JIB8)G_hWZbrUkZlgSUM$2M6sxrF zE72Z)ztTFw{XS=u7%`*zq9Uxr^n{QH_Vx6-T^{q-OJQfH+nM!R+Z06E|2x7|?Tb;D zt;J{*4BU1>eWz%Yq#N8}Qq)Zry+?m(d2Dx~iT@O%Z^nwLbr5dw91-_l@07qaDF{-L zEft!yOtSO1qBd<}TN)x|*oNlB`*Tyz-OS_x8`fxadvd*II zmxz9wG|0EB+rGH8kJ$H0cbJYzrrpGu+cLf>gvy2Xg9y9cxmXA=ukFC@QB+5*j9??v z$c*QJ!Aeiumq}pnL%Pa3*X_icy&<0I;%UigZ_$X(FO`?`H}eQ)RM?X+4kp1!zE#fl z0Xh;hn?AytH*Z*fC>Qs1O-%TtEi(JkPW^F}rncrv>qOj`Gtgsjs6v@+gqIOp`omSn8MVTea;<0orv zJa(x@6DCeJ88$5`n5xJ2oTrq#(y;Q?Fy@gvg70nyP=9)@?9PL+veF)#6M zx>Mlb?k)0pAFj@XvcMT;+kNqlNI=fGtvSLUY_>3j!S@>x`i`ceG*3zWCiQOO;l3`t zzo=6C7x`{@fq3+XwcctI7VD*MF0Pmylio1~qiZvFT_^2)ajkd0x;EGw z@M$jj)ZiE9=z99))uF!G-A^kXc=;y(dXq_Y*sa4=&nICVE5LyvjkI~6SHppP)^KIC zGyQgRebw3E;pD(S-k43{c6D#NFKF4TC*-wyeVV4{S~#1!OL!pZ)Ar!|uv)>5ALg2l z)mm9R6dI=nNXOe<+V0`|x>kB@Zy4!Vf6%JW;{6UwzfmaiG+$Jt%yNlD+nv`2t4RhD z33t=$>0%vL+IV6~r_FI&Yd1ig=m-;hff#3GAqm{IkLM$ULD3Oyy=e(HF-w+m zy~Y$jp3+@?6yPk~|LhtsZBnAw8Yw-{~7{Tgslj zuwvUbb;J~+cIHA+_hR)KsXkp3&Gt&1uAVN}r@e|777*=wp|QHj5}hdhzgH9A0`2h3 z5?dsyWcIn;>ZxZUdtE&qvi@*I@>C{pjH^pRRUGziL9waL2HkS%QuRHJF0RzrF5Tpm z(eoHe?=Kh4I7cj!?=Ev4ge^tVtnNlorgA-AzQ@LyJP>?>oKIrS6jpgEGX^sDLE9X>l z##Vib1%6DRoBttf>;UsT`jJ9&ajY7&zDs` zi%bH`T7T`sHBK8B${U9kr^&vqz34(5%?^(6gUyY%Fw$d(;*Ga&zn{qeshf0O?_uZU zNUP3yY9{GB@?TrkIHMNnl$+`QXVz>+EV|t+y-qy0xh-wa!A~+FIKE zGZtI+G}_sv_G{PI=+289q5iC(n$CUkRE%r7QDVInB@_MSQ?5?i`83ix`XjUu-cIDa z$u)^k;$3#Ql8uPhIrpu4Dms$huFN&t)FXYlp!>Y+7YmY$j4sz$zo{6q_p;P+?Z!WH z`79;L?TbKSIjWRf76CI{O>mBY-I;HktQ(&a|Iz68u)7)Nxs#XHb7a`~F-Wt0lQ+4E z({+gsTeYXxYHZi^`?Vg~Ef~8W30txJdv$@}`N~MuK7_AHXd;bq!_3IcY9vpTcy6z7 z-}Ou6DEYK?-5`FUS8xk_!;yS#`7V#AHo-VKh|qkW1IrRx?d<1OrcsbNe1gLF@w{7x zojX8R_tBrqsK%*C^ZWE}tN@W^!y@Fl3H(ImUZ&aeS&36i%N_i}OuxW((%xM!mA9O0 z1YPflH>S|H{dj-+O!mBA$TrINq|G7vv2SD5H@XhToh~Ewx-wZ?-2fL$4Zq$>^g8a( zr+p27OP#yPD+lS^f4*C2%H2|NSuo4rp6=ZO&fk&_-oH-w<)RsX8Yj1Xf4E!Nxknt2 ziMHzHp^_J3J5@WsrjH}xy}i+Rt;HhiKJW-b*VR2ffFC`OA_?^Aj-e_5S^n`_C@!Rj>06xl;><5wBH=@kJ`JhzZOnCOD_aU%&7t(qH}myBUBl7lh&O52-dyUbj+F?~GIQDG zIa>bW0H=99mYIjvv$TUp99&otim3sE``ngn}Z@xLR91jn~mh&|_4`Vwi;*~%8S#iJo z;;*YGUO<*7?^YJei4SdSxh(a)bvYX{oFKB_-i6l+Pt$n%V2<3(`wh^aUyk>1e3EO) zhZbIOZb(1FKZk`nFw%Jswy0P#=oACzm^g*SBI=yj;D~h7!?u{s6~&uqmhNCk(*XCEqa>vsCQmfQ9nRX z6hAaZwmfER#>03tw(MngF~_)7}lkk9_y$%{+PXkt*V8OhwoA!Ig2{>2sbufb_>F@;*scHKNw)UR(c#_ zx5i;>^xY_0vQs+mG2^2?m5+13MycJZyIs$oGaP`Gi`zr_`K(uNjh<0$cz3s=BTuJR z6A}qayc%p%_Ou5Zp?i5{XqV)KSAjU;WTh~{<0-VdT&#==i+75GL>5?0bZN?b zC&F4d=aVEh4;=t~nSuG<3AaPO#*MCm8_{)eq`0x`S<$^$5OR6sk*9>s^LjeV@qZxA zmARaxINuJn7%kmtoL9%IcE|)2gZGn_A?$iOrfTD`(*5gXb=yd&SHYXbmYP4py(j*j2=<@pu9FRrL_u_oB}pL5=mqcX!sc z6}&WmxA-$dUYsK_I!y(e4u|m)n|o4tFTS!2&!C6sD^l+~lP@zIf-!qo!Aooa>%m$Z zQak&yvHeQz*!p}3E)TpAbv2sl8icwiaeDs9Iyp44k_)rCs?d?WU#nHuTAV5Iq>X>= z3bH}GH*ns1Nntu>A1!`L<582>fhK=iQi=7zjz?{-BmLF9Fgnuy(v$VC#xXKr4*UnocaE^%Kw z4MCClt$A>Lg@g^mvxNPv+Of;_Dy(7F`@c4lOI$LZ*U0SF$hh|yEzRb-@1<9L9)3dO zh~4BEbao(ydf9xHT>mjs?4nTvzM%){bl*tS~32#ldXlkDc#o=Xfr$^z5*Bnz>V;Zatr-F@pk}HQ}D2N68X? z)pq2d77*;jA)x`ti`eXt>F(1n4SLmA%qXo?UJ{thGde)94Hrk1=ku8U}20va2hN6sP@~SF0@7A6R=1YZ*WNRm)3j~ zOaVNTUTg?0C-ir-%IM_d=uDIr?1DDK5<+z6fzSkwC>*d;*B-w0iH9%mgE4)yFp(VI zuyE-u{zO~?hd3U=opAWxKQ_8}fZg3H>(#E^qKCimbV&S`(7{(h^0yY_Tsvn%Q|{b_ zh=cC)lkp-%&KXWxX@&n&M9?rY9Vv#;Yg{!F;z z>fzRSU^)*MrwiPZP(^K4j^?vOK9UJh?gUBv`Px0tumFUD)fsM38U9a$N-}K`5-;!6 zxca68=djtyHr(m%Mlv1pNll{nAX(hiK9qe3x`bd{;H25KC`_O0tI9&6bAkha8;|}1 z)*WG184FD4do!>W2o$QeJKCdh3iJ9z(W9DtjKg~pZgX6WlT!{G@szJFfUvjqnsLJ$ z80~~@66&BA(2}l88UYP1MWg4glk=X|(h$}hajN{Pn@$V3(0JalNLVVLRcbqsWddhQ zd|M*KzUSqjA_lw{f-jGP_^}8a{REX!%hbeQQTGWBVMn0HwK00hh|gY2sCTw9#vb?J z!T3&KZ!h>O$W{`KuWkIz^3*KIuEQ{zdO`&8beAuP6H_n&2TSt_@P8Jcc*5eJ0xy@ zMaP*kfTokeeI7zdz9A&hvuHT{H@9oBDQJcz(MkTU$jqG!h}{xPJ9V>i)cYAiHG!9qkYBM8@5=@T(*B)K*6Wos1WCW>RM>>i>aThA z8vnBK8_&B|8Q0b9Wrn(4PD>b;plH5hlwhU-Cj;$S4IH@g+8pxug8oZ-9zdb(uD0K; z`79FT7?|ANPYHZR-@t{*qC5+0_IxGJcL{Rx8Uy8%Enh5n5Vo+=&GR?{pd)Z-z&EmG zV3uxC){T0VRnql6QhyAaK#e>m4J{frmACRqkG6-~P{EMQU)e`oJvTfH6GKWQr!6T~{rAjI3eP;HtHZ(uhXNIX2c6z)IGvt{fDoP| z0tjgsDf@!(gIuF|38m(pWeBhIZIJqPYBk)?e9$k>JStN362Dv&>jQ-RN6+ZdGs#oTnPi=tV6B z3lrXA58}^+1xkdexT_bq2>k~p=(QPo@^n5Qq`4T#Se9AAdoqh*z{Zcc4Ax?nuwKZ* zn!dMzM;mMJFuy*8l6?NLSW;e+p~q22ryMeFA*SLH6@sU@XN_SdtA;UW{0JitEZ1?= zgnMYgxdGdOJkY9ZD{>O8*to4aF8sY@CA4;C*=W2N4-dP$q@s6{*Z?7Bv>zH8ZA;Jd zw1nvQLce01zaIiYF2P-MI`~roHzs_TqOomipc>vOy8`; zwDM<-kf0ZSVvO%j%yP)=Pzd@O-Qzpq^3X=Q1JbU){AeEMLPmxTiDIwysbsB37NTB% z6GT*->z^{*ok~8kiDeD`a<=VXkD@vHAHR(m^sY-m*yn{UPY-%BxZaXl{!thiJo#{@ z$(>45wpDmM&70M>es6n>P2lX=jc=Z0`>enZ+G?!BQc}L7e-`ZQI;ej1-7cq~RsOuz zyf=17^2OKP8QcYSl)H1qFNA|U?xLj!uMwQa-FG9ULDo_Evx8J`!hsQ-u2^|3T_Z7B zum60B`s>;pz`c&A(I=EJExtM!oCIy*iofTBSoy2-F7QB(?tRHth;yDi7(R4>!;v^z zeKIIui9iarHUO|Tj7|d{MoYO5Lo0fm)O%WV^%px4j^G+Z_vce}n{Y)vL<{LtvPCqy z4<_IcDV+AlO^N?FHnx#{!Nw0BVqC%SdEw5qm;-It+Wo3}{9>aXZ{3;`{liFv$Yu~5 zMm)p<+$aXcp|O5C4@!Cz0~CI<3pzm+pg!G&6uh6+a(WP2heKGH^ZuYa(+uB;DGd4;Gg?){y_GoZ;df_cb*9o3t`{|M}6L& ziK5SKoe}z-_CQdd*lrU7M&q;7U2wjghVvQl*xs+W`>rp7PQ6)3p8=QN=i~-+IDk{- zGeFp$g%Hea8WNM2nfO_BZMLb~()zL%rEjILb~Q&)y7}I7yI+`ai`~z6jJy_OWmiiu zl4%~d+~)4+_v9x0GKzk&N>m6|AZUOf$;n2wJP$9={5G~Zb<>9R=>1xEDwxt_qQVFv zl~7XD+B$u$e65{zcLb&KSMFD(qesD;Y6K!E!GO@65i3!EZp>e@c~~GkolCkr8}ieM zzuX#I5wDItVPcX8I`|P@qEQ2lT;bYyI-`tJ?144c@NPBwO`_1&VUwhDP6Anozr=xr zOf_FJY=PyDc@n6*Q%AFoyT0pTxjy3?<|ASFXw8q`%k~287+$(+Jhc+`JGKe}Hf=T# z9gBRHvds)X2>8I)2~A&&Su7wxtyqHguV1W}XYQkr~A`fRou0PGhW`HT#^*2`%GLM3g^e*9vfs~c zEyynQhT(K}ZG>5tjT`qEiEtM%wT4+4n_c$vIzbd`-ZwEK)(-moWcposOA6M$^p;lKaVn@wfNnGbZ-Kq2KMsT#26}9j|p5#_~NY~y%6d#+-d(5 zZyCS6_O;kVDE(~*XGE66X(=o)nV^n4?TOg@=9gtf+cS1B14pK1`IWWR^?PrDTIF`b?J)R>xeliHefcW`iVcEcW2 z#2rAaakoG3+IAhr-`+aQ&^0x)D$rEK?>%ng=z(O$DUpCYqcGc^rzI+%>m?`p00=zv zH`%sJ6w2d-D-W28{k-+$;K2Lr@r1SWI%iT>Kd@%HlXub;q4R=cleQlTGqYtN#N%B# zxV7;8(}+JyxAeq4KI}3Max5;p`t&rYyWmVGEg^^=#mX0|V9#A(86e@?`*~oRa*$Ur z8>|v5nO**`^9q)xmF!beFWBrJy$JfSs8a8{B%XQgp3qd?wbb=?0~Oq>nZ`S*5pV=# z_R+SqUz4anV8EZI{A%XYcLv`ry?Y?e&9i9n#XynZD}3Rx!^+rBb#MBGs7C09-91_H z!y|X6ZT190D~!1M4YPpe>TiBhaoTqYgC$XCcSk7(ih zpFJKtGxX?TbQy-jz3X0G<*WS2`WXy7{O#+@(`h5#{UjR7I3&I3%ayX|$sH=qw#sB1 zG7((Xtcl$xt8*NuPGr|{Nxyzm{lH1(kJAdKQJ2DtyfaOvUa<~@*>vK#LtZ$!USVY? zTVc|cRZHUFA2jlfSgeO=pJx&w_%$9;Bk3Z)*5ou$XuS5C=ITZu86n&y4*(&j{;@m` z!R1|_G>r7NqB}rEuZ-a;1J7MMpGxF&Zf3W&ep*Eam9u@2{wh71WDM+P>%cb_igI7ozyj z1nCY2{M_wlAX$7dp|ea z%D?<#08cNRjYjUyyC72hV7EG+yaCf_zJ6z%=dOV-eGK+$w9>2X)A=fN?Td`y*}Unw z`k7+jr4VVHo$AU&9Uqz=YBf6f^quq{!p#sk`q7=h`#%BLY5l#A_`L?8_yO0uX0;)gMe?p|NW^nO&?&}Q}sH?p3+0k{1 zr}-F{G4I91My_v~*3j-R@;uxS9!+LnK|`ghH=as)$g3FGz!qkU&g zb7vg-MKVtkV-l|~&1#O&hiK_b8dcsVf+PIPEJ#??Mt%sPMSbZzxW#Qq&{H9#3{SB| ziQ^~mq&?&YWPJ;HZT3}oS0}#lEz1Z`3P$`o`})RpwhMZq$^xclK^|&cE69kIdzf;e zCMyPcK~F3BKyt!#IKwcUau}ZleZPOfY+Ln=!d9evcL) z5IF);P6NWu(ZhaLXZ<(iHi*l5rA_GHQ#$W3S`tbo-ZxrX{&RlbSZcWY`&9qs? z&QD)Xw_H=QipSF$3;)*M)3wm5Ws>jl)s?x=&&I5$hfaI^N_dvw!I$>37>6>9eeE~- zG9@1fCHYz)RNPq$D?S~ScYQf~I-HgozCD=Sdt1r9(;!;nC&BvZstJ^51#6AoD~_Rd zU^BJ~gKExVq?~g=*C%gg)|uGZhRs=F?J zUFhr7(#b-cFI_8*$VtD-uTkyC#A%%WZLO@#D}QIDSF0C52dfP1uQi5USN1D;WdmfV zZu2Fz!y-9S`wS{7=3lmE5B}!(3JP9+CB(M}F>po{>S(|-~>2HPVJeuu0zbHue z?y=EdBTlICxCd80uSVD&?GslffV<>M_Q?>3&LvY|roO~)eA~v0DtpL|a|%0v*!@7~ z3Au2R7854oWgOkXJ}veHyb`fqANK5o66vmoz#!2#Lb(3HM~+4Ny6&FSJ@silTPvBO z@hoZ6<8$d&iIK2(48k)69C(FDQ;TUHgVv*`U)KQArW-;XzO=nhPWCS4@K!qmpA2pi zy-Gqz)MMI`#nfVhJD76TvkSQT-Z0-i6&BI_{jhv^n%q8_;E^}|h1!I)0wdPaCr!s_ ziBIPJ^G}b6E^C;A)a7EhB7Gu(w`w_tv|k+KR4mlxJ}L!No9kj%o9mx$Ds(swIKU1w zO67P>CTz)v!895F_H*hVL6YnziQts_^WW;J9If7!L-~YX>$#Dz1hGs)NxzW9I4{9f zEA=Mvs_2*cI3`m&K3A2V;E}UR|6N(5q}S+k9kVSt`?BkRs}EFVjZRF@oP3mNefgN$ zndxx#^JVk5soya~yAEUXl#BtNN!hAj1#>#!li#!nB|JQ!i7+3X8IUaT;WC|vp?f|t zIn5h;4WGma#9pn67sxMtO>fZxwU#C`!wc< zhIL$vWb60`>Y|#~y`88vl#Rr1PAh#@t9q>i-|q8}>JySfmc#r66W4!{-tpId(+3FN z1zlLLF{Dqw;xI74EK23Vs?rck$%h3C)n2X?|0H@5`Ir8yQh22}j}P{VTdIBJGiZVH z3QLoor75465B=)%or3lGv5d5N=*6iQ#h*OF1tj>lQJkNCp32ur3rGzgDGRk6hUF~w zryh8SVaJd>F9oTqzHI8LLbbHR2a%qZM;WCKC11_t-SJztEMP#s%Hvnkl+}x~F{XD*HTq8Wjs?SY-T)YOX#K#U5gL zby_&7_ulePJn@YeEPDB?Q+}#F-j+|wumsFpe4~dZSgB97?Gi;;fMR+sto7taYX3E9 z_1E;vEQXr?1i=^Qm1 znE55sFxP98SO&;%J&osjQI`pDe#tzT`K{-{tSK2UZ-kQ0iOfE7F?cY`fl29f&kDIq zCP`4WrdKmyP=oIb79<-~;7v&$sHXj7g9x%4E9TrMH*c?Etd!~y$8m{Hp|Am`T3 zU1|u+9J6b=5fx{s9gqCXwWnDcoQ7&xR$tu9?e`2+qxNT|+U#0x)bAN;&p@@L_RLgk z#4)w<0?c^9Fqhs5SJ%o-s%E@I*{IE|{M6TLM6IkGrRsg9u{;GoGA#Kw!YP!i_C9wR z-DR|{Y>hwS8pg}k#6#jm*hW}nOILBp)nIw>t2G|TYOrncw($QF-B*Z91X^dkP)4~> zL)C1FICc?R;?SSkcDz)f#$IP3;TKyhX@>SJvN2rgzvcc#lF_WkP2knky#6Q(3 ziCG?l3c+VhYn57$$j`xjRlJy9)C#oCLTT(z%pS^g9z_il&8@;LWfyak%)R`;g-Q9> zG>eMrKELf0VV#EWkjCHO(L5&Kn+P+((Dxvnj&Wg0ww_Za%E=XG`e1yzjlfM|n_SQf zu|Il${g`AH8nvm4coDPU^j5C`rI49pR&y8Dc+@{){UEz~!kQ6lH0jTWKdo6ZD>`8b z?+L8|u!i((H9~w?`oW{Y%sbg^%G!|c9Cy1NJ(ss8k^c&oZ(jC#Nz^inr|(yfUZ8Ax z9g2JK44YH^BU!#fJ#32(vFH%r2Iu;1=FxZmCNQ?`rc2XobG{d+bqIsHzP7D<11GPpc~VF{3Hr?2EOdoBZVj>+)jn-p7tP+dE>9cP z^%!rXy8g6LU5^7ds_Rc{>Pn8$fZ1H6o7^lURs~tt;YqLjGcQw6M2maBiyjK}tEIWm z@4|<^3#oG1w%wnomb>5Kt**iFk?`MU615FPVp7<5CHRdED6u!#rNi$1tyCJ%-bjN-)fm zfkqhSNkl$|c_r&HoUT;ifvoq1N0;TrsHOy7*K{S^KG&33$_g!Op;=ywmb#RN+)yf# z^!BQ(KaCcr?_!D8=I^9LjqG;?I00@(7d)8%v<5~U#{P*NR;$n}0djy9Fpf*5GY`KaC^#VQiuk)R|u;eu>_p(`m9+6g=@>8wgjV)K*oK?;LRBu}EM zC*aTO`&ZC2R;F-57T-J00#`BEjA78{-~iC=Yjk zHXZKuwHxE^Wv9d4OC-4aeGcyTXT1h|f{ctkSpU4f7tw=BpF$H;dlhDv z$?hktR=ig#w#ixfeTuzTv244`Y)+ z$QteK^9V=4Zkm$o>uETPTCJfBEA{Mj^xaHa6Ytn9EzQo->OQb-L~=`-2{;WJ=Te>@48a0;JuQY5%-KK3&R6z8d(4TER3CPQHoMhI(klCBiDL2EG@J!*fFV3ZPI4NTW0-J; zV1B5GM4KVDD;dO;DFWS1mp4Bk+T^U!$J z+~b6KZ}G!f^vioGnBQbCdat0S`I!?(6aETRqGpDo&pSSMHda1Ap7tcuzTNSj|1@Mq zn@|&dP&EC;`+#W}J@)IT=^6ShT5Sl_SSh-Od`c(M7I@D4__qz;!jBSOgacoT z(#Pju4S2_a7go5+YUb|f?^K@zofbGTv;~!_C$Inf^YcEGaE$?;d9-j%l0?5no9{M~ zExck`aLDl=hJIVgYbwS z*O5pNb&%G2t!(A{w$@?dt2Vr^G@Dk{D}8?r{qm5>O7`0cVgAG(M7KidIJB3aIu?5W z^{60B!lx<1hnnFfBq{Ve@O>j$FFcah8`?sGv6Sw0@C%1UoAS#0%YSILP`*$2Vx@NJ zKRfC5&B<>gjX`I-zJYGMONI=D9_+SWbDx~|X>`{Y7#%D6?1w(p`aQIc7MjkMM=w05 zQfVJCNNL`Pqx0(DuJU#QZ4)hueXX}NP%{7gqNMlw7HY!-@Dr^Hrv6EP5npUm3!8=G2>Ms=IwZzOcquH6(?A~*!Pe&D z`C#r-w&=O=)%3tnX_wjQirNfRaR-Ie%>d#P3@s`X)wEyJ!0_Gm0JVMr*x%$uiTGjj z2q(C@=pn*5D+nMX>VkkD^87mp21_;A;-kWIGE~5AeW{#cNv1d;K$d?(_A*>9b8Oa$t3pGS735u}F+rLgPf~ za^A~;>LJcdSKNV2D2?L5bwEX%ip+(JYRD?{JBGW#&6T_HE_qOmZ#p9m`(` zGpT$nUpOyxYw5@x=ie6nf1(LTbU&Q#TttuIHdjz^h@5tPdYayaH=W@?Daj=m1s_4U zkZFrH>fBpfw)$jApgHud<~{_?c#R95p>00Q<`Zy?2e0ZH4)0AF+`NxFY}l3Uu_f z+IscaRm-kN=cLVbpgNeii-%crvky&ZBeD@rQ=QNy90czr8X{UrE)dgB1ut(fQDYok zYau~D(l)ug(g}y5-{O)_`zOrd1GdKSN(hpQhGsnXiT3V#!+ngePoT16iw>uklB6d> z%kUeepz>#cvvqpBrXRm5Hs8v}W|p-#O^-u8FI3xIo!{;>HF}ZeaNb_ya)dw_0rXjR z45InGcFj3kI^$z0Jb?ytiLdJ2rQns5Kes#jTY?y^4w472{M0xg-3q$N?E&1u|LBQ_ zgf~zhQhg-5-r6_*ya9FjM8ZQ+;SqcdteZQGXbvWraJKisWv8l#IzoxvY7se)p20V( zw^jIS!IFa~p-D>Rg{J5eng`7-P4kd@NIvtbH-rPol<_1tS_d0&Y1S@AB;OU#4r?e@tA4(Kln9&AIk z?PU+{5odYJXr<5&lJE5IW)vTQ3xY3`7XT~hNjcnbQajIdtzuM zEE{9S2aCbk{eNtHw5d_~ARTF&@4Vq>fk!XUj{A#&zQA%1!u6N)2^ug^-L(E zl!ZIcU&yh0=J8Ta1Ne^%AG{O-ld~yL3wS$0PG-Vqrn_A zoSo@^i~i03Y83uPKc>xEy5z+n7`txi{KrIv#5N~(1dhgz;TxcH(1LE$lG4%3*)a<8 zfYnBJpn+?!1a1gKHmL_9pJSqT9G9Ru6Ut;GXVJ>=xdzvu&K-U%6j&!($@s4_QqP$A(MNaB`h;S= zV>KW&-6&5VyWcI5d`%93!w9v$p86_neSIegoy74>oMQ|jrzIh@u9))-oM1N;Nkn3H zDiP-8ducEyt@=c3I+gX5a6&X^TRt5G%!+cfgwwWQ@bIZj8@ODTG%!bC&!Ce1zCRu% zpZ+0Yt}=Ftr759l^x9fAfw^I{!kA^5%`mB}<7?oxU*^cD?M$6~@eH_EP0vcl4MlZ8 z?i%uF;UZ+!Qa(l9t>?28gt*+0MLV)eA??^A(b>}8 zw??Yx0mbv*n5{aY*+zi88FXr*%V%RFvdrnR{90nw>+nXz0z=0kJ=5Uj53E6&J)cv_ zSK=)S+r>mZ(ZgC~s`p@BP1O=Szx`-Fvt^<|_BUFa%<}Qqe@k@QsSRfyIY`!DoV7fn8tKoj!7s0P z;a~l41Ap+l|JT3&dRQL~y_-bvMMMSWT6Junw#SuUI+-uyr7)4ALoYZ#e+gIRHmN z&y}^Yv$eaa&{f{nRo-mvZnJbVjeex0a#47!(8cI&if^{!dZY*K-Nk}ml~?c>Bt9ao zTm-8X*8E4L%22wZL`%&Y2|8dGdIHofbQusTHF{f(4WA{u-?DYB?BTQEuuREFkM$`2 z8C^!nZJi=9OxVY)_&{o;5n)(RnCFV1){QOHGHG0X6mQoQJC>BVXNW|7r zk<4NO#tj_F2VO*%|)elNeddTBg(3Pz!s8jlBhzmg+%woNS!H0>UmLr^-mNkMxvE& zDkNJ-x=9w1lt`>-6ITV2s6w)Zq}!S0h@p4f&;yO*&H-b$^te2BtJKnCKd|ayC1aQ9 zb!D=1o<_Z-JpD6v(+Jv4GyHOxbnFu9$vMMV=P>EmrIG+w&L$VbXXjduDC18?Z-*jc zLn~W3?nTObJwtpOibN1^EK-L3I$sMx*l<#8ebDed*J<)ynJgcK(&cTYb>ds&b*>Tg zgP<-3MqVc2^@DbK#K64WDLkZKD(6i0Dq{AI%6Xc)05x@OL>>IdN?$Mmc=I9v-n?jZ zzF4L6MS+67D#x9YmE+~gxK(?{_^a}+3PfF95{*{H=a7)G$ev$vx$C!^_cUA*!nnoD zox)|b$DUlV)+-n2&uEWz;sWVtkID>Qv@%zHum>-qHkC<16(2N|<1*L0g~~;52>F(< zGcHroG4s2{++0Y+!ux?@SDj*4X?&YEw@t!tRQaGvl@DBJYy;6jvmy%& z%yrk)Qb=P9fUZ;}#uga4xwp+T%%2jUo&virey3`sMqaWykk>5n3 z@*>d()`J`K=-f>`mi*IUE=!V!3U%p7KS}Yv?vjYtUmjb4DnpwUxt3-dTVVbBu-d;5 zy?_0{AHjielT&rWUCSY-`c_yU1#kXm7!i?v~Kr;DT&Rx2i4O@|KKF zgGRH#MMieR&(Qj`TKH4=X0QbP28*V!=)&?Qu;~^B%bg_?a#2FnM{irf1;(d?_ryH3 zzy}qCOtCvb48iPuF6&$n&4Cc~WehK5aMJp&A290nu1p%85bV)amcQJY zVssVK1q18KZT9FY%8srA)Ie;X$1dsGTJEW~Y~G2o4YG}Bk1Mkt@23@CQ7w+kqH!}} z8tk!$tEvxI84Z`y|2+x;I*GwrXRyXl=M? zE!-mY>sWF$@UY~FdtrmyOtuai##^cwyZbXTMeUI(8y6c^E2bfq8DvoVJ4+1N@Y$|r zd$O(iWSjHVfb-$bYW_~o*j>%o?c;A8X@t;~-59_<)pC1mWL8=3_o}(yi=Dq!BE8Yr zcxKR9EB1p1H~J8+^Pd&|v&VmST0i!wALOd?kMHiN$D}nOh z!A|*967~hL?l6jVbnCgy>VV6IQZ?M9pQaXv=AOvlVe8*vL+ABQ*A9oFgrFEbbdk!f z+=z24H>}@gmIn_@>G)7qK$@ZL*kK?m`1Kt-kF9(L>y6OC-KCr6BFr0*H(Ey^F< zOww%}Cf*v{3|kL&Tj6nM%+1zjH&q5VTiUHUqqnTgaVs-woTs!!hV95)VZyHy-Q1PI z$tqnZUEAw1Om$XwO`7d^i|3qS&Q%Ks^F1gtjnO<0wiiflTJ`gtZTPZ-7nGsLXAM;| zpekTB%zGcaV0ho8;=5MyLhKI7f)2jxGWikabnsmR@vfDBm-1JYjJ$7^E;>Q3Qe@

$))xpd7z^)Fal*N#IXm#HAk$az!Gc|EQE}0{CmMiRsI}HX05&IQ#W8Zg?e4nwPtdEEnyBQ;V-F>z}^E3uObSeDE zoBYVw41C^1;|@AU-zxo@f3AZMdaTpwGX9~kHS*32<%vt>kpa-2xYTZFe_}9{G5AU6 zVyyg|7pwnDSULJuHQR$`wug#<8Y;%1hKdGC_pzoODvGO%ax?-gfDDzYk4rHL1_Zz; zCVgZ7Kx}AH%ru&L(zOm7rBNIEp=H&Y?wJmCcH%G}wu;?x#UahlHL&^t-13mS%5$;M zV;|Y0p3ain@QxkkoR6;R*dd(l*@{q2iWp#o5{6cgY$4fgg;r^HDd`M;oGe3*v@j1`6klyCJ1EH$$~G+_06RB70|wAt|<-qx{$ zV#DUU#?Q6{y!##Re%jh>ZS}`(ZT7Y{3lVF@bm9IS#0u zR$?Fq<#&n;Kx5tR!b@o-cU}&eQPchHXPBnGNhSBcI9ae3pQ{j-+-bu6jtXUaH zm}_XCmD*>I{mB8@o(NLUO)y9@Dqc zW!0PuovuaXcBt48_Gjo_1O1N7i2Fp!Hd+c(UGm)c-fYp3nUf*R$=Fo0Dzp>gQyK5c zC4|s}4@2*nY8rYEVMn?;hAtDui}WiZE7kl}$zSV_pdE4AUGWYcxdrLl8ImJrkd+}! zuUlJJ-BN1CKXhFf-n4=@EsYDa=I25L#C$ zc$w-Q`aswy$XO~`yRP1cOuZX#D!v);zF|g~Ta7Ib{qnF?yy*@W*dDp1ky16hS+TTw z&5tYMA=l|cA3H5Sv7cd|63L+v8I9mg#VDXZTm=5G^kjtRVe`V_o#!z2Was55+oc^QGa9Rn#`dmAB}TRW{A4 zYbu*g9X5M5tjH=9*lZLNmk)2A3zasDFRd@=x8dbhroRfkKZd?M4nqttH@M4)g&wZXGKRnBx+@Gj-R?10e|R}p;Bra0SXcH|;q5h_ zY1k~zus_^aeYnp-O7^T9)@iftMyG?FXqDkuI}OWiMs3S0bkY#R8#YBY{CbR9#hKE^ z)1OrQiMlf)7i@vSJz~=3PK3$g@NrkBqPKe2ZG|R%*w0pRm9k{q&-u^WozQr%61VHa z7c^wj$0K_!Dk{S6HS+GYN*5_Te4gZ-WxNyf$9ZKKw&yK9XIygLQZI<7OH960!UyJ8 zDAJNHbp^yDBo~Z!!}3~9u?`p!!#rRQ67aOE2C@agErW6ki|x z#>~Yzi*(iOius46NM}Jl;8N7|g=TB9>bv6l2RV!#oU)9M3obEU1)AL>7`|53M=C6# zKub?m;Y@W}EHlg$s#6BPFj;uNYMlf?3U%y%d7j&EYMBM3j~o&r zh4M4ykpX^t^&6CGuRTAE((aNb#KIjpVtExqo}zLO^wZK*{NJ^vRSgk9KP#yDFKxV! z&O2hB&yf$@XdTgvbO2H*War`eBQ`-Dy9kkVt#s_7)s}aJnkN`v1kRM@-st>tcdOY& zfdbAYJpr1oWkh0_QwD9S)U6dH{nuU2+*kfVMf^(L6lJd1AkL^E$pOl`JMKmB?#Wu&GS}rFp`#QZX!V zndy-422TT^QqjW^c~m@P8QyjZ7K)`-Tfc3ZzkB(8D4M_#w?kD8GkS?-U`JG8+ykAY@aShGE`Gq3^y z@+im13Tuz)@d##aq?^Q?t&tT$)JHs)Jz^$rMB*aanY*PN=-6%Pa)L=m6dW1AsTlG8 zuX9gKcjh;nO@AFlGE#LEM>fV~-uH153%@S9SO@G1oxvQ8Tx4CX$)_}*jN2-41 z$ZqKcW3c^B#QjYtvl}hju3qoEuJYqW52!S-nn9_vHj&<(BB8A zXf4tR*3L7glcOIvI{S2Gu+H1eU}T^5z$SQ`Enl8A*j@lzoZeEq6oSq5HS41Au$Q~o zIW5|24DELf(wfCuCj;34B^N%;iy6DB^cOYXiZg%O?48j z9GTM0LLEj0yl*8m&v0L6OBrp3(wXB(vk@G$b=gS%=265!P#au={ z_2IC|$H;k&`&ckLOLK~^ZnA)RSd!_Ekhq3)Y zFodTJe>;|1+Kg)ypJ9OyavKT=$nCirN%;?ESw?%RAbUDv{@!H2&y=@gMMjqkh`Owb zJsLF)(?FA0f!}hk&jJUuQW37Yn&l=DW+^mDHR^wPyU-uC(b2p#pufszrM=}%dS+CR zSm~0MB|V+!6*($o=%T#Ix$PTDxg^_ikZlpon7E=I4( zjiKV1A{EczIF4Q;xndwLJA>dwcT4+P&_p+*S6mf`dwZy?4wf-PVcmB%hn!HumC_k= zIY!?zl&@KO#o9N=L-~;7nx$7j-o@lhx3ScjZr9S_ahs>hylcy>M=}wkx916ulK#Y0 zIkU`wYY{_+R5n2hQh%(2T8v^FhG5uFQ6nq0q}j%o>gR79dbdu)Y&tYM(+`i}fN3AE ziRLmi9}s>=dD&E@yVR_GCEc=8@a==BrZ&`PTd}1}1OqeeGt+Rj3Hdp)r~1=vP{z)4 zAuAGJ$he+wiJDZtG|zf6c3u$XM^w@yT^noOuCml^lZ{fdj4x!tMMqdlx`IAqt`QY# zlFTtqWAKsjt?(Nwf+`d&k1a4}9a~@pdA3N@E_I3pn?zB%rd=)ebJ%}6OUxf+O)Y3P zwmhIT#wwA-ReSD=_b~A!u&(?f{VH6FexrL_g1Yg_dq<&SCNBl~ywUulOOFvJx z&5PJ>_%R(UekARJAsXAM4hnmXxRxlWKpPNVZhx1 zyE_oy9kx5^MKeQVT(}RZUrN7j&tDJExiDu)yxL~!3ha%bZqvsuK$oT#AB~It=wcJ2 zC~d4qu+!K@ZOlbYNt;T&hzZ8qk;M46q`_Bta4F4=#73(EEn(>jB_{cK4o50g*-tzpaksrJ58C6Cf``9x+c5FJ1_As*gK@ra3 zLR=&U*M)S2QsfQBqSW|3CO6V%T*)69zo$^p&rypo>IW9L$`WK%HW9KscuR64P)!nJ z6|!q~e>T~r9+ExJvgg^gd}0+B2w5miuQjgf)hppgYCt<@;yM8J zBS7}(y5tISr~w||Sb%W@-1v=o=#=rpM#IC!%_z!mk^C)^ZTX#AX3uMSSFqV*HWpy*hP2l zS7L;SyJ1Kzh*@fZ16yEK7r+5q^rWnYt3?f-WV`Ose&h3#=V&~>iGSXD+eB-k;zQS7 zo;V;~q*3OoJlJD`d-UCQjES-;{Cn%|_O{gR`gXCnW)D`Qdr|r5JE~OfCITYfINGoI zMfvEq^3hA}<>R--*zt|?wDA~7x@0bL^c@*1An{0g!GBfZ#33bP2hFW) z)19vUAAZo$_k_2eAKh8~5$V?1+67Np!|>Gxh`BK`Ob>&$QSH-!Lc5@! zUS(2!dR4V;>*VotC+&u=9kna;;vl}m(E%kV_SqWX(E+Xk{yaQil>N0((~0Z$bNrrm zWtG~AWFJ%61?8g$=101O;bW~4bNGKp0d(@zX&zu zwL^v#KorE``j>%WIVl)+pN3%>*0W;=?qMNBtq&e`hEOJ2L!l9q(=Vw%humo;Adn^L9Bd(pjs+Vd&aI?8 z$QRKovNX$X!_N7Y5T)0II0gi|soYxi0VqlR7#vofWMf=mjk<_tG{|G%`7i;$FE2^my8K%Au&w6oBXiCmWp@3C7ZyeF>_ zH9-tS8Y643E`%GZR3#8okpgYoR$@kC{48tZzfM%`#2@|8yfBru8J*^UB6hFf@++eE zYKaD#mE?^nN5LHFbzKZD*M&kAC2K04!I(@*(s0Jg+shuL(XHrm?3VJxTeojT>$$H)JI*a9c!NbxN z(mAGHCl)n1VaaseA^7EE2VDUjR2IZNCW0*zP6&csE7}k)rF4YFvHhU(x{{-AIIFtn z=qfW7`vsQ~Gs*4-HFksu4|!pEV({*7`hzWPwHw^1&-~H zdrLb7NxzH39Lz(z?BcO;l(k=#kKGc_8&>h?P1+5nQ+=0BReCOX|8`{&*Dx=@9X~dX zOQ;<4lI#h${5S7VKN>dO;YGH`PuyrLFKSW_|4yEp8?ghpYfif~ujg5c1x?-Rx-%+S zgW246?@U>`I`x2DaTt)7MzTGrN5J6m(uf^8_5TzZwV-HIp|kzoh_!avteS$yZp||# zrR-z3z7(~pLVXeCh}}iWTe^}`;Mm2FP8{+_Cl0xjip0TV7VXegtk;g6 zw}HB43~-BK@L;9mXTxft?vn#Fd-9x!uNJ88?uL~!M$;9B$15te;wB2J8}5hnS~Oqp zcwEkQuU_!pq_khZe6gfoe;-v&pSk9bD~B?V>;FcjeRA2i>grMDZqR;?N9A{J)YS&% zKd!%PRbrJv1pXS`uU1U4&*1r2;MS|`qt?a-J?U2+em5zP8XHx<-&)?N^f5glXKjqr z8bPAmD*MmZbNlsttJ>knGy1Vn=~k;nx=Hzc1`&KW>b_rX@aW&R^_iU zC|clKrR-r9<3)KNHh@xbt^ThOunlU4F4L(sx@OQ3&})b=ke~^2eTF!U z!(ce8F~G0_5MeIL&;@EiB>qDx26Ka+K4zHFMY=(!smq``>%m-`^psi*>?+|6E~`{; zm7uZt4B~*pqgD!x!H&&d5DW$YYbdc%`Lyaov%zwK=Wqbdt~Kc-)279jK4@W+%7^%+kn!$?CB=tT`!5DL%+x$6uPP~i~j zGCFWaV7oq*pdaL{RSH#LHWUMJpgBxRKD}|#pw0Dq2K}K1e^D+@S*Q$raG)*5h;|$w zcml3v{1G`uJoMbh72n8?05v6`W`tj-vmlH|jF>K=aXh zR9A3^^9t0Y1!R=k2su#|A}P+}V8M9PEBK0aAm<5`0@Q;);Tdm}(WMO_K|$wmD9xzQ zGTcpTYjuTO0}~mBj{Nr8UtqhGdfU#GaI5PXxB>ZPG=S{=#8}W%*Bj^^`hk&vT2Rk* zh8qrOhZ;s&89&;0(}g+NU^(#4YQckd7;7XKu18im$CCD-9DRb8^n+IECzPO9d@>BG zQwj-z-+>B$@RS}=g0Y8AZc@;VJVAQlcho)#+f61A&2D$^8Yv*BP2)<-&z=qLb{Lltq2$kFnA+2au$A(-e0z706UBcM8uEu;oT{MH6 zEO-X)gzMmDxE_gQyci3{fTvKy^#bFJNrf7WA-qmK*L&zR+6E@Zi~hP!qQ7W9=ng$F z_Vm(qD>8}}L&A|m#+y-tN?^fXI1Q-unl{!(qju%mCqIQBfr8|?^?;(TjnFb~ z?T`cb%sB_SgIeets0jU`FjPYp;4Ac~b2V5(4MrNtfPae2V?D^ ze9*s01~?;m@Du%j@2SV=1pP&8Xe}tp*wRaQjGm*FprZE%i$tHm2QGIzip)7rQ_E|> zrL>4vM_0MmgSLP((NtV9l9Xpu&<;?FJJ%o^^xSnZJ%WbhAW!hTb1yOo-tYh#$n_0U z3SZJgWY1~ka!gODOZ(8nB|+*wBw7#lc)R^8%Y<9LqbBNxs)Zher; zHENx4aC-9w-OfIGv{4v_Nmci8GaN=0{ zvG%6AZmiroaiK&9s3WaHrqy^fIZyabrruL<49(&A^55$wXrE^RA8? z^t>k_@2&@M*8{lg0o?Tf?s@=sJpi|n*uA?R!2h>B0Q@2k5qi+e!+3Za1WE9i@KW&b z@T>61@GkI_JS2j*golWyh3A7`gil03&^<(gogOyAU%^*%&%?tU9!e*m#uYU@Fb?Ms z=EW=W5INouUL~P-LV_MP#@oSf^Z*MOfHh^^OY>kU{79(FYvQ%x`GE_v3XdkfCOyT^ z!|x;)uhTs@d@I65c%^uKl*At;I0xQ%zj$nThIn!G+PyzQZTM$+f%J?%K^G5bQIZfB zfhYWL!aVqd(3SuwzAf1LVg??dhmY_e@gwma88`e7_c+0w@KFd~2-uAu{cqVIUhi~uu<5JUwwVSf)xIS1i4LrMDV zAwT?b`U<@Xad~JTE~KY~^cW9dc~5{3&FC?~HF$t=p$vV5cRip;Unq??%<=%U6G|{^ zz*h$|aEA_X7qGyJQTO=*d;>p&tuIN!N3=+3=s-_={{X%;I6yT@`649s@bG;p$f*h6 z1RRhRsK*S&cPscD0nG5yc47 z0$icEhZlnORwlFZmVYb9N0`m>FZZN~~nI3Zr=A^!bkTT4lfsC$Yj>~M5l^|yEtYG*& zpZ1wiG2dcV#SDur4L;k(XY?&rzD1qPnlS5xW?TUS+OU?yjFELY`r$1z1BbpIcK`#%+UKLbRmI1H zKF}lQGUl+XIng3x3id>oDB%!%9#0I%=f1>KfKDCg0PWZW#h5Tx_LvB>Zh8a;9(#dz z8EMLZGyLRy!@3@`V0ua)oi5<#^KE(-HfgiHj?rZ_*?Q!X5b$8E;C-k>zvvbHa_WMC zN3<9>X5O?wEC2~(bZ8qcWptp0Z`$D=u0`5>+aO~LEFw%$m~nwKeO3>3;6~(!JZMZz zgZPn0f}k&a<}n|}oGY+I{-{6G-y#FAS9;1P^>U=%!qJbvy`;Bj?2VfE?WJ(5OkO7S z*J{H1IJIT;wodi6s5dX(lPd2pmD;;K)_~sEv6tEOvd%Hy1DZHaGHx$$9esy)(^PC? zQYkNU=~{2B3;M)(J8yN`FNjZE@mI2rUDVrSdJoOM>Tt5eyHPsqNS|()xMKgVmM8e9 zcgplGQpw&yy6rEE#Xlc6wagd1<9xzS2PycoPxQl^NAvZjk-dSWy1WRb>lXXf_v7>q z|NNrrSW@zOdJny5?dVJmJI{EYm7dQ#qgH#qz4gsIP4-&h{1&q3tF%4!*58OYVPxLC zmT1m={V7I;`ST6@8-7OA8wT9FqgP7R^c)WOXliK{O08aUfnEk{Z7m5ztNwVNj!I~u zp#FGPd3pa1Kt#T%FJJ6Zf+{_WrXAN^5}|Ev%` z0pcp{EDJT)DL(+-=tVb|{y6^Q_gnPMyMkyT1a#5Lg+JKFAtl_3%IdlpgLmHF@b}x_ z*lC4M_Uoh-&OMs1t_cETc7-?j-uND6_c^59?RvdUS>eCNBeWJ!{{vf>pWHHs5feLLWc?# zyL43T{HQb!vh&BEAJo9}m_G5VTfJ+@%g1`vlJ{_RFaXVf!pC04j@@|UV-ub?J{FC5 zKT%J06`w9-*LGVy6r=Qwr}bghAL`76$Ml(6zT^9nzD3+;Uur(2?-ReQCp-0_)tB^b zV9r_KgZF#`m@n^o&p$5NtI=Hf(}bS5n~Pg3Qns8MMv@IG@U}LFp2Y=uj8_! zDOK&L8-b?*m2TD>stB)!O8*5+ZP@+QPUz9GTPhH`qN5qEiP|SQqDs%`t%<(! zCZ^N?$6@M`R|Ilg(YR7gn849r9;kgAX*ja8Vy|LKK$X9cyP=9|kWBi9|U=gE6SWxZ|B1OB$U9@Z&)LePZh6;vmUk zzjoxWZXl9_;&`KZ^Te7;>7|BDzYL(Uvwqap@$)peS+C_v*{VAAOC00_z&YaYc{&ow zSiJbJf3e{Yi`^Ukf%=&Jtr!c^iDY!_B`{RvA_9$ z&fBtgYbP#naD>}fr6I#KDQCoWYLrAyY6G32BVZy)C+99qT*5M*z0SMr*vl*A zT_bNoANwdz+z=OPXblxziihlySF}BsE6ZSQc0`{QJc^xzLm(@o#i%5)9W_zbKKt%Iqk7T*jP=iO1G0| zgl@54l(TN7o?D?i!^jBPm31T@7|RnR!IFq{wL(iXDRwxbl)XA@%09MFx^3#mjE76 z`xF)J^dk{&7IAGTp`6o883v7p%O}rCtBcRh!JTo-C(q$y%R|!-*%RXw#jOTMe)ZnI zaM9I~;(2tPXmvJoc0$RHEDZWZ8c9YF{Zjoman{al3HK_Y%Zanr2@YtW6>D1``w*Hu z91rt?RQt!h=%oLg1(6F@fj(R?02gB9FL;@^89E8EI*ZNsD;w>1&9(-N$`kJzGVgjd zhoy0kk%^&Q^r!FmPh9qrmD02#rl$^+5q%k+ONNooztK>uhv6bn^RgX3@?NM%ryZ8A zMh2WgEVFtUYF@D>Z88(CLIun83c3sxu0ksRP9CIs--p}2Krr!sOtJU9S5yAug=s#{ z|G@LF1L;F+6-d=99qoXD_)tw+uRn~T#=rJ;r3sD+OEJd8Z6nidhis?DP24unw2N_= zxN5gHVKaWPD`i{7E0$ih_O4hO7iU_>z>BmRaR%P6nvkIQl#Y^}^Q4Bb0?#N--}maC zb8DUOaj=PCa^YVj@Uw7^zGFDbDN}1Iz|)cwXtTh8<4HTn`{ZU5U^NL^E?nNe zWL70LiqkmR#^q)C8~&$+{iZGwadNk==vKucRXAWt=WC*{WFE>V z$J=$nj#W4Z#>#HD{Bt_@6u2iVO)Y%HqOG|^9Y9Tz>^7Yxu045BIYzntUSYq{`@GSk zeDb_VG^c#>ZR@(eMOoxp)X~Hxe!zhy#!FTtrl}}q^tH3EthgSi-%8ci{jW&t-2aL& zuY^9wSLPxdmnSd0RGemPun)q~PKnDfi@H)id08aX)m5Ds3XWHVm&}0mB^K}Zh0{D* z6-VixC~EGajE5b{W0_Fnwvvgrz5hCNIhG1|MP2HLR+bJxu zD4UyjViLsg{)?B@!Qzzs?c$W&>f)5V=i-#y^x~8p=i-z+@8Xo)Y7+*VmzH#NnEL0} z$z@YDX@<$2JUDgDv+S^{Qx`?)$sQ%A?`dlBlTasn#2K)L zehTGHk{_{#+yzyAPpUwZd~uoaONI2*d!(l^kf+`w0pw}7t>U6n?>SOf-h%M=pJo0t z=|9xv3G)`s7=`Zw4zgDH)8j~Qm*FtE3>+rS+)aA#-lnN>iLU0u#!W^m<5yjsx+%hS zF+NSYjvtxSU(*972y%w4kag~+_2y<_Ug4g?lESYQzFg=jJY4u{;cJBzg_VV`7al3B zDy%N7DXcAQE<9d%qOh~@TZMgvR|`KW94!1!;irYy3g3}e)Q-zPc|=!Dc10I;lzwS$ zq~1?*6e8-9iN`#c>a04>(Rms@`$)j>Mk{zud2+Wr@6>tAd)p89R$Z%k!D`ChNb#a- zCGzFtTg1`ji37T5ny2G8>9Z6#PtBa5HSFMS>XeGT2+w0AeI)%PTS*=#IYKf*GDvDQzWNJ&XAlXd6T4YMM)FM91>6{Hj}iF%q1z2w35stnNPBSq>ZGVWFg5S zk`9tG$zqawNS2WN8p%?UWhD2Ktc;X=iL3iaI!U@nzD#mINjJ#@B)?AbcBJGVlKdl* zKO*_ZBo|2jnBh z#YoAYlKeB0KO=dE+olw=vny(C{ExsRliq>JRsB=?g<--)7vY)PS| z&|7${8Aa=MVsfgmw6IKeMhZ6gn$lx#kxnm?5>l>IoEayy&*=r0hb{NVcD0{Od;G3F zmO(C`_DfUlC#Gog_(rtl@r@;ZWFYyO+^N&cWwE6vtzE-yzopxx@=o1E-|jVMKNL}> zYD&FhRQU;4!67+?7h1sIG$$A1fKHX!K^xDFWcN<3Xi*%XMPKnKZ)%gD7{H{_?>@SPGtX+sB63qyhA3cpA_j5B#E zTUx^TuyDG@YHu-{qakTg z^woy8bmfCW#Gg{-Pv_VL5N?pHYLPqXmi<(xGEQ}y(=&O)MrD=z9g|E|g?6_=*8D>3 z1Yklu7O^LQ>(o6 zsuF7|`Y=~i+G41SrNsgB!WivIjnTGbjJAnj@fhh+vvwN`6?i)yu5E_wDLtI@5!*&& z1jKaVn1~7B!^u5LP9OjBOIpo%Me7-_YUQFk`fXjms{gM=`<1sZ`tob~`DygKmexQ1 z(vRa65ejvy*2`J}`Ki)F(U*RtpI<2R<>+v9P{m%=<5#qp@@n+eY@4iL@3exfviww) z4ywKv?Kz~&1FG4r#TMX!-Vb$0!-tf^qRWda(U}x{Nw|~6Dh-8Sj(%fnv?tmfJ*$TL z^!v1~R;qIj`3HjjQ(YgFUDkLM<`)(e+6wK3MG~U&sY8C0tuaQ-2a-2E&~d@VCY84v zxjIJfUOofF)AQyJiqsb+oQOq9F(>%RPN4T;(gc7gp}5I~+BlzJhlJUb-Kpy~9Y1wlf@8TVY7X&r9l=X0 zH=&>WV$B~-W8Ic&Gv#pXs%c5-x?@*0I~3}ZpI9d+duYq$Rh|4KRwkziKAt|WwgvT8 zAknE?Ehrp|QJ$Ex`HM8-i7EXv2lMnkP(HnHF+l)5(Tq_4G=GsM4U4DtAqP#@75)>I zPVZ~dCz=X!W}~J#e5q)GZsJKALzO_6?_O0c3`a<=s z<;<8TySdf$M!`l#R)I#=Sjv<8SuN2#WO6TqtJ#u9S(^+D10A6*N}=|YE4D!is&h&; zqF%5?H=6vYcNRQV9F-1>H?^TbWG$b*CRzz#o5W?}xL=D=tr2D0g~}RZi(xq++h*EG zg`!XV7wh;$Nln=4#pRRl%OZkT7cr5plFgKfIXW8J^l(Xd8y|rU0a!hO@yhxPMtn7K zRc+}>$v#M;2Rv0|Lc^no8hyBAJkAwML8;zcS}3#dH*R^|@C2vGX4aOe8KN%sK#In!rnD1L8|3xm0D^RK zAg0vmEA;X7l|Y$rZ@TUHMvLg9Z#MGJ^-WWoI_CYhz9VkOH|m=%k=8^>xN6e&6}by*^ueiYmi5{IwPon-B=AiTuVO#PN2e`m}%S zmKx?q?Whp<`tMJur5l!tOzdx^A8Z;Q@P1-SoPKVR%hi>E))qzMSzoRMwi zy4az;X4bAsQW)Q;sjEmO#_Y@|`lm6`{cZnQreP{-)NDz=Si%%ry;e~Q7-w!vPujvd z2&oP~i`dZ?=|WqHlopF{uff(`a(yOZAT7VExLB**hDUr7Io-lO`ExCSmfyr{K6{Pi zx>4)RJy1uA*r{_y@l=81n}YgB7&=@lR&F;cdS+SEBH1WCu^WM3)>Q1)76T1s`Rqq} zpzkk8YV@mHgRi39bEV!?wwrHb@hchD2LLtZZ~njSy?t<%SDN5=^#S(^gp6K;Eo`a# zb~hU69-Dz~y9akOJE)C&Ai*}>#AKkQyn2|7I`fY zIh{OdGyIfN5j9opIkm3&UsB=b&oB~@YxUirv9-COR2ogb&SFpPXg>B*sPU2At9lGK z|7Y!m#~wWnq}Zd{rUZ&3vDRnmR~iLX^e%mbYeWAH3)ZF zDAQPo3PIk0A1jy;2~kQ>iSDuu0&<8w^_dh&2NtED>NC|0&rH8m%0s0RRi>B#VoE7= zYKcZ?gc~^r=g$(HQ_Br~LgOiobrot5zm$WmGqqV`Yf4CPp2M%oDatE`?$8)WA%8X- z<)IX1*wFok2Dr)dfSyM+rVNR4sV~6SkTG@6;0qd;D*xTz{;R+E-!RadAr9#CNm(g- zOnsp7p~mItxgnjO-q2E|3nXqx&<(=%gDFF@Q#a%s5h%(#+>{BIDe_bX6rDld6CAmk zx=S^#Wq=u!8nUU6VJPxwEcgh=wOTpaED**}h6-%j3d|2SbK234;WdgiOsn~wUTikW zGIa;;fJ9eW1U<;xsukGu1_tIlntVIPbl=2No{(wzU*Z0u#ARjLQ+Jx17m+S!%ebRL z5S9J^)0`20nkwd4A>8qTw^6&4r?^q&I$#m@V8y}uflhzroM0#+W+a&3b?l;Zi4!7}Wpt;&ct&>2;q|49V}M4Xgte zPh5Od=Qel7Hppdt$gVaOj~5h0vn3~{cYNDJlgGnK*frNZeo;{JiTM&9jcqt_s zWZFD`<{e~f&h!vEWLW0I3vi=thdc7>GEIUftf>SQA7MOE*sL8$3jYYAb<7suU}eNc z+m7aqm6!R+ki(*boED<5rdBHa z501fDg@n%=d7-O?ii8)A#TH#@39f7w#7c39s+HJcFj+)c*uZcoKSzGzwWYGKh^Qq+ z)MkQII(ek%@*nMtLcBGFQQl>AU+UV0#jL|03o4X`$P-(nc9NJ&fP_x~;TwNrTHQ#{ z)gnD$&7XjsjCk;)38F?_Ei_%KW%ycS;m@;A$S@=lMCwSOSCN2sg>q9x@omkq6fuY$ zqmeBFLc?BJNR-@$w@J-|f1po@2KG<$L$ zY%_WQ@r2e&+97;HQaIuyfPgLl~!@|9Et zxwFhE!Z>mj>rCTp8kjoKGN`I) zYPQ)S?!vxI)`B_yYTN(u;fj#K~#r0G3}=`rt}#KF?0y1e-bNv}EAz<|0R=n?;SB9M8J) zNaGtUXl*KJEe)2PzFq0G1>>GV12?3=SYAJ^swQDu(rcsPTkT%$&)Xv7uO@$|ZIjN@ zxBz%kD&S>za?zfpykGt5zyB58%=<}6eduG|) z=Iq4p%(^HF`~S%F0gq$-QQqMtQQqMtjUvd~gVTNiHrD@R>mYf;B7l998dXQatbh$nz20l;oT7>ovS zG?r4cGi&8Dot61qrl+0yyl?cQh$!BdoV{}u<;!Yw*kb{z{rPC?Gbf1@y(4y^u!D~? zp&)kVs4aH5lRKcxSbBKFh`6A5U~$%y9*c0gcIJaeVj=j`7Y6VJ-~_=mA~X%>dbyxnz_%J{Rw1W zI8s~hx2+F%L@f??K*a_w;!6_yMQmB|@xx6TMJ};`o3823Wuz#s2)}L0&VoRWk9x&A z-Ei`@UdE*9d%_NpXpg&8bAQNzKQlEZR=U)JxHX-v5tMuzvi3H>&f2pxSHgur3|T;J zC)=o(bE;UUV^2zlOHh_*lo@n6^2FW zO`XpiMK~}DqgG(?Bm)_x&BViEGKf7Xz0-eVc^oXZw>e1rVvr_$CM7wSo#B}gfKL+u zpOSV7-GEZC*$?KaATrZfPwe4W5cNHjJ12}Wl3b$iB#LCgbFK$e`4vgu?wxn(dwSnj ztF8A5p6ygrQwGw=dRFivn0l_!C)&;&m5k!ehB2v*5|yg5JJtq{DhMI-NMG@G$1~@7 z;Ji&@olU`-7uhGT06$_yi4iSuuOAhAL>MA6xst_Vc;4c!d0g_CdsE#xAxmEj zBuSzO+0g;WGN?+2m~^EhLSz9agRUZ8&Bpc!i6S}z78@MVe?njV%=u{f^Qq-8WM_C% z9ktI^JL;2yQ;G{I#l`FlkIPPnOVP&;C+Xrax082*Q6RbkP&5bk@&=0+Mjj$-3--Ve zLR-Xj^R!CTNxDmy&`Yq;%27L{Z?F*sopHE?Q6Wly z$0t@iCOg^>R~A7g`6c&WNiR#f1PHREq?Qve9Em0I0ve=TfwC0GK1RNe*lCGWld&os zSzAF$plW$pA&yKUoRqro7wSoNyvLi`6hF1dHFo=2o!dl2v#^W?fBlT=Qbb*Cd9q>o3b#1gmzI7#4_LzdvFdPL^?W z32`f>=nD+liDGs=3Myg*Y!+v4`=X8v6)30}fQv#AgBZAuei?$Gkmr~uYa0<511 z)=$W$l5ztlcZBXI(i?RZ)Wo^`Zpgu>+Ezv`3YTwY3K22eR9K#o+m4?kdfZlTCgA}R zWpMX6$FC^$w|P}Ee3#p=F%{prgt*QN03o+^>9sOSLKP#F+h&u3&}o12ndZ-l%h^$E%_k2%p@Z~IkF4mRdG;JFe2XNk0x>;Yij*)wGU{wz8P-xZ{e-POy_Q5#{#sRSWYI{y zrGSzu(9y=PP{8=fh4cokcqA=1=p>;X%QG>VI(s0Se%0q`NqTy7|5yXH7J`kXhtY zD0qOfY=rzt1u|%%rYJI%XXD7Zr{k-D+`JI7;`9Z4X)#4+0yHCLQW&*PMFi{hYD9Q7 zfUvXl+jaT6f)Hi6=}FlWDI%<;1Z38DTe-wEh&Lc}kNdg6v4w_vroT)?n%7|Fd_hIj z@K8ws3*e@w_;eoA{F2R`Dn4@VX+yp_d(KgDdMdf6r(hixcJ@+dHocK%m9TqQj%*4D z1eAQdw0k}2iJMLI<2p-QZIfqG@I-%S#Fe4W^rvKJFD2M7rNn17oM5{j zZpD@7fc3O=-q_gLiJuw}#*64s=~TNrMm;dLejJ!>u3}85v3z zEf!W9D4RYiN!V6OT#^8uksVm3Elo#!k}V;e09zXz)6~=3=w3v?N(8WkJuLWia*wvn zO&pgsiWD2ot%s5*aZX5&95t1m=&r)1Oc$BvG;xlc(Z!qV5z9bPi7BDC7Gx{`m9a|v zO;qqzKV^sb@`{BbU4_t^XAik{l**}i;o<`O1Ozt69c#riz3m}7gOv$_$4y{?vgxUq z?ADmm^fqcl$^&K?C`eQs9)Z@JDTV#j6cOn)uojUL)}|B6Xx52yK|5#By^={=ML#KW z(2v!XdG>YA%z)8`C8j{(j?V;-T;p`3QYm}dXvbWsG1{@4cs5kf9PvZS_UWt56{0wR zUe&m!aXm8jyRgXkW3vlw9(WB5ki&~YYH&Ty=r{4s-sC%@^k#^`4aL0a8y&#EV|J`B zjE?DX{8I8behH5hl8sIjQ4VWC87%pnSl2!pKIAfb%%IT;LJQ0K+%kR*3o%nrSPaq< zL8QVyAF{7>wfSo63PyM|76ZxkD2s!>KFh0o^fRK-A=9_M-1DB}Zn%wZ1SU{LR4Yhi z92-u^@ara-(D4BxEB|Q?VFhi$+|O0h8E3v^|XF^&h@gTU)AkI|9paKXvy;W5U zF>(A#;BPd<0xJx$gY3elCR_5$M(CDFD#@jK(9Y=6Jus=%J`;rIdC&Ocw13rbW$@9n^~^B zFtgU!>nR1vg;95bfN05jTC4EDWX*b_m?tcW9c32!C^UCvGfd@lwvV2#sL*~GMvxsD zHs1{zAwbQ?enc)0q)FsTM5&Mot8AF<&$DNXP{9N~_Il_5p^;l*g4I$@-x|f|j(Si;Bl5Mn zmM#plObqW-9-FzGM)=F&I0ub4vaBm>?vb?FtYKZj{C&HB0`M&L(brJlRD;vn;L-d) z^Wj1BdrR4H^-vk(HvgZfr!@Z`8tChVYB@E10@CO!Dnq0O# z8wUQ4j>|i-06tOUa3m~k2qyW4kXb-dNEM%9tF)uRRSO9(vG>^{RrV@VNU<&D8?}GT z^hfF?Rdy+B9(v=+K%2a9hsOes?OM(MZYCsD>f)%= z%qPZd7M#1ZbL`-Gh8(c-qQx3f>PT-^uEMQgr$6OGNsJ?ypuAl2c$N5Eh>&oRMZAGO z;w%i;LU+(&=gk*t0>0eEWklr_dyF*W{P|G`acM)(I$_b8`IB!|3lJex;qYJPEj0YF z7$_H?4K)csM-~zTT@QEEB5TR^InHIh**;%5fwVE(2SP?qW6ioFxF>tsVEUte=n30v ze}V#PrOnZ_v8^k(CgODJ%2owC-x~fOR&(0ge3{qtRAp zcgQ);#$FDuaO_VZ`@@k(8#NO+N4so=c$)jejPj45rM})=&tv3Mz_b04!TFTi`G_3m zk@ZX`pHAM6>Dk$>OqaKTKjGX*=R|69kfg|o{Rm?S{tU{iap2X({CQ%e1xxaZWvYX# z<8?N6VzRR{OqE&9dL9$TBIsZ$M!#Hm4H56`B~dqV9n`f*uyCFj7tT&vGJ@j4+a|>l zS)4r(Q-tj4`~^dS36Ee*z_BeB?2m=5Aoc3wbVN)w>vQsP23Sh5&aTXHQuFsFr%KyIk7&4Q&Vy6 z8VDUc#&^YBgdVmUIdTa87~rI@=hKV?fhhM}>_~*?#BBu=$Q{5|1~LvlVd~}p>uidD zfP5D+27|;XATq(e*qE&?@;HY{SR_Me*qlh_zKl~Tuc88ZUYF|f!kz#^!uvP?GUvrs zbo4-%yjUUO?74)b&01LqVH>HN-P|KvYf^3P`e_kZ-#-~5w* zdho*aul>D$^7KFN`C#iK{oh$KwzKlnKfbi-N2|ZG^zE1atHyuy_?mxs_3!?d0}YG+ zlh*(AAO5c|{OI|Y7Vi0--+t}n$lv=L*ZzmU|L^@zzx&JW|KdMrn&~()_SirBgSYEn zsNsXGby-=OP7m#ztSIpvyaH2c>x_77vV)%*pZ6!^0CAL?vQ9Y3h;cY320!G?GK`Q< zq$uLh@`~Btz_*E^C_*--*Sd-@RLPD`YHS9;l=Rg~xy(RC+KB%|ICambbFkvLu-q&J zw=LH^Mk-~vJir)HzS=RrjN*n)U-DU7*pBxy?7BI7nYb+mng&_&?8iamz3pQSEj0C} z;l5oA{N<+3Y-u*uvZA5%^_TbdRaXqY_9uPYhyQTr?j3z2f3%{y_s!kIy(86~yY~+F z_3kK@zSdCcjCjuu?%O@QqPk~ja8KXR@SC$SS}7aua_|NdTdQiFqW+^Z70}bkRD0|W z27w?!~A`-V&>Is^k%>unUCJIc_ucq3E16Gs@B(GaOaNu z)S$ggf4I>ZnE)YmZvjaO3tw$0Jr+4^9o(>U`|!@e-MvF^u9&S`d%0{{BQH&91M9aI zm&@dEXu1CZT98F^n2R-;iC}g{`;Q<>EsIiquWxu0i0$3Iy|1p2W^mToTAtULjqRw^ zavNJ-B&$oc@|&};t!^m&rn&yKZ)h)oSBHE5bm#6js=d_}FYSvq{kQwx+_a-__wdfw zclHgfD3yx*b`1{oRrl`c+fKmtB6+D)qlg!WcD}K5ckl4v(3X9#4eZ=bKC|sk_lNeO zVrx0JWpTO10~!-9q^neq{f$wN1+?B$2s)zUg$Ps1#@Z1JS(h4Hio~pdTgJ5ijV(i( zx37&IAR+xG@{oKE1euJT&&gzpqbi{}Fwf+uML-VTSO8JvZIL41jy$V)2Bde|NRo4c zC-^w7h4`re`S-r|F?2W~MNcsC{np0(y*htCRasP?X9**z)D$Zx;E9WsW#t7al&(Ob z8bBvTBIbBC&u5qpoYn&;K@~|ri?x^!(@nf4d+WgRhSFE-n|9~!YR}%?YgRqC_x0KK zPY_Jz`HtrA1NN-!P^+J>SeYhZI8;KqYl7Q#E)+{le`H+gySJV{mBa zaR09RME*uY=__+0-zQGd|DT1W?Y&QU0K1MVRkHDQJm6Ejqyb=j510kb;|Gj(Xfh%n zu-`9zvZ1uHz5#1}b3@3wbIz|P^FeS3d6IP~Jq9W_W1=qUF`8a)q{=XYiYM*WYX z9j>z~520PbH44co2{Ds!F{O~am(OFNB?OT+CTz^nQ1g_TwLMXOw9Qq;LzD61Lo#MH zZOWyXbf`nDLt0bTN}1j&$#iDa>E*;fmvyBZJ;mJ z=jHkEpO=~X#;a*Q%zf-h*P$EQ93sY^3=!))4W(7K?u$cjtoi|h&Gt8+?cF;((6{R4 z;T&13Hods&hdT#`A=u%ezFtHp85@ENOc42ju}rpF_^}lv*M!+6kRyg{LT+4Pk`&|G zgtE{?rvu5$Y{)o|>x?YYIw^x%O`b^cFB<^Yi(W_<>lqk$d2jCNjvx!%-W!bVt;8m_cRLT$5vD^{7I~#cz;6nCbzn*$U z=@LCHZZ89N3`-^1%)uMxa&Wnp z9D8JkUlQ~lf}{a3VwinukIldZYwDJo8Xu;`0It_+u9y3w^o?<@@q6kL<>@;6C&tjBM_WZ zCKg!jSCDxVQs@F|@FSc&$)6(mX1Ed3vWf}OAJ8N?4o&**&JJGwO1V`IeDFh`L;aRT zxglcdW!i)9$0XBlVt@idSC9&}58#FTv0~?rKknPk(0I>KTgWhm?s@$WtWKwA+(Y7Pf|z3Iq5UDm(bGIL699{iDK8 zW8$TqiPE4uH?0_1K~_^Rl|vWw(>L1pBFw#!e^)$UjBv^D4k2@FnRzxb3^-@o#ClTu z7@rleurS85VhNL8hc*TlszK57+c-nk6=@vw~ANvu#1(VfCY3g#A@0)pr zlW3wN9l8>p$^0$+mGi72RA-EAlQ>wB_nlP@rEkVy)U)GH z_OXJoW9!aceGK3T3-=YNh4l~EKXb7)p+v4r*FJPNGEC+t(Ro~%nJno&$>0X!!=pJo znwiR0L@}@gD3h%$S2I#|g53qQwfWoD(13%Ug|V`)bf6OlyDNz1w8lc zhK+S1rnBzJYdq>)Qi(i)xWNxNQS28$}PJABy;nkRQ)uJFVo9a^XRErh2wG&iAWV7$W{ zZ6nzHvg|qALU8aEoW%fm2sObQtaTnjgsFa`+)Cz@8l?e1eg1jQE6WdMhnV;7VL$QU zN5l*pkS(e~wJ7+T^+MNyB1b=tQd=o91K*>c2`CjiTXof8Dcs$n?ozjRRs&{KMA*jY zo3b|i4u7W9lghO~aXZ#gWNT%9P=~S_zHXA|u^lzQ>Z>!>YUs=j&u zT5~bQZ0@Prwkx?FYK64h*vAhvERpPcSmoIPheyLIZ$9ev{-fmT7+~p}t*% zKkZ|g*CWsnvHRM`cD9f03ejPa`5yjoDI!-76=HRAf2JBiG;g)MkllMJM63>rOdrJ8 zoKPMk84;5I*;i&QV|!{$Iu;IgJUhrtxmaYlmj|s%v$|(o2WAVUI|{d7Ql_Ko_sdIb zKq&5Ihi^bHbcvbPZ2D4OY7keVtUYxN{;hI5q~}H(iYnQ04#hJ5GqxWmlGW^0BH2vz z6*Wv8)PgJzf0iv<1{yfChz?}n*naa`7Jv!xBJ(ZA{=*+-hi^j3d6WmeCHcw zX2|xbr~tDI3%7&$m!mVt=?Lmkz&cDpN$jQu0e%haY~s~>AO{>!F}9!1ov^{MA;u2h zqAtWGH^+}ChcU-BNi=@|objiFS}VRN7=U_2q_bOV4bYR^$}DFuM5NR>f_U~a9?6Nk z!PeRpGHwQx=S(!#>_nx`$Izj$65jA`5Mk}24%Z)x-aht9 zcH~u)n6RHL6N$jUH)cmR=sR&O#)m8H&33W~M779WMX+r2hF}#1!Q1h(D1_wL!K_uH z8z9Vt*!V>qfjOWWqwwXgn)N$XYbr0nLr;O_!bj0cH3ztdOzbe zNe;1RJ#kUn#QT10+Wvf^M^qSoyP@>$o}aQ4Q~lZCP;5y2jP==An|z^nS6?m~?}dR? zSyyur=k>v%w7L>IbqCV`$-=s;*gO&#mPChQ>ajAilF*82@FG0@5_49qmRqp^9ubU@ zBGhn_n*3NAb6=H|j#O=mM1VnH{gyj6k{yZ4kBtPH)F}W>U37MMLyz5u9VvjS+U03J z!TKBJ$Lu!Q#AdwNS>~!5zDQ>F+eQnI=pEURfsfQ1WB5#KLR}EZtL!2;Y7iJ5nQUwk zXr$5bvC$YnBZmS8ghbVm$5{Ud@clsLmM0cUAr6n6QZgKCi5d@QNBZk(JkyFYN6eZK zcbHQpRgVnZoX)pRbFUWi&-FmUh9ks7UM$?8a=(;@s!Nkc7J-FtBG+Ra3L3b+u%yhL zNVH;0nlaxX7p80E9-9or4vOGYVwOe}*ZgB1mfMZ!mU^T(#?fL|&Gq=n@c)ocSscVY zQt`3?oT@q*^AqnQ7t$R3L@Rs=|EC!S(x>07ta=#B>{9?zw&&p^unf?&pIB`KeKOR63@kwg)yC*XBs>` zXrUwW{miHf7IE}~H&yxziSgZL{JGpOVgpS_;P>Zf8@0a+eI)42;O8!C`2Br2S{Dj@ z{tKTDv!4BhA3KwRn*YKJ%(fODzQc35p61Q{cQwzIW|%znj)>?;w7=UL*40`UhxMs2 z*M+%0%q<2w&v>^(1HHTUchSyhe|NdYN{z@WGD*p|LMe1cmyG;|hl@U&FtVS&!V-Wl z;c{7V9=@)3G;zjSU(|;1H2A~GoygP4AEB1HStIz}iRvN<(5j~tnJJPhqLT?-EBAsf+qxPdLL)P2jd<7t zcdQ+V+?EyPuTzf4UDV@e7E?Ajp>`2Y>qx%cFlVztu+Up0J)>xBTH&^)+hBC&-wuSoU{?( zT`-f28kaQQ)3_`(*hj5KYV;N{7-w@>$vDUa4GoX`=rG0m8Xss}(fCl~s>U^q>oy?E z*Ew3ajnm>i8Dzd*saM}H=1q-{G;V3!*0`hbvBq8UF?uw(=vK_K?u^@M-KPb?s=X+t zcv~E(Xz3_tK*6YO4z-^v?orbU=ft(Y`-#S<8lPeOqNLHRA+~yynLOIl9vvA!`6}F!@1D@J|xPm7iDFS)XLVY!)G3O-$= zdBTLNHJ;K~tFcaFy~YNOjX@%~iJErgi%o(^Edf+6pP%S(7MaE> z-;W`XmXFoeuT&SZOWB21{@iJpx%IDk5QdyrJ~Sk7Gjkz3T44>cHUcH~NOE z`}R6Ngd8 zNLu_e+pY9B*l8NN66Nqk3QHEPwK0_PI)dY#Sgp5XRE(*x)CF{A>}~dU3r)W^MmzJ5 z0=d?p+yc)|Lt8n&SrnDm`RL2RRaws?;%}B8Gi@Hqy{vgwwHJlufq{)}!v2cJs~S5r z`ZWeL_Gk=ijA-oF7}YqSF{yD><0RtL7I5+C+9&^_%ld=YD)x?0$Y#GTolVu(FsRO6^C-{&b}U^Z`W{$#l=uw zl}Dl9yb}ph!Vx|SyvHx3pl_5p2O#}Xo_R}tDJ+@pf7bMpF5b~598%=SCkj&bI+4|)x}$aP*5K!IK#>D{}R*($0L#qv|B)X`9S zI0EM`qm@d<&S|k37Sr1my@etYd7%4&hDqNLd*FUyz&?kKnFd0oP8ZXU4|LEk(klH{RC7^WqJ!AM)jJR7%$g*D}eCB6ILq#i%@c4jTk;_N$@AChx3%8&ssmJXqg zW9xxzseCh+Y(l={+%|)ovR>cH(xmX;-UcsFK-7r@nb(KGk&z(DA(Y8-LZJNpXyKIx zGAXx;G&Z*+ZgAwFz9;O;g_OlWI6Kc-xDc1WG$5-~m#3#>W=Qn^;O0@l2IaaCQ!DeF zr=>BAnzmFPDlf`&u-=^DR&Fs@*y2K_ZXOcooUDa?FAlI1L4h8JJEdda9B7>5r!ElW zB$-nTh|YN(@&Q&Sj_;sWkCZu`0dGEoOxR8%UOOy1T~%ga{O4$sT=a5%oT-+9q|GxR zbB1>uMfQriT;Tymcf{DL3{kGk3Ry91n^VGB5iLi6drR>+5v?%w6h^rxg|cHR2B`uN z1%w@Jns7eBRQ+RnvPycLg_pqpRWM29Vo#_CMdB?*r`W43(Zp7YG>Gb<_j|`M&bRCG zpaWq}hIus1sW8ulc_GY;VO|RJy)Z9x3ZJ`eKrUfihV|XMX&wEvZ)6X8Z###pU(jJA zvnyeK80NJwuZMXf%$u5THHZCnn0Jf)t9q6&xQ{}1^u4yvjmM($rP8v7(vm{P>K*u5 z@0)w8ulEk@MR}>F&Gyo+-hlzM*>?5q-Mn*ey`o&PwEyGY-8%;Fr}8K`C)S1;GwBoS zX?pZz;tQ%pY<0>$)?{N7EJ>Z%n9JtO;b?8>Nh+&6QbrkqpU&_~)KTl%NL3J4B1!ra zog|M)Wa-eQ#M!?PJCieKY!NLWoRr3)>l0d1Dd9gAJmJKYAO9>^%;u@5?h^}d7WGa{ ze!rpg-Dg2j_4oQvJ48?LrM|u$s1u+9-CKRBZ#!zCIfC3IQP+BQx1><4ty2g5t(W?S z&0#hYdR2>H2C!+)`)gdZC^kY)oQsX^)3Nn^)~_*I{Vg#>}K_88{2%KgF!`WoCMt##F< z$);kCUp0ktrOJu*f!&ve+m> zYJy{9d{@GqEl6!$^H`vq@5p)NV}}SXA9_E}GuS5A!o7VN0LPWWF9-@NM1Q&t2 z(|ht__Rjl}2q+z$%vrD4#|Y6OhC2iZ>I!9H@lX9eA{Wloxpdp>yez8y7awX|6$$U$ zavhlEl3a(4nsW&f%AHNIANaOP*4iB1U_c6wCi4PQSFf5CGF0Ry(fSb1=8b6cnsb&s0ft4-MJvjPy)!7IbEiK@D(uhQAlbAuFMDR6IUE_XPqc|Dn|6TpXw?v&fZ>b z5+h6KIK!tFhh_PgrbQ59R3W8vk<40K=WRcb0QI&4X|<{{Alf%_!QCvvSC=172q)`6 za}B@Q$(e*uz|#W8d@)wdVhhx|rHu~4QScuv0THKfBeRpQT1>a3pAc_-A||b(I#z0R zCHLIQ1XdjGC!(Ek4WAEev`nTwv;rVV{^J|@z7L0AnWee)HHq_jbaj(oBrxZEe8=r9 z2L9k*42m&zO9T4bR{}Bi1@oq_ynV%f6igW(4)3LL-o9n~du`guqGvD_V67oWsvGQO zOA+=a9*Ze#?M&8eK@2^2WZj*Lz(jp#htF&RB+|o|I#~4y=xy^zqsjjx2818zR-Hyq zX^_*jv738PBt#x1aTQr`9a#i~OA}b#lk34uTlNksA4KGB-QI~$P)@FA@7!K3@N4*f zc-Ah~VGp6hN1$}1&`g6nE{B`4LbS0gJM-f~5Iu3#-Q4~;Z+_tO+@r*Zo_$Yu3(~qs zC4tLME7*yey0hnkd?D;x8C)fCU`UQ_=pf(Q?D@a_fi!pmE=5nLD$#7$^Hw}oie7w` zovwmawuBU^?BhX=P04%Cgy);ULYu#69)T$B<5W(>ig zve?!HQV=b#CJEwb3D0-#ES4h*1+Jqk(#A+;pYoC?I7w>!lP81we*vqA!4>=^y4Uqi zl}uyj#8Mq8W^($S3HqG@Cdg%GeM9N{t~=C!cQUJQJ3D`QV`y;Sp5N~qN+0*BdW+`v z?%`5NuxK*wVSM{@M5ZRUoHK}w2of3NU;uDSbdk_u5vF5D0qgXE(0Z%y>CQV zC`iiGGmT0I(TS9jM$$6wP5IeJ`34e*_;Yh=2Lf@yWj+$`c?zH2SkNuC~8 zg<9MQ`^Co^cf~$;Nqwct3&s!GELNjZ7u1tAA zu=bv(R?z(`lSeP=@tZ81*X1%dv7pw)FG_qhJ2mH-o9J`s%i|U$!gQj<+`E?8!s?>3 zzmuZ`9M}=hDFvQu?O;YkBAOW~b&nb2G{@Tr@~6ZUIGsm^_PGVgbngjEbt!?9bviXl&F#ag+7;^oLxmMaeL| z5wMCdybF-eXQ$>owNmeoxIAtFa)G$qdv0Rku8S{#TQs(6Y%2hGFFQ5onVZMwaF)j{ z04Q*ld)E?Mc3sr0ym%I8$tDo5XuMiLawR)8=c#3Oe^lgg3rGr7d`YR*%Dc7H77 zQHxT)#bSo6yztJ8&4HcuhmMgE+}&miCHgp`m-qhR&D))<1-{Td^XJDs3*Cf5AjLNO z$0TUhp*~05D9kcF(gDMuPj2%SqvhSFSqh24vleAGqQc94pGr3}+!uu9$;E^McM*#{ za0*pUnawhU9OdA8zYv-5*^;-zZ1fZ@2kMJptJY^$vkT2Cg@DdaG0gT+(+lgN|XowTDUD?31TK$GIQb= zWkE-(DkYM^k?&we?&iJ!;c{DE6e*E?Rc&PDCHIrS!c%YfZQ;$EmG$K6TKN6)cN6W^ z1^>EMff#iZv#5oOYtZEBW#0J5J`(%8LHU5vdku}vg>pK0wz8# zd=_XVS7V4<1DXDz8AmYKzKcUoTf_Ap03&MryG9FDm|I?tBKwrU*-nH~nm&9-z^=4S zQQsPow^6(1eLW)J@x@WP*z*s#L=yQ5c0#2kFojm}((GvkTji^13N7>kArWsdW+dco zesxKNjwlz+mglSGhoT7Zkjmp7?VDGi_O0iOLpwMOs;1~NyX#q7U3+%$^W4#vyMD0qjZJ*PrLG`HpVZc^s+>ACu%p^H(C4}o+x|;v)d0EP ztY5^a_gBeaZsgUl`nf(|;uL>;OHm-H7BgX%1t}~se)9o8D+6$a6eUM$ExzOF>8G5G zo?gonmW^1VE?DL~0rMQ6NWOOTQh6PeKug^_?%m_#GQeLG<(>%t8VSBEDs*PKl4r-B z@`@naLaeAS@yqh~zY{MCe2VXjEdJL(P_2y0DuuCMJ5lACV&I?C2y+~@yla+#E|z<^ zMZQ>f==e@v@~_)a;8!36y{JJev zt0b1cCMo>nK6MS`>?;4p|2wo2rS+5_`NGof3uC=!*D(mM%1j z(Fu;@F&4DLfZZQLT`4##SKhLuiasrZ1vlz;EpS_ugy;loBLG{7H49k%BPPzY2)h6| zouzYj@hD60Z>nOOxJi^vku1Kes!He_t>f@) z_PqQEMUDu_X-$8@%5rAqlj=}Qujf=0QNbYaYvZ3FMoOuhxr6MP6p$>SEaJ$sE#?yrpV4L$G3EFs*Imkh<4;dwwRkR38bYE z81Ys?A@uhU3zJ?S-U}BN>wj1y%|gD2P?0bR)wx)jQZJm9h>873dCBME5xs8thDgiG zkKQj5@%SJr&pg2BEI;-I5s8IfVlA#Pe^puh9uQ|EVDm!}hcKp}EQ1vGK>Y>Ld{N_) z#(NrjuCY?%360enPid^xSf{aGV}r&=*eDcB3SosYAfS%ZR%})D)tN2W@bkuC1#`$s@cjBAC zUtYoid#$uQ-B4PsFkh&x7Te6#4WB=xa(14eqQb$I*~~zEVURR(l#B5@$md=hHd5j; zzDnf}8cJI|&NGhk+&+MceRb#Fy6=jH`hK!+=MZ|Ay?d)_bH2_gd~pCThZS$kU)W>fvH+Cc9$>=J`(D{?W}r1^JxI4H>G=#mSQ#^gA%%clIk@+`e~@E%FklRqgYLK9QCx zVXkLNn&T@mxy|@-yK?;E27-Bde=;xmaQ#+D-I3MoeP9sTnGJmOAHx6_x~YcHjrI#C#T@Gw;hvV1b<>{dLw~b5%sS@c z?AT3-YVtyU(gfPFe!Tvn6M9PUFoX2RaYpj~D8O4AJy$7!x#c2p5BGX3aaS5G5FXRoW~ihXU;#+wEmSXWk=wGVZn>;RuB+k54$` zy{W8`Q8yVj6#-4N*Zv9zs_9fDAo`v0b`VQ+nTsDl7 zTD*|(xMSU~3%cgu%N@s zHBqQki)>opx(B>9F%n5C-ah)lg6O}h&XC9COg8ym%A8w@CqD`lbD-P@G?N^sCmm)e zwx|Vc1U)k~OSsq~>>jByIU;hn`IL)RDIi5s&~3DrbJ;3-nqg7&1?wm2Xg#(tH`6kK zi3prsPkIZp1UuyAVv@N6<#tZ=+PMQ=_`%&f>Xnvd8-bX(m^i*p6NOyV1vDZ|WF{2m z2;>tZ$V;j`_(4u_L6BE!WGUTF-yzO%SSKj0r+F%#5E_#V0BML``!&psa`G zHiE2fPuOIod3uI*>N=B}A+(Bd0dT6i$G)85&g5FobsjTOlnpsKvcOmt2Wl6fB+}z{ z&g8J4Odh|eYC2yPr=!fQ?k9G&px-F7j>W=Jwb}(7iORzPc-$KY@e+AJ7^M2-WE92GvO1^BDZv{4~je|0YjIQmnGn6 z$uma*+|g_Dd^UMW4Kx{15*a+JJP~2%Jyb|Yv~pk|6&JZpeyZM;U~Ob13G*T#C6694qAklYlys&xI(WMl#81-wMaONkRA!m)N7C)Cj(VMCZ^aXoTM+SlBU>$_eaSmQ8@){|;$e5Sc7cXOtS+Ec^If)8lQV}_ZJel*$7dTT;NT8t$vPy7#!FX=?2Qx~VhH-)=v5?{C zOK`|&oD{`%xM(Nq#+D8g&U#!_=8D=R>`m;+LU;!Eg2@3+eA9)-UK`Uj&zEJrf+HLG zfT!Y_ZG?u1H4#dw$dRF3&s&t!X{STj>*frr7t3F>*k`htt7-stMK7RZ@_@zhYdJ;} zUNPyREKp?ohdAJi)ph7id}z1fwp)yoz|HN<vZF;k zXsz25mdSMdIt?D@{dN<_9T2ehj28*VsZJ#eJk;t5;&N^w8o#ou{F{N`%h~t=&QQF- zNl5?&l_lB=t^aWjxEw#=GqG6=95sclaw8rkFplnehC(=btyW4lz1rJ~Ia7H2K*Ddf z)V-%?f^~SPF&CC@@C;%RIlUp73AXHaev9#BdIJRIv1S{De_}0D1)s=Qe`XGZrM#7) zrn%g9L)++?^7oh)1W|jHA&9|+NjBhPLe??v6oIM3`1_I&m$4c+?y6L9P~Q9R(paUt`O^?Y-*8oa=dq6xYR`JkJfcH&HP!7mrM?lHyt z-s5H0PRS)L_0-9b69!YPxKy=U1aJ#-L3>=2tVcSWKaE1UBT%v}%vX@A00kk2{5^<> zHE5u8AOH7^0cF_OlhyYRV91UOv{qej$I@{78UwXA@>S@Zp7Nwtf*58PAtjc9EGCOJ@7CaVr8xtkk%j~W8Uhs2^1 zPIRY783DZbkt&*OG|VYMS!yQ4?KT4E<^}zCE6#E(Q=E*;9gw)-2;DTRV=6f~k+=TQ z!=_ltimPw+L4ff4pSV8SnDkcX(;PlWjYi{+=(2tg^5|c-KW_$<%CU#|S#Z%xtTk}BykNT?!UfR8 zg3A)s+riyr#;=EP#-5Rwd0-lDlqB)j<$bl5x1Tq13O|EuHZc%oFut*r5S2^Grvqy> zAFj%#hk$KD8Bc5kY?c+b2@CjAZ0X}QLtH-b?X`0mCv#dQ*|GP;IA{>2H4IxKcgqR2 z(y>B^KI{^#7RfYy1CU${W=tDue>ID-U4pE6%>86orF+&DC_zdfM|WydT=!twSYl=D z_sD;i0fGayIU#rkSSO&#rEuhsa%h_3a0ezs8+-TmKRdXi?lWLF616{odxV zv=KL7&ny+4FH1`zMv6$pmwQB-neT8)$AshR#DL3Ak^;6vVL#!v2|oA*$GICf2Ho8FOeEj72?_hi!pIdg!V;Y*E@vi&R>7Lj~XA5Gn&yW9r3 z3W#|ULQ#N8BJ5ar=)|kaO9-FXiUAHc5=jsV0{Crs+1qex=aB5@x3N)~<33^CLn4*k z7%;fC*IUmay3cc(z}j3+6WFRD$bo~jd1n_kFBW(84|@(CAlBM%8kpY8rY{HF-4H?- zheLSEDu@#@35Ua0NB@!!3_MyE?}-!=!5Y$f)@{#=U_{IA_zWgRhSu!NI?@`XIp7H+ zLh@&kG#Vm}UIf8fN8^)TyhQ~O1Ay+z_ti`a63K}JS!D_-v|v1iEl^PxVyiA;Z6$RN z`-pA9f2~YQ$r%l(-AsXFEw*QUYr>wstUa03=|nyvBfgv^o3vC)v@p5Zm-s zmYR(1npyg;T~*TrzaC+WB(uyDBwbKl8^m^Z0tXVpK@;~Y}J{H zD`=fAEr3Pe`U0TrudA)Sq15_9A1k6PcMJ{wY`1p?awE$;P$us?wtii?1E(H{gX0&S z$By&F$~wZ|drFlbGFw?+|HL}zvGtN5H~$#jp(W0H>6*8hZ>3Xu1Vbc5NZLINK5!lH z*TI8~i=@9N7Z4E^K?3IzAR%H>YDkZVSSi2wX8DOcvxyHS=!5HxdvKj*?KwV`9ozt* zco2pBzn~z*fP-nNE6VaL_NaOk%fc+>d!vKM0Ai6Xv{E|NNOiE&QMvIc_THG=abr!) zo`3!c1WWVJbST;$U4jMtN24^xG09GaCpOCu##)L4M$*Mq#k$jm&u`N}2=E0sKP4Wx zo*i5XG$PvF2`=|`X8v+EdK6HYIC7WvhHUgEPZz@rSAUOQWL}Fuh+&$%RX6V^WcpZ% zpi7pxxxYB=ZvGCq6=LF#MFf7Nj$R|XtxP;Zks!0 z=}E49IrF~3hR%wMrSGE?;Fo-^x1lPaHGYP%7=fJtH)_+St=?A@Nm!b(6UXlfb8&O6 z1mv{&9k3P9;aRo>rL3tPAvy@3Z_>LOpJ;rl@fpUSmo%C+1mMqGi>3b+f9u74!+Z7( zr+c;PKHV*DQ(5u1HtoJ&cx{2ZXQ=PFpX}@9v){Z!)IMFC$ED@zfT0TCda)WppF*#N z5fNF;v)kAvq8jlAlc>-laas?%Fec5)3&zNc_z+ARcWITlGj(4Z+lY;E{8e-IBg93? z%G;I4+PPwvc5fg1$5>#&SejV}+vj4~=xKSZcX@EAOw&A!c}-3jCgLn;snmJUp<k}8u7({ioF#4T$!!JKenq|PSunCVYY7R;lz(o=UwVC)mj zZt_UmXU}`b!`Vxo>YdG;L_~?{E9Jo~>7G~)-c8+#wJ3(ZvwOG^x{3ASh!=yzgbR7{ zf&^A57jZU|2OIEms&2O{cHz?bPiOZlY)sSZFJUePTW-rq&d}W)B$kMod zS@|iftZZX_iK$cC!g0MRCUp!OCml!dV6{Q-*iVab0EPkkhEcNUz#zi9169L${Nu#X zBaqJA38-N6rZU6X16C9C_sG@{wIbHDWsg9AR|uFh9*~Z*ZkVA?#+JAh%QXoJCimtv z@cjnRs!`iO`?4(k9>@zx#Y_ALaVchJI;`WP~SSQ+&2Kc^fhL+p977-SNS)krZK3{ z9Y;Qg8tDW<6?pF^VxTDU=kB}Ns%0Zi0jvWs$I<_3sTESJ+QUvXB{m&MJgN+jF5p5rpHl0}$kRkow`3}u03##GILJH8b= zZDuAoGvN`qx+)$go}k@W?PO*sNbH-}Sx``6sN$mq zEta_ib_zrFD8yB(erwJ>iFJ6?b)&^!9EA@6oo-zansiwE8@3G zdo_35^QzXxOF@79?BLLbfr00HckV9j+KZk=U*D=70|TWJ4fU(;Qg!`3IXrMaz`z3x zJix#M3_QTV0}MRCzyl0Cz`z3xJix&JA285RS`3&SrPAnJXk%hnT74gX<89=BTlMQD zR=sM!O7m0Lf4}rn>5nm=EBzSTrqYY07jSRF{2_LKf6@F`|Ek2av%-Hvsd1fe-M<^5 zTnEX!F}D}54Okk;wYM}xK08YTr9Sf9U3$GV7*Uo-s;z|f;=7md-qJAf263g|d(Hh# z=J68#Lxk)uy>XwMHbk7&)I0q>ReDVvl(v<=O4?`1Zx?@kq#mY}Qt1cy?8CLa^d{5G zXDM|rAws8X2;V)p2PsR)_LTY~UQcNY(EA%Gb=UIU6R^Jtrh20c!?%*cyf$OLk=Lh6 zey`&!C=neA)O?4hQ6qu#GkE2;d8)2xcV5`{f59$?@B1|DGG0R|pm-~k36 zVBi4;9$?@B2L27fz}K0%l}hWs^KS?^55RbUfd?3PfPn`Xcz}Ti7 + diff --git a/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs b/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs index 225d42e39..c2452fccc 100644 --- a/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs +++ b/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs @@ -33,76 +33,78 @@ public static class m2Samples SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBreakRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritanceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritanceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , @@ -110,93 +112,94 @@ public static class m2Samples SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleResetRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeploySimpleResetRoleInheritanceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeploySimpleResetRoleInheritanceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , @@ -214,109 +217,110 @@ public static class m2Samples SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBreakRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBreakRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleResetRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleResetRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") }); public static class CustomDefinitions { @@ -501,11 +505,13 @@ public static class BooleanFieldDefinitionTests public static class BreakRoleInheritanceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBreakRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritanceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritanceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBreakRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBreakRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritanceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBreakRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritanceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritanceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BreakRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBreakRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBreakRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BreakRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); } public static class BusinessDataFieldDefinitionTests @@ -521,229 +527,239 @@ public static class BusinessDataFieldDefinitionTests public static class CalculatedFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCalculatedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CalculatedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCalculatedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CalculatedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); } public static class ChoiceFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); } public static class ClientWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleClientWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleClientWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); } public static class ComputedFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleComputedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ComputedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleComputedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ComputedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); } public static class ContentDatabaseDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentDatabaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentDatabaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentDatabaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentDatabaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); } public static class ContentEditorWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploEmptyContentEditorWebpart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploContentEditorWebpartWithUrlLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentEditorWebpartWithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploEmptyContentEditorWebpart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploContentEditorWebpartWithUrlLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentEditorWebpartWithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); } public static class ContentTypeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentSetContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypesWithFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarhicalContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentSetContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypesWithFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarhicalContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); } public static class ContentTypeFieldLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); } public static class ContentTypeLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); } public static class CurrencyFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCurrencyFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CurrencyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCurrencyFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CurrencyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); } public static class DateTimeFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDateTimeFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DateTimeFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDateTimeFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DateTimeFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); + } + + public static class DeleteWebPartsDefinitionTests + { + public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") + }); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployDeleteWebPartsDefinition_ByTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DeleteWebPartsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); } public static class DiagnosticsServiceBaseDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDiagnosticsServiceBaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DiagnosticsServiceBaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDiagnosticsServiceBaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DiagnosticsServiceBaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); } public static class DocumentParserDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentParserDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DocumentParserDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentParserDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DocumentParserDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); } public static class EventReceiverDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentTypeSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample EventReceiverDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentTypeSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample EventReceiverDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); } public static class FarmDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FarmDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FarmDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); } public static class FarmSolutionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FarmSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FarmSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); } public static class FeatureDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBSiteFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample OOTBFeatureInheritance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FeatureDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBSiteFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample OOTBFeatureInheritance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FeatureDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); } public static class FieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); } public static class FolderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FolderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FolderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); } public static class GuidFieldDefinitionTests @@ -779,21 +795,21 @@ public static class HideContentTypeLinksDefinitionTests public static class InformationRightsManagementSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleInformationRightsManagementSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample InformationRightsManagementSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleInformationRightsManagementSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample InformationRightsManagementSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); } public static class JobDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJobDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample JobDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJobDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample JobDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); } public static class ListDefinitionTests @@ -819,73 +835,73 @@ public static class ListDefinitionTests public static class ListFieldLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); } public static class ListItemDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListItemDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListItemDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); } public static class ListItemFieldValueDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemFieldValueDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListItemFieldValueDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemFieldValueDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListItemFieldValueDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); } public static class ListViewDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViews = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCustomUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCAMLQuery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListViewDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViews = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCustomUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCAMLQuery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListViewDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); } public static class ListViewWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartToCalendarView = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartToCalendarView = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); } public static class LookupFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployEmptyLookupField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployLookupFieldBindedToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample LookupFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployEmptyLookupField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployLookupFieldBindedToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LookupFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); } public static class ManagedAccountDefinitionTests @@ -901,11 +917,11 @@ public static class ManagedAccountDefinitionTests public static class MasterPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMasterPageDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMasterPageDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); } public static class MasterPageSettingsDefinitionTests @@ -921,33 +937,33 @@ public static class MasterPageSettingsDefinitionTests public static class ModuleFileDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ModuleFileDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ModuleFileDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); } public static class MultiChoiceFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMultiChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MultiChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMultiChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MultiChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); } public static class NoteFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNoteFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample NoteFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNoteFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample NoteFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); } public static class NumberFieldDefinitionTests @@ -991,33 +1007,33 @@ public static class PropertyDefinitionTests public static class QuickLaunchNavigationNodeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample QuickLaunchNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample QuickLaunchNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); } public static class RegionalSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleRegionalSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RegionalSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleRegionalSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegionalSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); } public static class RemoveContentTypeFieldLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFieldLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFieldLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); } public static class RemoveContentTypeLinksDefinitionTests @@ -1033,79 +1049,81 @@ public static class RemoveContentTypeLinksDefinitionTests public static class ResetRoleInheritanceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleResetRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeploySimpleResetRoleInheritanceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeploySimpleResetRoleInheritanceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleResetRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleResetRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleResetRoleInheritanceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleResetRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeploySimpleResetRoleInheritanceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeploySimpleResetRoleInheritanceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ResetRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleResetRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleResetRoleInheritanceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ResetRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); } public static class RootWebDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanUpdateRootWebProperties = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanProvisionRootWebLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RootWebDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanUpdateRootWebProperties = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanProvisionRootWebLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RootWebDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); } public static class SandboxSolutionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSandboxSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SandboxSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSandboxSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SandboxSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); } public static class ScriptEditorWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleScriptEditorWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployScriptEditorWebPartwithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ScriptEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleScriptEditorWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployScriptEditorWebPartwithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ScriptEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); } public static class SecureStoreApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecureStoreApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecureStoreApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecureStoreApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecureStoreApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); } public static class SecurityGroupDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); } public static class SecurityGroupLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); } public static class SecurityRoleDefinitionTests @@ -1121,21 +1139,21 @@ public static class SecurityRoleDefinitionTests public static class SecurityRoleLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); } public static class SiteDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); } public static class SP2013WorkflowDefinitionTests @@ -1151,13 +1169,13 @@ public static class SP2013WorkflowDefinitionTests public static class SP2013WorkflowSubscriptionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowSubscriptionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowSubscriptionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); } public static class TargetApplicationDefinitionTests @@ -1173,43 +1191,43 @@ public static class TargetApplicationDefinitionTests public static class TextFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTextFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TextFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTextFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TextFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); } public static class TopNavigationNodeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TopNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TopNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); } public static class TreeViewSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTreeViewSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TreeViewSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTreeViewSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TreeViewSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); } public static class UniqueContentTypeFieldsOrderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeFieldsOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeFieldsOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); } public static class UniqueContentTypeOrderDefinitionTests @@ -1225,57 +1243,57 @@ public static class UniqueContentTypeOrderDefinitionTests public static class URLFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleURLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample URLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleURLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample URLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); } public static class UserCustomActionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionWithJquery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UserCustomActionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionWithJquery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UserCustomActionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); } public static class UserFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleUserFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UserFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleUserFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UserFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); } public static class WebApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); } public static class WebConfigModificationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebConfigModificationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebConfigModificationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebConfigModificationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebConfigModificationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); } public static class WebDefinitionTest @@ -1295,17 +1313,17 @@ public static class WebDefinitionTest public static class WebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartGalleryFileName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartWithPreprocessedXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartGalleryFileName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartWithPreprocessedXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); } public static class WebPartPageDefinitionTests @@ -1339,57 +1357,57 @@ public static class WelcomePageDefinitionTests public static class WikiPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWikiPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWikiPagesUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WikiPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWikiPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWikiPagesUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WikiPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); } public static class XsltListViewWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); } public static class AudienceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAudienceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AudienceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAudienceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AudienceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); } public static class ContactFieldControlDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContactFieldControlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContactFieldControlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContactFieldControlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContactFieldControlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); } public static class ContentByQueryWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentByQueryWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentByQueryWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentByQueryWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentByQueryWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); } public static class ControlDisplayTemplateDefinitionTests @@ -1405,61 +1423,61 @@ public static class ControlDisplayTemplateDefinitionTests public static class CustomDocumentIdProviderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCustomDocumentIdProviderDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomDocumentIdProviderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCustomDocumentIdProviderDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomDocumentIdProviderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); } public static class HTMLFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleHTMLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HTMLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleHTMLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HTMLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); } public static class ImageFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ImageFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ImageFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); } public static class ImageRenditionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageRenditionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ImageRenditionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageRenditionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ImageRenditionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); } public static class ItemDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleItemDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ItemDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleItemDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ItemDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); } public static class JavaScriptDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJavaScriptDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample JavaScriptDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJavaScriptDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample JavaScriptDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); } public static class LinkFieldDefinitionTests @@ -1475,85 +1493,85 @@ public static class LinkFieldDefinitionTests public static class MediaFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMediaFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MediaFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMediaFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MediaFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); } public static class PageLayoutAndSiteTemplateSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PageLayoutAndSiteTemplateSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PageLayoutAndSiteTemplateSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); } public static class PublishingPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPage = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageWithCustomeLayout = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPage = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageWithCustomeLayout = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); } public static class PublishingPageLayoutDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePublishingPageLayoutDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageLayoutDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePublishingPageLayoutDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageLayoutDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); } public static class SearchConfigurationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchConfigurationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchConfigurationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchConfigurationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchConfigurationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); } public static class SearchResultDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchResultDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchResultDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchResultDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchResultDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); } public static class SearchSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); } public static class SiteFeedWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteFeedWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteFeedWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteFeedWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteFeedWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); } public static class SummaryLinkFieldDefinitionTests @@ -1569,21 +1587,21 @@ public static class SummaryLinkFieldDefinitionTests public static class SummaryLinkWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); } public static class TaxonomyFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployTaxonomyField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployTaxonomyField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); } public static class TaxonomyTermDefinitionTests @@ -1599,33 +1617,33 @@ public static class TaxonomyTermDefinitionTests public static class TaxonomyTermGroupDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); } public static class TaxonomyTermLabelDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermLabelDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermLabelDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermLabelDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermLabelDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); } public static class TaxonomyTermSetDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermSets = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermSetDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermSets = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermSetDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); } public static class TaxonomyTermStoreDefinitionTests @@ -1643,11 +1661,11 @@ public static class TaxonomyTermStoreDefinitionTests public static class WebNavigationSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebNavigationSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebNavigationSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebNavigationSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebNavigationSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); } public static class ChangeWebTitleAndDescriptionDefinition From 40e6cfc779e2df70d06e80f4e58b3460865223ba Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Wed, 12 Oct 2016 16:29:30 -0700 Subject: [PATCH 17/27] + Add documentation on custom logging with SPMeta2 #914 --- .../Code/Samples/m2Samples.cs | 1932 +++++++++-------- .../Code/Tests/DocSamplesServiceTests.cs | 11 +- .../SubPointSolutions.Docs.csproj | 15 +- .../extensibility/_writing-custom-logging.md | 9 - .../extensibility/writing-custom-logging.cs | 112 + .../extensibility/writing-custom-logging.md | 40 + 6 files changed, 1165 insertions(+), 954 deletions(-) delete mode 100644 SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/_writing-custom-logging.md create mode 100644 SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.cs create mode 100644 SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md diff --git a/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs b/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs index c2452fccc..82a145e43 100644 --- a/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs +++ b/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs @@ -7,1673 +7,1721 @@ namespace SubPointSolutions.Docs.Code.Samples public static class m2Samples { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <IsMethod>true</IsMethod>\r\n <IsClass>false</IsClass>\r\n <Tags />\r\n <Title>SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Web site\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Web site\r\n Site collection\r\n Web site\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Critical\r\n \r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n // handle critical event the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Critical\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Critical\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Error\r\n \r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n // handle error the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Error\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Error\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Warning\r\n \r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n // handle warning the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Warning\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Warning\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Information\r\n \r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n // handle info the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Information\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Information\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Verbose\r\n \r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n // handle verbose the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Verbose\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Verbose\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStart\r\n \r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStop\r\n \r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStop\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStop\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityTransfer\r\n \r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityTransfer\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityTransfer\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomLogginService\r\n \r\n \r\n \r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n // get an instance of ServiceContainer\r\n// override .Services collection with the right mapping\r\n// typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\nvar serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\nserviceInstancies.Clear();\r\nserviceInstancies.Add(new CustomLoggingService());\r\n\r\n// provision models as usual\r\n// from now on, all logging calls will go to CustomLoggingService instance\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n RegisterCustomLogginService\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.RegisterCustomLogginService\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GetDefaultTraceServiceInstance\r\n \r\n \r\n \r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n // get an instance of ServiceContainer\r\n// then get an instance of required service such as TraceServiceBase\r\n\r\nvar traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n// use trace methods as usual\r\ntraceService.Verbose(0, \"my verbose message\");\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n GetDefaultTraceServiceInstance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.GetDefaultTraceServiceInstance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>true</IsMethod>\r\n <IsClass>false</IsClass>\r\n <Tags />\r\n <Title>SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLoggingService\r\n \r\n public class CustomLoggingService : TraceServiceBase\r\n {\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n }\r\n public class CustomLoggingService : TraceServiceBase\r\n{\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n CustomLoggingServiceClass\r\n \r\n ClassCustomLoggingServiceClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLogginRegistration\r\n \r\n \r\n public class CustomLogginRegistration : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n }\r\n public class CustomLogginRegistration : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping\r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n CustomLogginRegistrationClass\r\n \r\n ClassCustomLogginRegistrationClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") }); public static class CustomDefinitions { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandler = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandlerWithSyntax = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandlerWithEvents = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomDefinitionsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandler = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandlerWithSyntax = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandlerWithEvents = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomDefinitionsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); } public static class ChangeWebTitleAndDescriptionModelHandler { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample DeployModel = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionModelHandlerClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DeployModel = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionModelHandlerClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); } public static class ChangeWebTitleAndDescriptionDefinitionSyntax { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample AddChangeWebTitleAndDescription_2_Params = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AddChangeWebTitleAndDescription_3_Params = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionDefinitionSyntaxClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AddChangeWebTitleAndDescription_2_Params = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AddChangeWebTitleAndDescription_3_Params = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionDefinitionSyntaxClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + } + + public static class CustomLoggingService + { + public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Critical\r\n \r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n // handle critical event the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Critical\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Critical\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Error\r\n \r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n // handle error the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Error\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Error\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Warning\r\n \r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n // handle warning the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Warning\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Warning\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Information\r\n \r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n // handle info the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Information\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Information\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Verbose\r\n \r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n // handle verbose the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Verbose\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Verbose\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStart\r\n \r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStop\r\n \r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStop\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStop\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityTransfer\r\n \r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityTransfer\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityTransfer\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLoggingService\r\n \r\n public class CustomLoggingService : TraceServiceBase\r\n {\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n }\r\n public class CustomLoggingService : TraceServiceBase\r\n{\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n CustomLoggingServiceClass\r\n \r\n ClassCustomLoggingServiceClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") + }); + public static SubPointSolutions.Docs.Code.Data.DocSample Critical = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Critical\r\n \r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n // handle critical event the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Critical\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Critical\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample Error = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Error\r\n \r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n // handle error the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Error\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Error\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample Warning = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Warning\r\n \r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n // handle warning the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Warning\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Warning\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample Information = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Information\r\n \r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n // handle info the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Information\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Information\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample Verbose = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Verbose\r\n \r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n // handle verbose the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Verbose\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Verbose\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TraceActivityStart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStart\r\n \r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TraceActivityStop = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStop\r\n \r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStop\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStop\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TraceActivityTransfer = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityTransfer\r\n \r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityTransfer\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityTransfer\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomLoggingServiceClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLoggingService\r\n \r\n public class CustomLoggingService : TraceServiceBase\r\n {\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n }\r\n public class CustomLoggingService : TraceServiceBase\r\n{\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n CustomLoggingServiceClass\r\n \r\n ClassCustomLoggingServiceClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + } + + public static class CustomLogginRegistration + { + public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomLogginService\r\n \r\n \r\n \r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n // get an instance of ServiceContainer\r\n// override .Services collection with the right mapping\r\n// typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\nvar serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\nserviceInstancies.Clear();\r\nserviceInstancies.Add(new CustomLoggingService());\r\n\r\n// provision models as usual\r\n// from now on, all logging calls will go to CustomLoggingService instance\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n RegisterCustomLogginService\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.RegisterCustomLogginService\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GetDefaultTraceServiceInstance\r\n \r\n \r\n \r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n // get an instance of ServiceContainer\r\n// then get an instance of required service such as TraceServiceBase\r\n\r\nvar traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n// use trace methods as usual\r\ntraceService.Verbose(0, \"my verbose message\");\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n GetDefaultTraceServiceInstance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.GetDefaultTraceServiceInstance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLogginRegistration\r\n \r\n \r\n public class CustomLogginRegistration : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n }\r\n public class CustomLogginRegistration : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping\r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n CustomLogginRegistrationClass\r\n \r\n ClassCustomLogginRegistrationClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") + }); + public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomLogginService = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomLogginService\r\n \r\n \r\n \r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n // get an instance of ServiceContainer\r\n// override .Services collection with the right mapping\r\n// typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\nvar serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\nserviceInstancies.Clear();\r\nserviceInstancies.Add(new CustomLoggingService());\r\n\r\n// provision models as usual\r\n// from now on, all logging calls will go to CustomLoggingService instance\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n RegisterCustomLogginService\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.RegisterCustomLogginService\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample GetDefaultTraceServiceInstance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GetDefaultTraceServiceInstance\r\n \r\n \r\n \r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n // get an instance of ServiceContainer\r\n// then get an instance of required service such as TraceServiceBase\r\n\r\nvar traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n// use trace methods as usual\r\ntraceService.Verbose(0, \"my verbose message\");\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n GetDefaultTraceServiceInstance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.GetDefaultTraceServiceInstance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomLogginRegistrationClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLogginRegistration\r\n \r\n \r\n public class CustomLogginRegistration : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n }\r\n public class CustomLogginRegistration : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping\r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n CustomLogginRegistrationClass\r\n \r\n ClassCustomLogginRegistrationClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); } public static class CustomSyntax { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsAsOOTB = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsAsExtension = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomSyntaxClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsAsOOTB = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsAsExtension = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomSyntaxClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); } public static class HideContentTypeFieldsExtensions { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsByIds = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SyntaxExtensionPrototype = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsExtensionsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsByIds = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SyntaxExtensionPrototype = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsExtensionsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); } public static class Basics { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample ABigPictureSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BasicsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ABigPictureSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BasicsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n"); } public static class ConsoleApSamples { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CSOMConsoleAppSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SSOMConsoleAppSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>"); - public static SubPointSolutions.Docs.Code.Data.DocSample ConsoleApSamplesClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CSOMConsoleAppSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SSOMConsoleAppSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>"); + public static SubPointSolutions.Docs.Code.Data.DocSample ConsoleApSamplesClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n"); } public static class Models { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample SettingUpSiteModels = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SettingUpWebModels = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ModelsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SettingUpSiteModels = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SettingUpWebModels = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ModelsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); } public static class SiteModel { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteModelProvision = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteModelClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteModelProvision = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteModelClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n"); } public static class Utils { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample UrlConcatenation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UtilsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UrlConcatenation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UtilsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); } public static class WebModel { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample WebModelProvision = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebModelClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebModelProvision = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebModelClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n"); } public static class AlternateUrlDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAlternateUrlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AlternateUrlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAlternateUrlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AlternateUrlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n"); } public static class AppDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Web site\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Web site\r\n Site collection\r\n Web site\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Web site\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AppDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Web site\r\n Site collection\r\n Web site\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AppDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); } public static class AppPrincipalDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppPrincipalDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AppPrincipalDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppPrincipalDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AppPrincipalDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n"); } public static class AuditSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAuditSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AuditSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAuditSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AuditSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); } public static class BooleanFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBooleanFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BooleanFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBooleanFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BooleanFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n"); } public static class BreakRoleInheritanceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BreakRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BreakRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); } public static class BusinessDataFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBusinessDataFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BusinessDataFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBusinessDataFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BusinessDataFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); } public static class CalculatedFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCalculatedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CalculatedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCalculatedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CalculatedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); } public static class ChoiceFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); } public static class ClientWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleClientWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleClientWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); } public static class ComputedFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleComputedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ComputedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleComputedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ComputedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); } public static class ContentDatabaseDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentDatabaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentDatabaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentDatabaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentDatabaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); } public static class ContentEditorWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploEmptyContentEditorWebpart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploContentEditorWebpartWithUrlLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentEditorWebpartWithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploEmptyContentEditorWebpart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploContentEditorWebpartWithUrlLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentEditorWebpartWithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); } public static class ContentTypeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentSetContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypesWithFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarhicalContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentSetContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypesWithFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarhicalContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); } public static class ContentTypeFieldLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); } public static class ContentTypeLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); } public static class CurrencyFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCurrencyFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CurrencyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCurrencyFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CurrencyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); } public static class DateTimeFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDateTimeFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DateTimeFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDateTimeFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DateTimeFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); } public static class DeleteWebPartsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployDeleteWebPartsDefinition_ByTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DeleteWebPartsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployDeleteWebPartsDefinition_ByTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DeleteWebPartsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); } public static class DiagnosticsServiceBaseDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDiagnosticsServiceBaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DiagnosticsServiceBaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDiagnosticsServiceBaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DiagnosticsServiceBaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); } public static class DocumentParserDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentParserDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DocumentParserDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentParserDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DocumentParserDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); } public static class EventReceiverDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentTypeSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample EventReceiverDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentTypeSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample EventReceiverDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); } public static class FarmDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FarmDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FarmDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); } public static class FarmSolutionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FarmSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FarmSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); } public static class FeatureDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBSiteFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample OOTBFeatureInheritance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FeatureDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBSiteFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample OOTBFeatureInheritance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FeatureDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); } public static class FieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); } public static class FolderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FolderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FolderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); } public static class GuidFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleGuidFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample GuidFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleGuidFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample GuidFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); } public static class HideContentTypeFieldLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); } public static class HideContentTypeLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypesInList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypesInList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n"); } public static class InformationRightsManagementSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleInformationRightsManagementSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample InformationRightsManagementSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleInformationRightsManagementSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample InformationRightsManagementSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); } public static class JobDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJobDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample JobDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJobDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample JobDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); } public static class ListDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateId = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployOOTBListsLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPromotedLinksList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateId = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployOOTBListsLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPromotedLinksList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); } public static class ListFieldLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); } public static class ListItemDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListItemDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListItemDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); } public static class ListItemFieldValueDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemFieldValueDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListItemFieldValueDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemFieldValueDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListItemFieldValueDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); } public static class ListViewDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViews = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCustomUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCAMLQuery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListViewDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViews = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCustomUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCAMLQuery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListViewDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); } public static class ListViewWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartToCalendarView = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartToCalendarView = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); } public static class LookupFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployEmptyLookupField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployLookupFieldBindedToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample LookupFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployEmptyLookupField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployLookupFieldBindedToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LookupFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); } public static class ManagedAccountDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleManagedAccountDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ManagedAccountDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleManagedAccountDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ManagedAccountDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); } public static class MasterPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMasterPageDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMasterPageDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); } public static class MasterPageSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebmasterPageSettings = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebmasterPageSettings = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n"); } public static class ModuleFileDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ModuleFileDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ModuleFileDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); } public static class MultiChoiceFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMultiChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MultiChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMultiChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MultiChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); } public static class NoteFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNoteFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample NoteFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNoteFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample NoteFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); } public static class NumberFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNumberFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample NumberFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNumberFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample NumberFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); } public static class PrefixDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePrefixDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PrefixDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePrefixDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PrefixDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); } public static class PropertyDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFarm = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PropertyDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFarm = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PropertyDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); } public static class QuickLaunchNavigationNodeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample QuickLaunchNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample QuickLaunchNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); } public static class RegionalSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleRegionalSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RegionalSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleRegionalSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegionalSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); } public static class RemoveContentTypeFieldLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFieldLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFieldLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); } public static class RemoveContentTypeLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFromList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFromList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n"); } public static class ResetRoleInheritanceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ResetRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ResetRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); } public static class RootWebDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanUpdateRootWebProperties = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanProvisionRootWebLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RootWebDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanUpdateRootWebProperties = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanProvisionRootWebLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RootWebDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); } public static class SandboxSolutionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSandboxSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SandboxSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSandboxSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SandboxSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); } public static class ScriptEditorWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleScriptEditorWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployScriptEditorWebPartwithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ScriptEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleScriptEditorWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployScriptEditorWebPartwithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ScriptEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); } public static class SecureStoreApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecureStoreApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecureStoreApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecureStoreApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecureStoreApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); } public static class SecurityGroupDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); } public static class SecurityGroupLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); } public static class SecurityRoleDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n"); } public static class SecurityRoleLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); } public static class SiteDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); } public static class SP2013WorkflowDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n"); } public static class SP2013WorkflowSubscriptionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowSubscriptionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowSubscriptionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); } public static class TargetApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTargetApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TargetApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTargetApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TargetApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n"); } public static class TextFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTextFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TextFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTextFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TextFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); } public static class TopNavigationNodeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TopNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TopNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); } public static class TreeViewSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTreeViewSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TreeViewSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTreeViewSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TreeViewSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); } public static class UniqueContentTypeFieldsOrderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeFieldsOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeFieldsOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); } public static class UniqueContentTypeOrderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypesInList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypesInList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n"); } public static class URLFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleURLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample URLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleURLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample URLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); } public static class UserCustomActionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionWithJquery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UserCustomActionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionWithJquery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UserCustomActionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); } public static class UserFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleUserFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UserFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleUserFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UserFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); } public static class WebApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); } public static class WebConfigModificationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebConfigModificationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebConfigModificationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebConfigModificationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebConfigModificationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); } public static class WebDefinitionTest { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebDefinitionTestClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebDefinitionTestClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); } public static class WebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartGalleryFileName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartWithPreprocessedXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartGalleryFileName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartWithPreprocessedXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); } public static class WebPartPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPageWithCustomTemplate = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPagesUnderFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebPartPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPageWithCustomTemplate = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPagesUnderFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebPartPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); } public static class WelcomePageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WelcomePageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WelcomePageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); } public static class WikiPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWikiPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWikiPagesUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WikiPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWikiPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWikiPagesUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WikiPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); } public static class XsltListViewWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); } public static class AudienceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAudienceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AudienceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAudienceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AudienceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); } public static class ContactFieldControlDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContactFieldControlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContactFieldControlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContactFieldControlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContactFieldControlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); } public static class ContentByQueryWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentByQueryWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentByQueryWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentByQueryWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentByQueryWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); } public static class ControlDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleControlDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ControlDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleControlDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ControlDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); } public static class CustomDocumentIdProviderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCustomDocumentIdProviderDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomDocumentIdProviderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCustomDocumentIdProviderDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomDocumentIdProviderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); } public static class HTMLFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleHTMLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HTMLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleHTMLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HTMLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); } public static class ImageFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ImageFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ImageFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); } public static class ImageRenditionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageRenditionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ImageRenditionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageRenditionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ImageRenditionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); } public static class ItemDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleItemDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ItemDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleItemDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ItemDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); } public static class JavaScriptDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJavaScriptDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample JavaScriptDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJavaScriptDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample JavaScriptDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); } public static class LinkFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample LinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); } public static class MediaFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMediaFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MediaFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMediaFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MediaFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); } public static class PageLayoutAndSiteTemplateSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PageLayoutAndSiteTemplateSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PageLayoutAndSiteTemplateSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); } public static class PublishingPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPage = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageWithCustomeLayout = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPage = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageWithCustomeLayout = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); } public static class PublishingPageLayoutDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePublishingPageLayoutDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageLayoutDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePublishingPageLayoutDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageLayoutDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); } public static class SearchConfigurationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchConfigurationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchConfigurationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchConfigurationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchConfigurationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); } public static class SearchResultDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchResultDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchResultDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchResultDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchResultDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); } public static class SearchSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); } public static class SiteFeedWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteFeedWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteFeedWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteFeedWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteFeedWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); } public static class SummaryLinkFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); } public static class SummaryLinkWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); } public static class TaxonomyFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployTaxonomyField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployTaxonomyField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); } public static class TaxonomyTermDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTerms = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTerms = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); } public static class TaxonomyTermGroupDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); } public static class TaxonomyTermLabelDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermLabelDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermLabelDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermLabelDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermLabelDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); } public static class TaxonomyTermSetDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermSets = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermSetDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermSets = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermSetDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); } public static class TaxonomyTermStoreDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample LookupTermStoreByName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample LookupDefaultSiteTermStore = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermStoreDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LookupTermStoreByName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LookupDefaultSiteTermStore = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermStoreDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); } public static class WebNavigationSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebNavigationSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebNavigationSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebNavigationSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebNavigationSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); } public static class ChangeWebTitleAndDescriptionDefinition { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionDefinitionClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionDefinitionClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); } } diff --git a/SPMeta2/SubPointSolutions.Docs/Code/Tests/DocSamplesServiceTests.cs b/SPMeta2/SubPointSolutions.Docs/Code/Tests/DocSamplesServiceTests.cs index 9cb356227..890fc8162 100644 --- a/SPMeta2/SubPointSolutions.Docs/Code/Tests/DocSamplesServiceTests.cs +++ b/SPMeta2/SubPointSolutions.Docs/Code/Tests/DocSamplesServiceTests.cs @@ -59,7 +59,7 @@ private List GetAllSamples(string path, bool resursive) return result; } - + [TestMethod] [TestCategory("Dev.Source")] public void Generate_Sample_Ref_Files() @@ -102,7 +102,14 @@ public void Generate_Sample_Ref_Files() var sampleFilePath = Path.Combine(directoryPath, sampleFileName); - File.WriteAllText(sampleFilePath, sampleBody); + try + { + File.WriteAllText(sampleFilePath, sampleBody); + } + catch (PathTooLongException e) + { + + } } } diff --git a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj index 816c45ce0..0f1c61654 100644 --- a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj +++ b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj @@ -298,6 +298,7 @@ + @@ -789,6 +790,18 @@ + + + + + + + + + + + + @@ -796,7 +809,7 @@ - + diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/_writing-custom-logging.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/_writing-custom-logging.md deleted file mode 100644 index 23c6a6abf..000000000 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/_writing-custom-logging.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -Title: Custom Logging -FileName: custom-logging.html -Hidden: true -Order: 600 ---- - -TODO -https://github.com/SubPointSolutions/spmeta2-docs/issues/87 \ No newline at end of file diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.cs b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.cs new file mode 100644 index 000000000..12edf757a --- /dev/null +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.cs @@ -0,0 +1,112 @@ +using Microsoft.SharePoint.Client; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using SPMeta2.CSOM.Services; +using SPMeta2.Definitions; +using SPMeta2.Definitions.ContentTypes; +using SPMeta2.Docs.ProvisionSamples.Base; +using SPMeta2.Docs.ProvisionSamples.Definitions; +using SPMeta2.Enumerations; +using SPMeta2.Models; +using SPMeta2.Syntax.Default; +using System; +using System.Linq; +using System.Collections.Generic; +using SPMeta2.ModelHandlers; +using SPMeta2.CSOM.ModelHandlers; +using SPMeta2.CSOM.ModelHosts; +using SPMeta2.Utils; +using SPMeta2.Syntax.Default.Modern; +using SPMeta2.Common; +using SPMeta2.Services; +using SPMeta2.Syntax.Default.Extensions; + +namespace SPMeta2.Docs.ProvisionSamples.Provision.Definitions +{ + public class CustomLoggingService : TraceServiceBase + { + + public override void Critical(int id, object message, Exception exception) + { + // handle critical event the way you like + } + + public override void Error(int id, object message, Exception exception) + { + // handle error the way you like + } + + public override void Warning(int id, object message, Exception exception) + { + // handle warning the way you like + } + + public override void Information(int id, object message, Exception exception) + { + // handle info the way you like + } + + public override void Verbose(int id, object message, Exception exception) + { + // handle verbose the way you like + } + + public override void TraceActivityStart(int id, object message) + { + // no implementation is required + } + + public override void TraceActivityStop(int id, object message) + { + // no implementation is required + } + + public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId) + { + // no implementation is required + } + + public override Guid CurrentActivityId + { + get { return Guid.Empty; } + set + { + + } + } + } + + [TestClass] + public class CustomLogginRegistration : ProvisionTestBase + { + [TestMethod] + [TestCategory("Docs.Models")] + public void RegisterCustomLogginService() + { + // get an instance of ServiceContainer + // override .Services collection with the right mapping + // typeof(TraceServiceBase) -> your instance of TraceServiceBase class + + var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)]; + + serviceInstancies.Clear(); + serviceInstancies.Add(new CustomLoggingService()); + + // provision models as usual + // from now on, all logging calls will go to CustomLoggingService instance + } + + [TestMethod] + [TestCategory("Docs.Models")] + public void GetDefaultTraceServiceInstance() + { + // get an instance of ServiceContainer + // then get an instance of required service such as TraceServiceBase + + var traceService = ServiceContainer.Instance.GetService(); + + // use trace methods as usual + traceService.Verbose(0, "my verbose message"); + } + } + +} \ No newline at end of file diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md new file mode 100644 index 000000000..47523be59 --- /dev/null +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md @@ -0,0 +1,40 @@ +--- +Title: Custom Logging +FileName: custom-logging.html +Order: 600 +--- + +#### Overview +Logging is an essential part of software development. +It provides developers and support teams a deeper overview and enable them to see what is happening in the application. + +SPMeta2 has built-in logging to trace most of the critical operations related to provision. +A high level abstraction for all logging operation is covered by TraceServiceBase class. TraceServiceBase class is an abstract one. It has a basic set of methods to report information, exception and warning as following: +* TraceServiceBase.Critical(int id, object message) +* TraceServiceBase.Error(int id, object message) +* TraceServiceBase.Warning(int id, object message) +* TraceServiceBase.Information(int id, object message) +* TraceServiceBase.Verbose(int id, object message) + +All the codebase refers to logging subsustem as TraceServiceBase never knowing what is the actual implementation of the logging operations. +Obtaining a concrete implementation of the loggin service should be done as following: + +Here is an example how a logging service instance can be obtained and used: + + +SPMeta2 has a default implementation of TraceServiceBase which is TraceSourceService. We use default .NET logging based on Diagnostic.TraceSource. +Default TraceSourceService class created a new instance of Diagnostic.TraceSource with the name 'SPMeta2'. It redirects all the logging to the trace listners defined in the app.config file for 'SPMeta2' name. + +#### Replacing default logging +As SPMeta2 is used as a 3rd part library in your application, it may be necessary to integrate SPMeta2 logging output with your preferred logging. +That integration can be accomplished in two steps: +* A custom logging service is to be written +* Default logging service needs to be replaced + +Here is an example on a custom logging service implementation: + + +Once a custom logging service is implemented, we still need to replace the default logging service with our custom one. That can be accomplished with the following code: + + +Once done, SPMeta2 will use custom logging service to push all traces. \ No newline at end of file From 104a5fc68ceec626ed777493aa5a32da1b6f9ac6 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Wed, 12 Oct 2016 16:39:00 -0700 Subject: [PATCH 18/27] + Add documentation on custom logging with SPMeta2 #914 fixes --- .../Views/SPMeta2/extensibility/writing-custom-logging.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md index 47523be59..6322716ad 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md @@ -20,7 +20,7 @@ All the codebase refers to logging subsustem as TraceServiceBase never knowing w Obtaining a concrete implementation of the loggin service should be done as following: Here is an example how a logging service instance can be obtained and used: - + SPMeta2 has a default implementation of TraceServiceBase which is TraceSourceService. We use default .NET logging based on Diagnostic.TraceSource. Default TraceSourceService class created a new instance of Diagnostic.TraceSource with the name 'SPMeta2'. It redirects all the logging to the trace listners defined in the app.config file for 'SPMeta2' name. @@ -35,6 +35,6 @@ Here is an example on a custom logging service implementation: Once a custom logging service is implemented, we still need to replace the default logging service with our custom one. That can be accomplished with the following code: - + -Once done, SPMeta2 will use custom logging service to push all traces. \ No newline at end of file +Once done, SPMeta2 will use custom logging service to push all trace messages. \ No newline at end of file From acf999ff6916ea547a4889481d44eece45cecdfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Bl=C3=BCher?= Date: Thu, 13 Oct 2016 10:41:33 +0200 Subject: [PATCH 19/27] Updated Handler and Validator for AddNewPagesToNavigation and CreateFriendlyUrlsForNewPages --- .../WebNavigationSettingsModelHandler.cs | 11 ++- ...ebNavigationSettingsDefinitionValidator.cs | 92 +++++++++++++++++-- ...ebNavigationSettingsDefinitionValidator.cs | 88 +++++++++++++++++- .../WebNavigationSettingsModelHandler.cs | 19 ++-- .../WebNavigationSettingsDefinition.cs | 9 +- .../Enumerations/BuiltInWebPropertyId.cs | 4 + 6 files changed, 200 insertions(+), 23 deletions(-) diff --git a/SPMeta2/SPMeta2.CSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs b/SPMeta2/SPMeta2.CSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs index 7d915cf9d..c7f0d2c2e 100644 --- a/SPMeta2/SPMeta2.CSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs +++ b/SPMeta2/SPMeta2.CSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs @@ -209,11 +209,20 @@ private void DeployNavigationSettings(object modelHost, WebModelHost webModelHos } } + if (navigationModel.AddNewPagesToNavigation.HasValue) + { + thisWebNavSettings.AddNewPagesToNavigation = navigationModel.AddNewPagesToNavigation.Value; + } + + if (navigationModel.CreateFriendlyUrlsForNewPages.HasValue) + { + thisWebNavSettings.CreateFriendlyUrlsForNewPages = navigationModel.CreateFriendlyUrlsForNewPages.Value; + } } if (navigationModel.DisplayShowHideRibbonAction.HasValue) { - allProperties["__DisplayShowHideRibbonActionId"] = navigationModel.DisplayShowHideRibbonAction.ToString(); + allProperties[BuiltInWebPropertyId.DisplayShowHideRibbonActionId] = navigationModel.DisplayShowHideRibbonAction.ToString(); shouldUpdateWeb = true; } diff --git a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs index 035d1afad..b10c1c523 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs @@ -5,13 +5,9 @@ using SPMeta2.CSOM.Extensions; using SPMeta2.CSOM.ModelHosts; using SPMeta2.CSOM.Standard.ModelHandlers; -using SPMeta2.CSOM.Standard.ModelHandlers.Taxonomy; -using SPMeta2.CSOM.Standard.ModelHosts; using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; using SPMeta2.Enumerations; using SPMeta2.Standard.Definitions; -using SPMeta2.Standard.Definitions.Taxonomy; using SPMeta2.Utils; namespace SPMeta2.Regression.CSOM.Standard.Validation @@ -64,7 +60,7 @@ public override void DeployModel(object modelHost, DefinitionBase model) var pageContent = client.DownloadString(new Uri(pageUrl)); CQ j = pageContent; - // so not only API, but also real checboxed on browser page check + // so not only API, but also real checkboxed on browser page check var globalSubSites = j.Select("input[id$='globalIncludeSubSites']").First(); var globalSubSitesValue = globalSubSites.Attr("checked") == "checked"; @@ -162,7 +158,6 @@ public override void DeployModel(object modelHost, DefinitionBase model) } - if (definition.CurrentNavigationShowSubsites.HasValue) { var currentNavIncludeTypesValueString = web.AllProperties.FieldValues.ContainsKey(BuiltInWebPropertyId.CurrentNavigationIncludeTypes) @@ -262,7 +257,6 @@ public override void DeployModel(object modelHost, DefinitionBase model) IsValid = s.GlobalNavigationMaximumNumberOfDynamicItems == globalDynamicChildLimitValue }; }); - } else { @@ -294,6 +288,32 @@ public override void DeployModel(object modelHost, DefinitionBase model) "CurrentNavigationMaximumNumberOfDynamicItems is null or empty"); } + if (definition.DisplayShowHideRibbonAction.HasValue) + { + var displayShowHideRibbonActionValue = + ConvertUtils.ToBool(web.AllProperties[BuiltInWebPropertyId.DisplayShowHideRibbonActionId]); + + // If displayShowHideRibbonActionValue has no value, property should be skipped, but I don't know how to get ShouldBeEqualIfHasValue to work + + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.DisplayShowHideRibbonAction); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = s.DisplayShowHideRibbonAction.Value == displayShowHideRibbonActionValue.Value + }; + }); + } + else + { + assert.SkipProperty(d => d.DisplayShowHideRibbonAction, + "DisplayShowHideRibbonAction is null or empty"); + } + // nav sources if (!string.IsNullOrEmpty(definition.GlobalNavigationSource)) { @@ -336,6 +356,64 @@ public override void DeployModel(object modelHost, DefinitionBase model) assert.SkipProperty(d => d.CurrentNavigationSource, "CurrentNavigationSource is null or empty"); } + + if (definition.AddNewPagesToNavigation.HasValue) + { + if (!string.IsNullOrEmpty(definition.GlobalNavigationSource) || !string.IsNullOrEmpty(definition.CurrentNavigationSource)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.AddNewPagesToNavigation.Value); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = s.AddNewPagesToNavigation.Value == spObject.AddNewPagesToNavigation + }; + }); + } + else + { + assert.SkipProperty(d => d.AddNewPagesToNavigation, + "AddNewPagesToNavigation requires GlobalNavigationSource or CurrentNavigationSource to be not null"); + } + } + else + { + assert.SkipProperty(d => d.AddNewPagesToNavigation, + "AddNewPagesToNavigation is null"); + } + + if (definition.CreateFriendlyUrlsForNewPages.HasValue) + { + if (!string.IsNullOrEmpty(definition.GlobalNavigationSource) || !string.IsNullOrEmpty(definition.CurrentNavigationSource)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.CreateFriendlyUrlsForNewPages.Value); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = s.CreateFriendlyUrlsForNewPages.Value == spObject.CreateFriendlyUrlsForNewPages + }; + }); + } + else + { + assert.SkipProperty(d => d.CreateFriendlyUrlsForNewPages, + "CreateFriendlyUrlsForNewPages requires GlobalNavigationSource or CurrentNavigationSource to be not null"); + } + } + else + { + assert.SkipProperty(d => d.CreateFriendlyUrlsForNewPages, + "CreateFriendlyUrlsForNewPages is null"); + } } } } diff --git a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs index 5ebca438a..3ac18b1a4 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs @@ -4,7 +4,6 @@ using Microsoft.SharePoint.Publishing; using SPMeta2.Containers.Assertion; using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; using SPMeta2.Enumerations; using SPMeta2.SSOM.ModelHosts; using SPMeta2.SSOM.Standard.ModelHandlers; @@ -198,6 +197,32 @@ public override void DeployModel(object modelHost, DefinitionBase model) "CurrentNavigationMaximumNumberOfDynamicItems is null or empty"); } + if (definition.DisplayShowHideRibbonAction.HasValue) + { + var displayShowHideRibbonActionValue = + ConvertUtils.ToBool(web.AllProperties[BuiltInWebPropertyId.DisplayShowHideRibbonActionId]); + + // If displayShowHideRibbonActionValue has no value, property should be skipped, but I don't know how to get ShouldBeEqualIfHasValue to work + + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.DisplayShowHideRibbonAction); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = s.DisplayShowHideRibbonAction.Value == displayShowHideRibbonActionValue.Value + }; + }); + } + else + { + assert.SkipProperty(d => d.DisplayShowHideRibbonAction, + "DisplayShowHideRibbonAction is null or empty"); + } + // nav sources if (!string.IsNullOrEmpty(definition.GlobalNavigationSource)) { @@ -241,10 +266,63 @@ public override void DeployModel(object modelHost, DefinitionBase model) "CurrentNavigationSource is null or empty"); } - - - - + if (definition.AddNewPagesToNavigation.HasValue) + { + if (!string.IsNullOrEmpty(definition.GlobalNavigationSource) || !string.IsNullOrEmpty(definition.CurrentNavigationSource)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.AddNewPagesToNavigation.Value); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = s.AddNewPagesToNavigation.Value == spObject.AddNewPagesToNavigation + }; + }); + } + else + { + assert.SkipProperty(d => d.AddNewPagesToNavigation, + "AddNewPagesToNavigation requires GlobalNavigationSource or CurrentNavigationSource to be not null"); + } + } + else + { + assert.SkipProperty(d => d.AddNewPagesToNavigation, + "AddNewPagesToNavigation is null"); + } + + if (definition.CreateFriendlyUrlsForNewPages.HasValue) + { + if (!string.IsNullOrEmpty(definition.GlobalNavigationSource) || !string.IsNullOrEmpty(definition.CurrentNavigationSource)) + { + assert.ShouldBeEqual((p, s, d) => + { + var srcProp = s.GetExpressionValue(m => m.CreateFriendlyUrlsForNewPages.Value); + + return new PropertyValidationResult + { + Tag = p.Tag, + Src = srcProp, + Dst = null, + IsValid = s.CreateFriendlyUrlsForNewPages.Value == spObject.CreateFriendlyUrlsForNewPages + }; + }); + } + else + { + assert.SkipProperty(d => d.CreateFriendlyUrlsForNewPages, + "CreateFriendlyUrlsForNewPages requires GlobalNavigationSource or CurrentNavigationSource to be not null"); + } + } + else + { + assert.SkipProperty(d => d.CreateFriendlyUrlsForNewPages, + "CreateFriendlyUrlsForNewPages is null"); + } } } } diff --git a/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs b/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs index 8165b7a1d..317881455 100644 --- a/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs +++ b/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs @@ -1,15 +1,15 @@ using System; using Microsoft.SharePoint.Publishing.Navigation; + using SPMeta2.Common; using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; using SPMeta2.Enumerations; using SPMeta2.SSOM.ModelHandlers; using SPMeta2.SSOM.ModelHosts; +using SPMeta2.SSOM.Standard.ModelHandlers.Fields; using SPMeta2.SSOM.Standard.ModelHandlers.Taxonomy; using SPMeta2.Standard.Definitions; using SPMeta2.Utils; -using SPMeta2.SSOM.Standard.ModelHandlers.Fields; namespace SPMeta2.SSOM.Standard.ModelHandlers { @@ -146,11 +146,21 @@ private void DeployNavigationSettings(object modelHost, WebModelHost webModelHos } } } + + if (navigationModel.AddNewPagesToNavigation.HasValue) + { + thisWebNavSettings.AddNewPagesToNavigation = navigationModel.AddNewPagesToNavigation.Value; + } + + if (navigationModel.CreateFriendlyUrlsForNewPages.HasValue) + { + thisWebNavSettings.CreateFriendlyUrlsForNewPages = navigationModel.CreateFriendlyUrlsForNewPages.Value; + } } if (navigationModel.DisplayShowHideRibbonAction.HasValue) { - allProperties["__DisplayShowHideRibbonActionId"] = navigationModel.DisplayShowHideRibbonAction.ToString(); + allProperties[BuiltInWebPropertyId.DisplayShowHideRibbonActionId] = navigationModel.DisplayShowHideRibbonAction.ToString(); shouldUpdateWeb = true; } @@ -173,8 +183,6 @@ private void DeployNavigationSettings(object modelHost, WebModelHost webModelHos { thisWebNavSettings.Update(null); } - - } protected int? GetGlobalNavigationIncludeTypes(WebNavigationSettingsDefinition navigationModel, @@ -273,7 +281,6 @@ private void DeployNavigationSettings(object modelHost, WebModelHost webModelHos return navigationIncludeTypes; } - #endregion } } diff --git a/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs b/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs index e2155a47d..776738f0b 100644 --- a/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs +++ b/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs @@ -1,13 +1,11 @@ using System; -using System.ComponentModel; +using System.Runtime.Serialization; + using SPMeta2.Attributes; using SPMeta2.Attributes.Identity; using SPMeta2.Attributes.Regression; using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; -using SPMeta2.Standard.Definitions.Taxonomy; using SPMeta2.Utils; -using System.Runtime.Serialization; using SPMeta2.Attributes.Capabilities; namespace SPMeta2.Standard.Definitions @@ -39,12 +37,15 @@ public WebNavigationSettingsDefinition() #region properties [DataMember] + [ExpectValidation] public bool? DisplayShowHideRibbonAction { get; set; } [DataMember] + [ExpectValidation] public bool? AddNewPagesToNavigation { get; set; } [DataMember] + [ExpectValidation] public bool? CreateFriendlyUrlsForNewPages { get; set; } [DataMember] diff --git a/SPMeta2/SPMeta2/Enumerations/BuiltInWebPropertyId.cs b/SPMeta2/SPMeta2/Enumerations/BuiltInWebPropertyId.cs index 81cf78072..011f3886b 100644 --- a/SPMeta2/SPMeta2/Enumerations/BuiltInWebPropertyId.cs +++ b/SPMeta2/SPMeta2/Enumerations/BuiltInWebPropertyId.cs @@ -52,6 +52,10 @@ public static class BuiltInWebPropertyId /// public static string ImagesListId = "__ImagesListId"; + ///

+ /// Refers to __DisplayShowHideRibbonActionId + /// + public static string DisplayShowHideRibbonActionId = "__DisplayShowHideRibbonActionId"; /// /// Refers to FollowLinkEnabled From 74aba48ec0751e949bb2d1325b726fe76f46fb0f Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Thu, 13 Oct 2016 18:29:23 -0700 Subject: [PATCH 20/27] + Add documentation on regression testing #911 --- .../SubPointSolutions.Docs.csproj | 1 + .../extensibility/regression-testing.md | 120 ++++++++++++++++++ .../extensibility/writing-custom-logging.md | 2 +- 3 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md diff --git a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj index 0f1c61654..c7f3eded6 100644 --- a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj +++ b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj @@ -779,6 +779,7 @@ + diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md new file mode 100644 index 000000000..9aac5a331 --- /dev/null +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md @@ -0,0 +1,120 @@ +--- +Title: Regression testing +FileName: regression-testing.html +Order: 700 +--- + +#### Overview +Regression testing is a cornerstone of the SPMeta2 library and its QA process. +The sole purpose of the regression testing is to ensure that provision works exactly as it supposed to work under both CSOM/SSOM for both SharePoint 2013 and SharePoint online tenants. +Hence, we use a mixture of unit testing and integration testing with real SharePoint 2013 farms and SharePoint online tenants to ensure the outstanding quality of the SPMeta2 library. Altogether, we call that 'regression testing'. + +Current regression testing implementation has around 900 tests, and amount of tests is increasing over the time. +Tests can be devided into different areas: + +* Pure C# unit tests (they don't need SharePoint) +* Integration tests for CSOM/SSOM (they needs a real SharePoint farm or O365 tenant) + +Most of the SPMeta2 core funtionality is covered by C# unit tests. +Such tests are covered by "CI.Core" test category, they are run under CI every checkin. +You can run them locally grouping Visual Studio test explorer by 'Traits' - you'll see "CI.Core" tests group. + +All other tests are integration tests meaning that they require either SharePoint 2013 farm or SharePoint online tenant. +Such integration tests are meant to validate two areas: +* Basic provision of random definition (random definition tests) +* Various provision scenarios for giving definition (scenarios tests) + +Every definition must have at least one 'random' regresison test, and several scenarios to ensure various provision cases. +For instance, FieldDefinition has the folloeing tests: +* CanDeployRandom_FieldDefinition (a random definition test) +* A lot, really a lot of other tests to ensure that field can be deployed + +This is not the end of the testing story. All regression tests uses the following flow: +* Deploy model +* Check definition properties (they should match the values in SharePoint) +* Deploy model again (change properties, ensure we can deploy over, update model) +* Check definition properties (they should match the values in SharePoint) +* Serialize model into JSON/XML +* Deserialize model from JSON/XML +* Deploy model again (change properties, ensure we can deploy over, update model) +* Check definition properties (they should match the values in SharePoint) + +Simple saying, every test is run seevral times, simulating a real word usage. +Such flow is meant to ensure model can be deployed, all properties match the actual values in SharePoint, model can be serialized/deserialized and deserialized model can be deployed. +Apart that, all tests also call .ToPrettyPrint() and .ToDot() methods on every model. + +Next, all tests are run under a particular SharePoint API - either CSOM runtime or SSOM runtime. +That meant that we have to run at least two full set of the regression testing against SharePoint 2013 farm - under CSOM provision and then under SSOM provision. +Then, one more time, we run all these tests under CSOM runtime against SharePoint online tenants. Full regression testing before any public release to NuGet can be seen as following: + +* All tests against SP2013 SSOM +* All tests against SP2013 CSOM +* All tests against O365 CSOM + +As menationed early, every regression test has a complicated flow - it provisions the artifact, checks properties and so on. +The whole testing process isn't fast. It takes around 3-4 hours to run full SP2013 SSOM regression testing, then 3-4 hours for SP2013 CSOM, and then arounf 6-9 hours to get O365 regression completed. +Total regression time hits more that 10 hours which is absolutely unaffordable. + +Keeping full regression testing time low, we use [NCrunch](http://www.ncrunch.net/) and its distrubuting processing feature. +NCrunch allows not only tests execution parallelization but also allows running run tests on remote machines. +Running tests on remote machines comes handy for SPMeta2 regression testing. We use either Hyper-V or Azure infrastructure having in avarage dozen SharePoint farms to run our regression testing against. +NCruhc helps to parallelize regression testing execution amoung dozen SharePoint 2013 farms. Same strategy goes with SharePoint online tenants as well. +Such move cuts the total regression testing time to 45-60 minutes allowing us to ensure outstanding quality of SPMeta2 library. + +#### SPMeta2 tests solution overview +* /Tests/Impl/ folder housed all tests - unit and integration tests +* /Tests/Validators/ folder houses 'validator handler' for CSOM/SSOM +* /Tests/Containers/ folder has 'definition generators' and 'running hosts' + +For unit tests you need to focus on /Tests/Impl/ folder and two solutions. Check the further paragraph in unit testing. +* SPMeta2.Regression.Impl.Tests +* SPMeta2.Regression.Tests + +Regression testing is much more complicated, several solution and specific flow is required (more details later in this article) + +#### SPMeta2 unit testing in details +SPMeta2 unit tests are simple C# unit tests. All such tests must live under "CI.Core" category so that they will be run every checkin on github. +We use [AppVeyor](https://www.appveyor.com) continiuous integration service that hooks up with every checkin on github. +Alternatively, you can run all tests under "CI.Core" category on your development envrionment. + +There are two goals that we want to acoomplish with unit tests: +* Ensure all services of SPMeta2 work as expected +* Ensure and enforce integrity of SPMeta2 library + +Ensuring that basic services of SPMeta2 library work well is all about writing classic C# unit tests. +For instance, we test that 'ConvertUtils' class works as expected so that we have 'ConvertUtilsTests'. +Same goes with serialization services (SerializationServicesTests), and other things. +Check out tests under "CI.Core" category to get more understanding. + +The other side of the unit testing is 'SPMeta2 integrity'. +SPMeta2 introduces definitions, models, model syntax and other concepts. +Such concepts, most of the time, follow the name convention and expected behaviour. + +For instance: +* Definition has to be serializable +* Definition has .AddXXX() methods to work with model +* Definition has additional attributes to integrate wtih regression testing process +* Definition has to have 'random' regression test + +Such contracts have to be forced, and we force them via unit tests as well. +For instance, we have 'AllSerializablesPublicPropsShouldBeMarkedAsDataMemberOrIgnoreDataMemberAttr' tests that ensures that all definition properties marked with 'DataMember' attribute. +That ensure that definition and its properties can be serialized. + +We have 'Can_CreateDefinition' tests that creates all definitions dynamically. +It reflects all definitions in SPMeta2, then creates and instance of definition. +That ensure that default constructor can be called without any errors. + +We have 'RandomDefinitionTest_ShouldHave_Tests_ForAllDefinitions' test that ensure that 'RandomDefinitionSelfDiagnoosticTest' class has 'random' tests for every definition. +If you addd a new definition, you have to add a 'random' definitio regresison test (will be discussed later) and this test will fail indicating that you haven't added such regression test. + +There are other unit tests to ensure defaukt services, values, null-reference exception, ensure serialization and presence of correct attributes, and then some test to ensure that particular tests were written. +Altogether, at unit test level we ensure basic C# tests and some SPMeta2 name convention and integrity. + +If you need to test something non-SharePoint related, a unit test is the right place. +Write a new test, ensure it's green and don't forget to make it with CI.Core" category. + +For unit tests you need to focus on /Tests/Impl/ folder and two solutions. Place tests in the following solutions and appropriate folder / class: +* SPMeta2.Regression.Impl.Tests +* SPMeta2.Regression.Tests + +#### SPMeta2 regression testing in details \ No newline at end of file diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md index 6322716ad..52c94239e 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-logging.md @@ -1,5 +1,5 @@ --- -Title: Custom Logging +Title: Custom logging FileName: custom-logging.html Order: 600 --- From e2e4be033afb0e046a1dd8110191a5ba0d939651 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Thu, 13 Oct 2016 19:02:50 -0700 Subject: [PATCH 21/27] + Add documentation on regression testing #911 --- .../extensibility/regression-testing.md | 133 +++++++++++++++++- 1 file changed, 130 insertions(+), 3 deletions(-) diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md index 9aac5a331..270e0c28e 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md @@ -61,7 +61,7 @@ Running tests on remote machines comes handy for SPMeta2 regression testing. We NCruhc helps to parallelize regression testing execution amoung dozen SharePoint 2013 farms. Same strategy goes with SharePoint online tenants as well. Such move cuts the total regression testing time to 45-60 minutes allowing us to ensure outstanding quality of SPMeta2 library. -#### SPMeta2 tests solution overview +#### SPMeta2 tests solution structure * /Tests/Impl/ folder housed all tests - unit and integration tests * /Tests/Validators/ folder houses 'validator handler' for CSOM/SSOM * /Tests/Containers/ folder has 'definition generators' and 'running hosts' @@ -72,7 +72,7 @@ For unit tests you need to focus on /Tests/Impl/ folder and two solutions. Check Regression testing is much more complicated, several solution and specific flow is required (more details later in this article) -#### SPMeta2 unit testing in details +#### SPMeta2 unit testing SPMeta2 unit tests are simple C# unit tests. All such tests must live under "CI.Core" category so that they will be run every checkin on github. We use [AppVeyor](https://www.appveyor.com) continiuous integration service that hooks up with every checkin on github. Alternatively, you can run all tests under "CI.Core" category on your development envrionment. @@ -117,4 +117,131 @@ For unit tests you need to focus on /Tests/Impl/ folder and two solutions. Place * SPMeta2.Regression.Impl.Tests * SPMeta2.Regression.Tests -#### SPMeta2 regression testing in details \ No newline at end of file +#### SPMeta2 regression testing +Regression testing is more complicated. +As mentioned early, regression testing has a complictaed execution flow and it required either SharePoint 2013 farm or SharePoint online tenant. + +SSOM testing requires SharePoint 2013 farm. +CSOM testing goes either with SharePoint 2013 farm or SharePoint online tenant. + +All regression tests tests uses the following flow: +* Deploy model +* Check definition properties (they should match the values in SharePoint) +* Deploy model again (change properties, ensure we can deploy over, update model) +* Check definition properties (they should match the values in SharePoint) +* Serialize model into JSON/XML +* Deserialize model from JSON/XML +* Deploy model again (change properties, ensure we can deploy over, update model) +* Check definition properties (they should match the values in SharePoint) + +There are two main categories for regression test: +* 'random' regression tests +* scenario regression tests + +#### Random regression tests +**Random regression** tests aim to cover very basic provision scenarios for an artifact. +They live under "RandomDefinitionSelfDiagnoosticTest" class and usually looks as this: + +[TestMethod] +[TestCategory("Regression.Rnd.Web")] +public void CanDeployRandom_WebDefinition() +{ + TestRandomDefinition(); +} + +Every definition has to have a 'random' regression tests, and the presence of such test is checked by 'RandomDefinitionTest_ShouldHave_Tests_ForAllDefinitions' test. +If you have a new definition, you have to follow a name convention and add 'random' regression test. + +A you can see, some magic is happening behind 'TestRandomDefinition()' function. +'TestRandomDefinition' function does the following: +* Generates a random definition of giving type +* Generates a random model for the giving definition +* Composes the final model +* Deploys and tests model as per the 'regression' testing flow + +Forst of all, how you generate a random model? We use two projects for that with 'model generators': +* SPMeta2.Containers +* SPMeta2.Containers.Standard + +In both project we have 'DefinitionGenerators' folder that houses 'random definition generators'. +Such classes generate a random, valid definition that can be deploye to SharePoint. +Check 'WebDefinitionGenerator', it looks as following: + +public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase + { + public override DefinitionBase GenerateRandomDefinition(Action action) + { + return WithEmptyDefinition(def => + { + def.Title = Rnd.String(); + def.Description = Rnd.String(); + + + def.Url = Rnd.String(16); + + def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite; + }); + } + } + +Follow the same style adding a new definition generator if you created a new definition. + +Next, TestRandomDefinition() creates a random model for the giving definition. How come? +Every definition has two attributes that tell the immediate parent of the artifact, and then the root parent of the artifact. +For instance, web definition has the following attributes: +* [DefaultRootHost(typeof(SiteDefinition))] +* [DefaultParentHost(typeof(SiteDefinition))] + +That means that the random model for WebDefinition will be a 'site model'. + +ListViewDefinition has different values: +* [DefaultRootHost(typeof(WebDefinition))] +* [DefaultParentHost(typeof(ListDefinition))] + +That means that the random model for ListViewDefinition will be a 'web model', and then the parent for ListViewDefinition will be a 'random list'. + +Simple saying, 'DefaultRootHost' indicates a type of model - farm, web app, site or web model. +'DefaultParentHost' attribute indicates a 'parent' for the giving definition. +Both attributes organize the definitions into a 'tree', with parent-child relationship same way as it works in SharePoint. +Such parent-child relationships help SPMeta2 regression to generate not only random definitions, but also full-random and valid models at any level - farm, web app, site or web. + +These two things are essentials to make 'random' regression testing work. +At this level, we generate fully random models, deploy them and ensure that 'basic' level of deployment can be accomplished. + +All random tests live under "RandomDefinitionSelfDiagnoosticTest" class. +Folow name convention to add a new tests, and then implement correct random definition generator. + +#### Scenarios regression tests +**Scenarios regression** tests is the next step to cover different provision scenarios. +Such tests reflect real word scenarios coming from comminuty and real world projects. + +All scenarios are written manually and aim to cover a particular scope. +For instance, with the fields: +* Can field be deployed under site? +* Can field be deployed under web? +* Can field be deployed under list? +* And so on... + +With web parts it gets even trickier! +* Can web part be deployed on wiki page? +* Can web part be deployed on web part page page? +* Can web part be deployed on publishing page? +* Can web part be deployed on list view page in the list? +* Can web part be deployed on list view page in the library? +* Can web part be deployed on item details page in list? +* Can web part be deployed on item details page in library? +* And so on... + +Same goes with module files: +* Can module file be deployed under library? +* Can module file be deployed under folder? +* Can module file be deployed under content type? +* And so on... + +As you can see, we try to cover all possible cases that exist in real world projects. + +Most of 'scenarios' exist in 'SPMeta2.Regression.Tests' projects under /Impl/Scenarios folder. +They are organized in 'DefinitionName-ScenarioTest' and work also as a reference point. + +If a new scenario needs to be supported and tested, simple add a new test under correct file. +Follow name convention and check other tests as well. You would have to construct the model, and then use 'TestModel' methods to run the regression. \ No newline at end of file From 2e5d9b6897ac393eadf46d44cbda9b31a4797b59 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Fri, 14 Oct 2016 00:38:39 -0700 Subject: [PATCH 22/27] + Add documentation on regression testing #911 --- .../Code/Samples/m2Samples.cs | 1275 +++++++++-------- .../SubPointSolutions.Docs.csproj | 1 + .../extensibility/regression-testing.cs | 53 + .../extensibility/regression-testing.md | 304 +++- 4 files changed, 980 insertions(+), 653 deletions(-) create mode 100644 SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.cs diff --git a/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs b/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs index 82a145e43..783092f3e 100644 --- a/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs +++ b/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs @@ -7,6 +7,9 @@ namespace SubPointSolutions.Docs.Code.Samples public static class m2Samples { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CanDeployRandom_WebDefinition\r\n \r\n \r\n \r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n TestRandomDefinition<WebDefinition>();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n CanDeployRandom_WebDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.CanDeployRandom_WebDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>private void TestRandomDefinition<WebDefinition>() { }</MethodBodyWithFunction>\r\n <MethodBody />\r\n <Language>cs</Language>\r\n <Namespace>SubPointSolutions.Docs.Views.SPMeta2.extensibility</Namespace>\r\n <ClassName>Regressiontesting</ClassName>\r\n <MethodName>TestRandomDefinition</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.TestRandomDefinition</MethodFullName>\r\n <ClassFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting</ClassFullName>\r\n <MethodParametersCount>0</MethodParametersCount>\r\n <SourceFileName>regression-testing.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>regression-testing</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\extensibility</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs</SourceFilePath>\r\n</DocSample>") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>true</IsMethod>\r\n <IsClass>false</IsClass>\r\n <Tags />\r\n <Title>GenerateRandomDefinition\r\n \r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n return WithEmptyDefinition(def =>\r\n{\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n GenerateRandomDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator.GenerateRandomDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 1\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , @@ -39,177 +42,179 @@ public static class m2Samples SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Regressiontesting\r\n \r\n public class Regressiontesting : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n }\r\n public class Regressiontesting : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n RegressiontestingClass\r\n \r\n ClassRegressiontestingClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebDefinitionGenerator\r\n \r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n {\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n }\r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n{\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n WebDefinitionGeneratorClass\r\n \r\n ClassWebDefinitionGeneratorClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , @@ -225,115 +230,137 @@ public static class m2Samples SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") }); + public static class Regressiontesting + { + public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CanDeployRandom_WebDefinition\r\n \r\n \r\n \r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n TestRandomDefinition<WebDefinition>();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n CanDeployRandom_WebDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.CanDeployRandom_WebDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>private void TestRandomDefinition<WebDefinition>() { }</MethodBodyWithFunction>\r\n <MethodBody />\r\n <Language>cs</Language>\r\n <Namespace>SubPointSolutions.Docs.Views.SPMeta2.extensibility</Namespace>\r\n <ClassName>Regressiontesting</ClassName>\r\n <MethodName>TestRandomDefinition</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.TestRandomDefinition</MethodFullName>\r\n <ClassFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting</ClassFullName>\r\n <MethodParametersCount>0</MethodParametersCount>\r\n <SourceFileName>regression-testing.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>regression-testing</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\extensibility</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs</SourceFilePath>\r\n</DocSample>") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>Regressiontesting\r\n \r\n public class Regressiontesting : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n }\r\n public class Regressiontesting : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n RegressiontestingClass\r\n \r\n ClassRegressiontestingClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") + }); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployRandom_WebDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CanDeployRandom_WebDefinition\r\n \r\n \r\n \r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n TestRandomDefinition<WebDefinition>();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n CanDeployRandom_WebDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.CanDeployRandom_WebDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TestRandomDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>private void TestRandomDefinition<WebDefinition>() { }</MethodBodyWithFunction>\r\n <MethodBody />\r\n <Language>cs</Language>\r\n <Namespace>SubPointSolutions.Docs.Views.SPMeta2.extensibility</Namespace>\r\n <ClassName>Regressiontesting</ClassName>\r\n <MethodName>TestRandomDefinition</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.TestRandomDefinition</MethodFullName>\r\n <ClassFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting</ClassFullName>\r\n <MethodParametersCount>0</MethodParametersCount>\r\n <SourceFileName>regression-testing.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>regression-testing</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\extensibility</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs</SourceFilePath>\r\n</DocSample>"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegressiontestingClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>Regressiontesting\r\n \r\n public class Regressiontesting : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n }\r\n public class Regressiontesting : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n RegressiontestingClass\r\n \r\n ClassRegressiontestingClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); + } + + public static class WebDefinitionGenerator + { + public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GenerateRandomDefinition\r\n \r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n return WithEmptyDefinition(def =>\r\n{\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n GenerateRandomDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator.GenerateRandomDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 1\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebDefinitionGenerator\r\n \r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n {\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n }\r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n{\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n WebDefinitionGeneratorClass\r\n \r\n ClassWebDefinitionGeneratorClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") + }); + public static SubPointSolutions.Docs.Code.Data.DocSample GenerateRandomDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GenerateRandomDefinition\r\n \r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n return WithEmptyDefinition(def =>\r\n{\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n GenerateRandomDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator.GenerateRandomDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 1\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebDefinitionGeneratorClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebDefinitionGenerator\r\n \r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n {\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n }\r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n{\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n WebDefinitionGeneratorClass\r\n \r\n ClassWebDefinitionGeneratorClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); + } + public static class CustomDefinitions { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { @@ -513,11 +540,11 @@ public static class AlternateUrlDefinitionTests public static class AppDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AppDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AppDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); } public static class AppPrincipalDefinitionTests @@ -533,11 +560,11 @@ public static class AppPrincipalDefinitionTests public static class AuditSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAuditSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AuditSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAuditSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AuditSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); } public static class BooleanFieldDefinitionTests @@ -565,95 +592,95 @@ public static class BreakRoleInheritanceDefinitionTests public static class BusinessDataFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBusinessDataFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BusinessDataFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBusinessDataFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BusinessDataFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); } public static class CalculatedFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCalculatedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CalculatedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCalculatedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CalculatedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); } public static class ChoiceFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); } public static class ClientWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleClientWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleClientWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); } public static class ComputedFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleComputedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ComputedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleComputedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ComputedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); } public static class ContentDatabaseDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentDatabaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentDatabaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentDatabaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentDatabaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); } public static class ContentEditorWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploEmptyContentEditorWebpart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploContentEditorWebpartWithUrlLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentEditorWebpartWithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploEmptyContentEditorWebpart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploContentEditorWebpartWithUrlLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentEditorWebpartWithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); } public static class ContentTypeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentSetContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypesWithFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarhicalContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentSetContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypesWithFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarhicalContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); } public static class ContentTypeFieldLinkDefinitionTests @@ -669,77 +696,77 @@ public static class ContentTypeFieldLinkDefinitionTests public static class ContentTypeLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); } public static class CurrencyFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCurrencyFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CurrencyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCurrencyFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CurrencyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); } public static class DateTimeFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDateTimeFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DateTimeFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDateTimeFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DateTimeFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); } public static class DeleteWebPartsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployDeleteWebPartsDefinition_ByTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DeleteWebPartsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployDeleteWebPartsDefinition_ByTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DeleteWebPartsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); } public static class DiagnosticsServiceBaseDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDiagnosticsServiceBaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DiagnosticsServiceBaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDiagnosticsServiceBaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DiagnosticsServiceBaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); } public static class DocumentParserDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentParserDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DocumentParserDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentParserDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DocumentParserDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); } public static class EventReceiverDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentTypeSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample EventReceiverDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentTypeSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample EventReceiverDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); } public static class FarmDefinitionTests @@ -755,31 +782,31 @@ public static class FarmDefinitionTests public static class FarmSolutionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FarmSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FarmSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); } public static class FeatureDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBSiteFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample OOTBFeatureInheritance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FeatureDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n Site Collection Model\r\n Farm Model\r\n Web Application Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBSiteFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample OOTBFeatureInheritance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FeatureDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); } public static class FieldDefinitionTests @@ -813,21 +840,21 @@ public static class FolderDefinitionTests public static class GuidFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleGuidFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample GuidFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleGuidFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample GuidFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); } public static class HideContentTypeFieldLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); } public static class HideContentTypeLinksDefinitionTests @@ -853,75 +880,75 @@ public static class InformationRightsManagementSettingsDefinitionTests public static class JobDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJobDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample JobDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJobDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample JobDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); } public static class ListDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateId = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployOOTBListsLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPromotedLinksList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateId = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployOOTBListsLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPromotedLinksList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); } public static class ListFieldLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); } public static class ListItemDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListItemDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListItemDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); } public static class ListItemFieldValueDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemFieldValueDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListItemFieldValueDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemFieldValueDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListItemFieldValueDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); } public static class ListViewDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViews = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCustomUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCAMLQuery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListViewDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViews = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCustomUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCAMLQuery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListViewDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); } public static class ListViewWebPartDefinitionTests @@ -955,21 +982,21 @@ public static class LookupFieldDefinitionTests public static class ManagedAccountDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleManagedAccountDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ManagedAccountDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleManagedAccountDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ManagedAccountDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); } public static class MasterPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMasterPageDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMasterPageDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); } public static class MasterPageSettingsDefinitionTests @@ -997,11 +1024,11 @@ public static class ModuleFileDefinitionTests public static class MultiChoiceFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMultiChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MultiChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMultiChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MultiChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); } public static class NoteFieldDefinitionTests @@ -1017,71 +1044,71 @@ public static class NoteFieldDefinitionTests public static class NumberFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNumberFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample NumberFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNumberFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample NumberFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); } public static class PrefixDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePrefixDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PrefixDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePrefixDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PrefixDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); } public static class PropertyDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFarm = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PropertyDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n Web Application Model\r\n Farm Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFarm = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PropertyDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); } public static class QuickLaunchNavigationNodeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample QuickLaunchNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample QuickLaunchNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); } public static class RegionalSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleRegionalSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RegionalSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleRegionalSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegionalSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); } public static class RemoveContentTypeFieldLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFieldLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFieldLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); } public static class RemoveContentTypeLinksDefinitionTests @@ -1097,57 +1124,57 @@ public static class RemoveContentTypeLinksDefinitionTests public static class ResetRoleInheritanceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ResetRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ResetRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); } public static class RootWebDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanUpdateRootWebProperties = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanProvisionRootWebLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RootWebDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanUpdateRootWebProperties = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanProvisionRootWebLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RootWebDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); } public static class SandboxSolutionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSandboxSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SandboxSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSandboxSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SandboxSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); } public static class ScriptEditorWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleScriptEditorWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployScriptEditorWebPartwithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ScriptEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleScriptEditorWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployScriptEditorWebPartwithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ScriptEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); } public static class SecureStoreApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecureStoreApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecureStoreApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecureStoreApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecureStoreApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); } public static class SecurityGroupDefinitionTests @@ -1165,13 +1192,13 @@ public static class SecurityGroupDefinitionTests public static class SecurityGroupLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); } public static class SecurityRoleDefinitionTests @@ -1187,11 +1214,11 @@ public static class SecurityRoleDefinitionTests public static class SecurityRoleLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); } public static class SiteDefinitionTests @@ -1217,13 +1244,13 @@ public static class SP2013WorkflowDefinitionTests public static class SP2013WorkflowSubscriptionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowSubscriptionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowSubscriptionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); } public static class TargetApplicationDefinitionTests @@ -1239,43 +1266,43 @@ public static class TargetApplicationDefinitionTests public static class TextFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTextFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TextFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTextFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TextFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); } public static class TopNavigationNodeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TopNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TopNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); } public static class TreeViewSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTreeViewSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TreeViewSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTreeViewSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TreeViewSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); } public static class UniqueContentTypeFieldsOrderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeFieldsOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeFieldsOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); } public static class UniqueContentTypeOrderDefinitionTests @@ -1291,101 +1318,101 @@ public static class UniqueContentTypeOrderDefinitionTests public static class URLFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleURLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample URLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleURLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample URLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); } public static class UserCustomActionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionWithJquery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UserCustomActionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionWithJquery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UserCustomActionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); } public static class UserFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleUserFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UserFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleUserFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UserFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); } public static class WebApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); } public static class WebConfigModificationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebConfigModificationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebConfigModificationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebConfigModificationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebConfigModificationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); } public static class WebDefinitionTest { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebDefinitionTestClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebDefinitionTestClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); } public static class WebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartGalleryFileName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartWithPreprocessedXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartGalleryFileName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartWithPreprocessedXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); } public static class WebPartPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPageWithCustomTemplate = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPagesUnderFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebPartPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPageWithCustomTemplate = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPagesUnderFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebPartPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); } public static class WelcomePageDefinitionTests @@ -1405,13 +1432,13 @@ public static class WelcomePageDefinitionTests public static class WikiPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWikiPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWikiPagesUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WikiPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWikiPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWikiPagesUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WikiPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); } public static class XsltListViewWebPartDefinitionTests @@ -1431,91 +1458,91 @@ public static class XsltListViewWebPartDefinitionTests public static class AudienceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAudienceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AudienceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAudienceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AudienceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); } public static class ContactFieldControlDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContactFieldControlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContactFieldControlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContactFieldControlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContactFieldControlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); } public static class ContentByQueryWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentByQueryWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentByQueryWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentByQueryWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentByQueryWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); } public static class ControlDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleControlDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ControlDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleControlDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ControlDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); } public static class CustomDocumentIdProviderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCustomDocumentIdProviderDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomDocumentIdProviderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCustomDocumentIdProviderDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomDocumentIdProviderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); } public static class HTMLFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleHTMLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HTMLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleHTMLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HTMLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); } public static class ImageFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ImageFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ImageFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); } public static class ImageRenditionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageRenditionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ImageRenditionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageRenditionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ImageRenditionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); } public static class ItemDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleItemDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ItemDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleItemDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ItemDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); } public static class JavaScriptDisplayTemplateDefinitionTests @@ -1531,45 +1558,45 @@ public static class JavaScriptDisplayTemplateDefinitionTests public static class LinkFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample LinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); } public static class MediaFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMediaFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MediaFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMediaFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MediaFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); } public static class PageLayoutAndSiteTemplateSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PageLayoutAndSiteTemplateSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PageLayoutAndSiteTemplateSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); } public static class PublishingPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPage = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageWithCustomeLayout = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPage = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageWithCustomeLayout = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); } public static class PublishingPageLayoutDefinitionTests @@ -1585,11 +1612,11 @@ public static class PublishingPageLayoutDefinitionTests public static class SearchConfigurationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchConfigurationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchConfigurationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchConfigurationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchConfigurationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); } public static class SearchResultDefinitionTests @@ -1605,31 +1632,31 @@ public static class SearchResultDefinitionTests public static class SearchSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); } public static class SiteFeedWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteFeedWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteFeedWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteFeedWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteFeedWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); } public static class SummaryLinkFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); } public static class SummaryLinkWebPartDefinitionTests @@ -1655,65 +1682,65 @@ public static class TaxonomyFieldDefinitionTests public static class TaxonomyTermDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTerms = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTerms = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); } public static class TaxonomyTermGroupDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); } public static class TaxonomyTermLabelDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermLabelDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermLabelDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermLabelDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermLabelDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); } public static class TaxonomyTermSetDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermSets = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermSetDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermSets = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermSetDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); } public static class TaxonomyTermStoreDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample LookupTermStoreByName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample LookupDefaultSiteTermStore = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermStoreDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LookupTermStoreByName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LookupDefaultSiteTermStore = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermStoreDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); } public static class WebNavigationSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebNavigationSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebNavigationSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebNavigationSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebNavigationSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); } public static class ChangeWebTitleAndDescriptionDefinition diff --git a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj index c7f3eded6..d11d4331f 100644 --- a/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj +++ b/SPMeta2/SubPointSolutions.Docs/SubPointSolutions.Docs.csproj @@ -298,6 +298,7 @@ + diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.cs b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.cs new file mode 100644 index 000000000..21816f059 --- /dev/null +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.cs @@ -0,0 +1,53 @@ +using System; +using Microsoft.SharePoint.Client; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using SPMeta2.Common; +using SPMeta2.Containers.Services.Base; +using SPMeta2.CSOM.ModelHandlers; +using SPMeta2.CSOM.ModelHosts; +using SPMeta2.CSOM.Services; +using SPMeta2.Definitions; +using SPMeta2.Docs.ProvisionSamples.Base; +using SPMeta2.Enumerations; +using SPMeta2.Models; +using SPMeta2.Syntax.Default; +using SPMeta2.Syntax.Default.Modern; +using SPMeta2.Utils; + +namespace SubPointSolutions.Docs.Views.SPMeta2.extensibility +{ + + public class Regressiontesting : ProvisionTestBase + { + #region methods + + [TestMethod] + [TestCategory("Regression.Rnd.Web")] + public void CanDeployRandom_WebDefinition() + { + TestRandomDefinition(); + } + + private void TestRandomDefinition() { } + + #endregion + } + + public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase + { + public override DefinitionBase GenerateRandomDefinition(Action action) + { + return WithEmptyDefinition(def => + { + def.Title = Rnd.String(); + def.Description = Rnd.String(); + + + def.Url = Rnd.String(16); + + def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite; + }); + } + } + +} \ No newline at end of file diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md index 270e0c28e..752c3d9bc 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md @@ -4,7 +4,7 @@ FileName: regression-testing.html Order: 700 --- -#### Overview +### Overview Regression testing is a cornerstone of the SPMeta2 library and its QA process. The sole purpose of the regression testing is to ensure that provision works exactly as it supposed to work under both CSOM/SSOM for both SharePoint 2013 and SharePoint online tenants. Hence, we use a mixture of unit testing and integration testing with real SharePoint 2013 farms and SharePoint online tenants to ensure the outstanding quality of the SPMeta2 library. Altogether, we call that 'regression testing'. @@ -61,7 +61,7 @@ Running tests on remote machines comes handy for SPMeta2 regression testing. We NCruhc helps to parallelize regression testing execution amoung dozen SharePoint 2013 farms. Same strategy goes with SharePoint online tenants as well. Such move cuts the total regression testing time to 45-60 minutes allowing us to ensure outstanding quality of SPMeta2 library. -#### SPMeta2 tests solution structure +### SPMeta2 tests solution structure * /Tests/Impl/ folder housed all tests - unit and integration tests * /Tests/Validators/ folder houses 'validator handler' for CSOM/SSOM * /Tests/Containers/ folder has 'definition generators' and 'running hosts' @@ -72,7 +72,7 @@ For unit tests you need to focus on /Tests/Impl/ folder and two solutions. Check Regression testing is much more complicated, several solution and specific flow is required (more details later in this article) -#### SPMeta2 unit testing +### SPMeta2 unit testing SPMeta2 unit tests are simple C# unit tests. All such tests must live under "CI.Core" category so that they will be run every checkin on github. We use [AppVeyor](https://www.appveyor.com) continiuous integration service that hooks up with every checkin on github. Alternatively, you can run all tests under "CI.Core" category on your development envrionment. @@ -117,7 +117,7 @@ For unit tests you need to focus on /Tests/Impl/ folder and two solutions. Place * SPMeta2.Regression.Impl.Tests * SPMeta2.Regression.Tests -#### SPMeta2 regression testing +### SPMeta2 regression testing Regression testing is more complicated. As mentioned early, regression testing has a complictaed execution flow and it required either SharePoint 2013 farm or SharePoint online tenant. @@ -138,16 +138,11 @@ There are two main categories for regression test: * 'random' regression tests * scenario regression tests -#### Random regression tests +### Random regression tests **Random regression** tests aim to cover very basic provision scenarios for an artifact. They live under "RandomDefinitionSelfDiagnoosticTest" class and usually looks as this: -[TestMethod] -[TestCategory("Regression.Rnd.Web")] -public void CanDeployRandom_WebDefinition() -{ - TestRandomDefinition(); -} + Every definition has to have a 'random' regression tests, and the presence of such test is checked by 'RandomDefinitionTest_ShouldHave_Tests_ForAllDefinitions' test. If you have a new definition, you have to follow a name convention and add 'random' regression test. @@ -167,22 +162,7 @@ In both project we have 'DefinitionGenerators' folder that houses 'random defini Such classes generate a random, valid definition that can be deploye to SharePoint. Check 'WebDefinitionGenerator', it looks as following: -public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase - { - public override DefinitionBase GenerateRandomDefinition(Action action) - { - return WithEmptyDefinition(def => - { - def.Title = Rnd.String(); - def.Description = Rnd.String(); - - - def.Url = Rnd.String(16); - - def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite; - }); - } - } + m.WebTemplate, o => o.GetWebTemplate()); +* ShouldBeEqual(m => m.UseUniquePermission, o => o.HasUniqueRoleAssignments) + +The first object os always definition instance, the second one is the SharePoint object. Most of the time you can compare simple props such as string and numbers. +Sometimes you need to skip the property (if it's null, so you don't need to validate it), so that the following methd is to be used: +* assert.SkipProperty(m => m.CustomWebTemplate); + +Finally, if the props are complex and can't be compard with out of the box methods, use the following ShouldBeEqual() override: +* assert.ShouldBeEqual((p, s, d) => {} ); + +You must return PropertyValidationResult object, check [WebDefinitionValidator](https://github.com/SubPointSolutions/spmeta2/blob/master/SPMeta2/SPMeta2.Regression.SSOM/Validation/WebDefinitionValidator.cs) and .Url comparation to get into more details. + +### New definition check list + +On rare ocassions you may be interested to create a new definition or enhance existing one. Here is the standard flow and checklist on how to create a new definition and push it to the SPMeta2 regresison testing. +For all cases, refer to WebDefinition and its model handlers / validators for the fuether reference. + +* Check [custom definition manual here](/spmeta2/extensibility/custom-definition.html) +* Create new definition +* Create new model handlers for CSOM/SSOM +* Create new model syntax +* Create new definition generator +* Create new definition validators for CSOM/SSOM +* Update RandomDefinitionSelfDiagnoosticTest with new random test +* Add more scenarios for the created definition + +Having said that, most of the definition are already created by the SPMeta2 team. + +### Further reading +* [definitions concept](/spmeta2/reference/definitions) +* [models concept](/spmeta2/reference/models) +* [creaeting custom definition](/spmeta2/extensibility/custom-definition) From ebec4727b18c389a9fe6f445d7dd7725318890da Mon Sep 17 00:00:00 2001 From: Support Date: Sat, 15 Oct 2016 11:36:40 +1100 Subject: [PATCH 23/27] + Add documentation on regression testing #911 --- .../Code/Samples/m2Samples.cs | 1997 +++++++++-------- .../extensibility/regression-testing.cs | 9 +- .../extensibility/regression-testing.md | 33 +- .../writing-custom-definition.md | 2 +- 4 files changed, 1035 insertions(+), 1006 deletions(-) diff --git a/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs b/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs index 783092f3e..14fe4a05d 100644 --- a/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs +++ b/SPMeta2/SubPointSolutions.Docs/Code/Samples/m2Samples.cs @@ -7,1748 +7,1757 @@ namespace SubPointSolutions.Docs.Code.Samples public static class m2Samples { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CanDeployRandom_WebDefinition\r\n \r\n \r\n \r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n TestRandomDefinition<WebDefinition>();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n CanDeployRandom_WebDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.CanDeployRandom_WebDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>private void TestRandomDefinition<WebDefinition>() { }</MethodBodyWithFunction>\r\n <MethodBody />\r\n <Language>cs</Language>\r\n <Namespace>SubPointSolutions.Docs.Views.SPMeta2.extensibility</Namespace>\r\n <ClassName>Regressiontesting</ClassName>\r\n <MethodName>TestRandomDefinition</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.TestRandomDefinition</MethodFullName>\r\n <ClassFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting</ClassFullName>\r\n <MethodParametersCount>0</MethodParametersCount>\r\n <SourceFileName>regression-testing.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>regression-testing</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\extensibility</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs</SourceFilePath>\r\n</DocSample>") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>true</IsMethod>\r\n <IsClass>false</IsClass>\r\n <Tags />\r\n <Title>GenerateRandomDefinition\r\n \r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n return WithEmptyDefinition(def =>\r\n{\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n GenerateRandomDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator.GenerateRandomDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 1\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Critical\r\n \r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n // handle critical event the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Critical\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Critical\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Error\r\n \r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n // handle error the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Error\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Error\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Warning\r\n \r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n // handle warning the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Warning\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Warning\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Information\r\n \r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n // handle info the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Information\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Information\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Verbose\r\n \r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n // handle verbose the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Verbose\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Verbose\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStart\r\n \r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStop\r\n \r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStop\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStop\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityTransfer\r\n \r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityTransfer\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityTransfer\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomLogginService\r\n \r\n \r\n \r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n // get an instance of ServiceContainer\r\n// override .Services collection with the right mapping\r\n// typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\nvar serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\nserviceInstancies.Clear();\r\nserviceInstancies.Add(new CustomLoggingService());\r\n\r\n// provision models as usual\r\n// from now on, all logging calls will go to CustomLoggingService instance\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n RegisterCustomLogginService\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.RegisterCustomLogginService\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GetDefaultTraceServiceInstance\r\n \r\n \r\n \r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n // get an instance of ServiceContainer\r\n// then get an instance of required service such as TraceServiceBase\r\n\r\nvar traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n// use trace methods as usual\r\ntraceService.Verbose(0, \"my verbose message\");\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n GetDefaultTraceServiceInstance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.GetDefaultTraceServiceInstance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>true</IsMethod>\r\n <IsClass>false</IsClass>\r\n <Tags />\r\n <Title>SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Regressiontesting\r\n \r\n public class Regressiontesting : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n }\r\n public class Regressiontesting : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n RegressiontestingClass\r\n \r\n ClassRegressiontestingClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebDefinitionGenerator\r\n \r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n {\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n }\r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n{\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n WebDefinitionGeneratorClass\r\n \r\n ClassWebDefinitionGeneratorClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLoggingService\r\n \r\n public class CustomLoggingService : TraceServiceBase\r\n {\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n }\r\n public class CustomLoggingService : TraceServiceBase\r\n{\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n CustomLoggingServiceClass\r\n \r\n ClassCustomLoggingServiceClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLogginRegistration\r\n \r\n \r\n public class CustomLogginRegistration : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n }\r\n public class CustomLogginRegistration : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping\r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n CustomLogginRegistrationClass\r\n \r\n ClassCustomLogginRegistrationClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") - }); +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>protected void TestRandomDefinition<WebDefinition>() { }</MethodBodyWithFunction>\r\n <MethodBody />\r\n <Language>cs</Language>\r\n <Namespace>SubPointSolutions.Docs.Views.SPMeta2.extensibility</Namespace>\r\n <ClassName>RegressionTestingBase</ClassName>\r\n <MethodName>TestRandomDefinition</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.RegressionTestingBase.TestRandomDefinition</MethodFullName>\r\n <ClassFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.RegressionTestingBase</ClassFullName>\r\n <MethodParametersCount>0</MethodParametersCount>\r\n <SourceFileName>regression-testing.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>regression-testing</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\extensibility</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs</SourceFilePath>\r\n</DocSample>") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <IsMethod>true</IsMethod>\r\n <IsClass>false</IsClass>\r\n <Tags />\r\n <Title>CanDeployRandom_WebDefinition\r\n \r\n \r\n \r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n TestRandomDefinition<WebDefinition>();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n CanDeployRandom_WebDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.CanDeployRandom_WebDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GenerateRandomDefinition\r\n \r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n return WithEmptyDefinition(def =>\r\n{\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n GenerateRandomDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator.GenerateRandomDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 1\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Critical\r\n \r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n // handle critical event the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Critical\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Critical\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Error\r\n \r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n // handle error the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Error\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Error\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Warning\r\n \r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n // handle warning the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Warning\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Warning\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Information\r\n \r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n // handle info the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Information\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Information\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Verbose\r\n \r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n // handle verbose the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Verbose\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Verbose\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStart\r\n \r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStop\r\n \r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStop\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStop\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityTransfer\r\n \r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityTransfer\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityTransfer\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomLogginService\r\n \r\n \r\n \r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n // get an instance of ServiceContainer\r\n// override .Services collection with the right mapping\r\n// typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\nvar serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\nserviceInstancies.Clear();\r\nserviceInstancies.Add(new CustomLoggingService());\r\n\r\n// provision models as usual\r\n// from now on, all logging calls will go to CustomLoggingService instance\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n RegisterCustomLogginService\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.RegisterCustomLogginService\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GetDefaultTraceServiceInstance\r\n \r\n \r\n \r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n // get an instance of ServiceContainer\r\n// then get an instance of required service such as TraceServiceBase\r\n\r\nvar traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n// use trace methods as usual\r\ntraceService.Verbose(0, \"my verbose message\");\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n GetDefaultTraceServiceInstance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.GetDefaultTraceServiceInstance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <IsMethod>true</IsMethod>\r\n <IsClass>false</IsClass>\r\n <Tags />\r\n <Title>SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n RegressionTestingBase\r\n \r\n public class RegressionTestingBase : ProvisionTestBase\r\n {\r\n protected void TestRandomDefinition<WebDefinition>() { }\r\n }\r\n public class RegressionTestingBase : ProvisionTestBase\r\n{\r\n protected void TestRandomDefinition<WebDefinition>() { }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n RegressionTestingBase\r\n RegressionTestingBaseClass\r\n \r\n ClassRegressionTestingBaseClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.RegressionTestingBase\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Regressiontesting\r\n \r\n public class Regressiontesting : RegressionTestingBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n #endregion\r\n }\r\n public class Regressiontesting : RegressionTestingBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n RegressiontestingClass\r\n \r\n ClassRegressiontestingClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebDefinitionGenerator\r\n \r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n {\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n }\r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n{\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n WebDefinitionGeneratorClass\r\n \r\n ClassWebDefinitionGeneratorClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLoggingService\r\n \r\n public class CustomLoggingService : TraceServiceBase\r\n {\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n }\r\n public class CustomLoggingService : TraceServiceBase\r\n{\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n CustomLoggingServiceClass\r\n \r\n ClassCustomLoggingServiceClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLogginRegistration\r\n \r\n \r\n public class CustomLogginRegistration : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n }\r\n public class CustomLogginRegistration : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping\r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n CustomLogginRegistrationClass\r\n \r\n ClassCustomLogginRegistrationClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") + }); + public static class RegressionTestingBase + { + public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>protected void TestRandomDefinition<WebDefinition>() { }</MethodBodyWithFunction>\r\n <MethodBody />\r\n <Language>cs</Language>\r\n <Namespace>SubPointSolutions.Docs.Views.SPMeta2.extensibility</Namespace>\r\n <ClassName>RegressionTestingBase</ClassName>\r\n <MethodName>TestRandomDefinition</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.RegressionTestingBase.TestRandomDefinition</MethodFullName>\r\n <ClassFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.RegressionTestingBase</ClassFullName>\r\n <MethodParametersCount>0</MethodParametersCount>\r\n <SourceFileName>regression-testing.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>regression-testing</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\extensibility</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs</SourceFilePath>\r\n</DocSample>") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>RegressionTestingBase\r\n \r\n public class RegressionTestingBase : ProvisionTestBase\r\n {\r\n protected void TestRandomDefinition<WebDefinition>() { }\r\n }\r\n public class RegressionTestingBase : ProvisionTestBase\r\n{\r\n protected void TestRandomDefinition<WebDefinition>() { }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n RegressionTestingBase\r\n RegressionTestingBaseClass\r\n \r\n ClassRegressionTestingBaseClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.RegressionTestingBase\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") + }); + public static SubPointSolutions.Docs.Code.Data.DocSample TestRandomDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>protected void TestRandomDefinition<WebDefinition>() { }</MethodBodyWithFunction>\r\n <MethodBody />\r\n <Language>cs</Language>\r\n <Namespace>SubPointSolutions.Docs.Views.SPMeta2.extensibility</Namespace>\r\n <ClassName>RegressionTestingBase</ClassName>\r\n <MethodName>TestRandomDefinition</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.RegressionTestingBase.TestRandomDefinition</MethodFullName>\r\n <ClassFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.RegressionTestingBase</ClassFullName>\r\n <MethodParametersCount>0</MethodParametersCount>\r\n <SourceFileName>regression-testing.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>regression-testing</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\extensibility</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs</SourceFilePath>\r\n</DocSample>"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegressionTestingBaseClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>RegressionTestingBase\r\n \r\n public class RegressionTestingBase : ProvisionTestBase\r\n {\r\n protected void TestRandomDefinition<WebDefinition>() { }\r\n }\r\n public class RegressionTestingBase : ProvisionTestBase\r\n{\r\n protected void TestRandomDefinition<WebDefinition>() { }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n RegressionTestingBase\r\n RegressionTestingBaseClass\r\n \r\n ClassRegressionTestingBaseClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.RegressionTestingBase\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); + } + public static class Regressiontesting { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CanDeployRandom_WebDefinition\r\n \r\n \r\n \r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n TestRandomDefinition<WebDefinition>();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n CanDeployRandom_WebDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.CanDeployRandom_WebDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>private void TestRandomDefinition<WebDefinition>() { }</MethodBodyWithFunction>\r\n <MethodBody />\r\n <Language>cs</Language>\r\n <Namespace>SubPointSolutions.Docs.Views.SPMeta2.extensibility</Namespace>\r\n <ClassName>Regressiontesting</ClassName>\r\n <MethodName>TestRandomDefinition</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.TestRandomDefinition</MethodFullName>\r\n <ClassFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting</ClassFullName>\r\n <MethodParametersCount>0</MethodParametersCount>\r\n <SourceFileName>regression-testing.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>regression-testing</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\extensibility</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs</SourceFilePath>\r\n</DocSample>") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>Regressiontesting\r\n \r\n public class Regressiontesting : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n }\r\n public class Regressiontesting : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n RegressiontestingClass\r\n \r\n ClassRegressiontestingClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CanDeployRandom_WebDefinition\r\n \r\n \r\n \r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n TestRandomDefinition<WebDefinition>();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n CanDeployRandom_WebDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.CanDeployRandom_WebDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Regressiontesting\r\n \r\n public class Regressiontesting : RegressionTestingBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n #endregion\r\n }\r\n public class Regressiontesting : RegressionTestingBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n RegressiontestingClass\r\n \r\n ClassRegressiontestingClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployRandom_WebDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CanDeployRandom_WebDefinition\r\n \r\n \r\n \r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n TestRandomDefinition<WebDefinition>();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n CanDeployRandom_WebDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.CanDeployRandom_WebDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TestRandomDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>private void TestRandomDefinition<WebDefinition>() { }</MethodBodyWithFunction>\r\n <MethodBody />\r\n <Language>cs</Language>\r\n <Namespace>SubPointSolutions.Docs.Views.SPMeta2.extensibility</Namespace>\r\n <ClassName>Regressiontesting</ClassName>\r\n <MethodName>TestRandomDefinition</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.TestRandomDefinition</MethodFullName>\r\n <ClassFullName>SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting</ClassFullName>\r\n <MethodParametersCount>0</MethodParametersCount>\r\n <SourceFileName>regression-testing.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>regression-testing</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\extensibility</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs</SourceFilePath>\r\n</DocSample>"); - public static SubPointSolutions.Docs.Code.Data.DocSample RegressiontestingClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>Regressiontesting\r\n \r\n public class Regressiontesting : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n }\r\n public class Regressiontesting : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n private void TestRandomDefinition<WebDefinition>() { }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n RegressiontestingClass\r\n \r\n ClassRegressiontestingClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployRandom_WebDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CanDeployRandom_WebDefinition\r\n \r\n \r\n \r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n TestRandomDefinition<WebDefinition>();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n CanDeployRandom_WebDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting.CanDeployRandom_WebDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegressiontestingClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Regressiontesting\r\n \r\n public class Regressiontesting : RegressionTestingBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n #endregion\r\n }\r\n public class Regressiontesting : RegressionTestingBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Regression.Rnd.Web\")]\r\n public void CanDeployRandom_WebDefinition()\r\n {\r\n TestRandomDefinition<WebDefinition>();\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n Regressiontesting\r\n RegressiontestingClass\r\n \r\n ClassRegressiontestingClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.Regressiontesting\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); } public static class WebDefinitionGenerator { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GenerateRandomDefinition\r\n \r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n return WithEmptyDefinition(def =>\r\n{\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n GenerateRandomDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator.GenerateRandomDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 1\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebDefinitionGenerator\r\n \r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n {\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n }\r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n{\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n WebDefinitionGeneratorClass\r\n \r\n ClassWebDefinitionGeneratorClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GenerateRandomDefinition\r\n \r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n return WithEmptyDefinition(def =>\r\n{\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n GenerateRandomDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator.GenerateRandomDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 1\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebDefinitionGenerator\r\n \r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n {\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n }\r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n{\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n WebDefinitionGeneratorClass\r\n \r\n ClassWebDefinitionGeneratorClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample GenerateRandomDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GenerateRandomDefinition\r\n \r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n return WithEmptyDefinition(def =>\r\n{\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n GenerateRandomDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator.GenerateRandomDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 1\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebDefinitionGeneratorClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebDefinitionGenerator\r\n \r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n {\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n }\r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n{\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n WebDefinitionGeneratorClass\r\n \r\n ClassWebDefinitionGeneratorClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample GenerateRandomDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GenerateRandomDefinition\r\n \r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n return WithEmptyDefinition(def =>\r\n{\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n GenerateRandomDefinition\r\n \r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator.GenerateRandomDefinition\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 1\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebDefinitionGeneratorClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebDefinitionGenerator\r\n \r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n {\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n }\r\n public class WebDefinitionGenerator : TypedDefinitionGeneratorServiceBase<WebDefinition>\r\n{\r\n public override DefinitionBase GenerateRandomDefinition(Action<DefinitionBase> action)\r\n {\r\n return WithEmptyDefinition(def =>\r\n {\r\n def.Title = Rnd.String();\r\n def.Description = Rnd.String();\r\n\r\n\r\n def.Url = Rnd.String(16);\r\n\r\n def.WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite;\r\n });\r\n }\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility\r\n WebDefinitionGenerator\r\n WebDefinitionGeneratorClass\r\n \r\n ClassWebDefinitionGeneratorClass\r\n SubPointSolutions.Docs.Views.SPMeta2.extensibility.WebDefinitionGenerator\r\n 0\r\n regression-testing.cs\r\n regression-testing\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\regression-testing.cs\r\n"); } public static class CustomDefinitions { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandler = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandlerWithSyntax = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandlerWithEvents = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomDefinitionsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandler = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandler\r\n \r\n \r\n \r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandler\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandler\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandlerWithSyntax = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithSyntax\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithSyntax\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomModelHandlerWithEvents = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomModelHandlerWithEvents\r\n \r\n \r\n \r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\ncsomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n});\r\n\r\nusing (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n RegisterCustomModelHandlerWithEvents\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions.RegisterCustomModelHandlerWithEvents\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomDefinitionsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomDefinitions\r\n \r\n \r\n public class CustomDefinitions : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomDefinitions : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandler()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddDefinitionNode(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithSyntax()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomModelHandlerWithEvents()\r\n {\r\n var csomProvisionService = new CSOMProvisionService();\r\n\r\n csomProvisionService.RegisterModelHandler(new ChangeWebTitleAndDescriptionModelHandler());\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddChangeWebTitleAndDescription(new ChangeWebTitleAndDescriptionDefinition\r\n {\r\n Title = \"A new name for the web\",\r\n Description = \"Some changes done by ChangeWebTitleAndDescriptionDefinition\"\r\n },\r\n changeWebAndTitle =>\r\n {\r\n changeWebAndTitle.OnProvisioning<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n\r\n changeWebAndTitle.OnProvisioned<Web, ChangeWebTitleAndDescriptionDefinition>(cntx =>\r\n {\r\n var cntxWeb = cntx.Object;\r\n var cntxDef = cntx.ObjectDefinition;\r\n\r\n // do stuff\r\n });\r\n });\r\n });\r\n\r\n using (var clientContext = new ClientContext(CSOMSiteUrl))\r\n csomProvisionService.DeployWebModel(clientContext, webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDefinitions\r\n CustomDefinitionsClass\r\n \r\n ClassCustomDefinitionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDefinitions\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); } public static class ChangeWebTitleAndDescriptionModelHandler { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample DeployModel = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionModelHandlerClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DeployModel = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n DeployModel\r\n \r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\nvar currentWeb = webModeHost.HostWeb;\r\nvar context = currentWeb.Context;\r\n\r\n// raise OnProvisioning event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\n// do stuff\r\ncurrentWeb.Title = definition.Title;\r\ncurrentWeb.Description = definition.Description;\r\n\r\n// raise OnProvisioned event\r\nInvokeOnModelEvent(this, new ModelEventArgs\r\n{\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n});\r\n\r\ncurrentWeb.Update();\r\ncontext.ExecuteQuery();\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n DeployModel\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler.DeployModel\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionModelHandlerClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionModelHandler\r\n \r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n {\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n }\r\n public class ChangeWebTitleAndDescriptionModelHandler : CSOMModelHandlerBase\r\n{\r\n public override Type TargetType\r\n {\r\n get { return typeof(ChangeWebTitleAndDescriptionDefinition); }\r\n }\r\n\r\n public override void DeployModel(object modelHost, DefinitionBase model)\r\n {\r\n var webModeHost = modelHost.WithAssertAndCast<WebModelHost>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var definition = model.WithAssertAndCast<ChangeWebTitleAndDescriptionDefinition>(\r\n \"model\",\r\n value => value.RequireNotNull());\r\n\r\n var currentWeb = webModeHost.HostWeb;\r\n var context = currentWeb.Context;\r\n\r\n // raise OnProvisioning event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioning,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n // do stuff\r\n currentWeb.Title = definition.Title;\r\n currentWeb.Description = definition.Description;\r\n\r\n // raise OnProvisioned event\r\n InvokeOnModelEvent(this, new ModelEventArgs\r\n {\r\n CurrentModelNode = null,\r\n Model = null,\r\n EventType = ModelEventType.OnProvisioned,\r\n Object = currentWeb,\r\n ObjectType = typeof(Web),\r\n ObjectDefinition = definition,\r\n ModelHost = modelHost\r\n });\r\n\r\n currentWeb.Update();\r\n context.ExecuteQuery();\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionModelHandler\r\n ChangeWebTitleAndDescriptionModelHandlerClass\r\n \r\n ClassChangeWebTitleAndDescriptionModelHandlerClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionModelHandler\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); } public static class ChangeWebTitleAndDescriptionDefinitionSyntax { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample AddChangeWebTitleAndDescription_2_Params = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AddChangeWebTitleAndDescription_3_Params = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionDefinitionSyntaxClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AddChangeWebTitleAndDescription_2_Params = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_2_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 2\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AddChangeWebTitleAndDescription_3_Params = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n AddChangeWebTitleAndDescription\r\n \r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n return model.AddDefinitionNode(definition, action);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n AddChangeWebTitleAndDescription_3_Params\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax.AddChangeWebTitleAndDescription\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 3\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionDefinitionSyntaxClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n \r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n {\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n }\r\n public static class ChangeWebTitleAndDescriptionDefinitionSyntax\r\n{\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition)\r\n {\r\n return AddChangeWebTitleAndDescription(model, definition, null);\r\n }\r\n\r\n public static ModelNode AddChangeWebTitleAndDescription(this ModelNode model,\r\n ChangeWebTitleAndDescriptionDefinition definition, Action<ModelNode>\r\n action)\r\n {\r\n return model.AddDefinitionNode(definition, action);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinitionSyntax\r\n ChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinitionSyntax\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); } public static class CustomLoggingService { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Critical\r\n \r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n // handle critical event the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Critical\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Critical\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Error\r\n \r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n // handle error the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Error\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Error\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Warning\r\n \r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n // handle warning the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Warning\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Warning\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Information\r\n \r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n // handle info the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Information\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Information\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Verbose\r\n \r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n // handle verbose the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Verbose\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Verbose\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStart\r\n \r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStop\r\n \r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStop\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStop\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityTransfer\r\n \r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityTransfer\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityTransfer\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLoggingService\r\n \r\n public class CustomLoggingService : TraceServiceBase\r\n {\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n }\r\n public class CustomLoggingService : TraceServiceBase\r\n{\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n CustomLoggingServiceClass\r\n \r\n ClassCustomLoggingServiceClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Critical\r\n \r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n // handle critical event the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Critical\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Critical\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Error\r\n \r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n // handle error the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Error\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Error\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Warning\r\n \r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n // handle warning the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Warning\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Warning\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Information\r\n \r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n // handle info the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Information\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Information\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Verbose\r\n \r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n // handle verbose the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Verbose\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Verbose\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStart\r\n \r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStop\r\n \r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStop\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStop\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityTransfer\r\n \r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityTransfer\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityTransfer\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLoggingService\r\n \r\n public class CustomLoggingService : TraceServiceBase\r\n {\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n }\r\n public class CustomLoggingService : TraceServiceBase\r\n{\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n CustomLoggingServiceClass\r\n \r\n ClassCustomLoggingServiceClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample Critical = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Critical\r\n \r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n // handle critical event the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Critical\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Critical\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample Error = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Error\r\n \r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n // handle error the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Error\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Error\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample Warning = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Warning\r\n \r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n // handle warning the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Warning\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Warning\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample Information = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Information\r\n \r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n // handle info the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Information\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Information\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample Verbose = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Verbose\r\n \r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n // handle verbose the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Verbose\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Verbose\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TraceActivityStart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStart\r\n \r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TraceActivityStop = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStop\r\n \r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStop\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStop\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TraceActivityTransfer = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityTransfer\r\n \r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityTransfer\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityTransfer\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomLoggingServiceClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLoggingService\r\n \r\n public class CustomLoggingService : TraceServiceBase\r\n {\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n }\r\n public class CustomLoggingService : TraceServiceBase\r\n{\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n CustomLoggingServiceClass\r\n \r\n ClassCustomLoggingServiceClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample Critical = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Critical\r\n \r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n // handle critical event the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Critical\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Critical\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample Error = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Error\r\n \r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n // handle error the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Error\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Error\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample Warning = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Warning\r\n \r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n // handle warning the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Warning\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Warning\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample Information = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Information\r\n \r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n // handle info the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Information\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Information\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample Verbose = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n Verbose\r\n \r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n // handle verbose the way you like\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n Verbose\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.Verbose\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TraceActivityStart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStart\r\n \r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TraceActivityStop = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityStop\r\n \r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityStop\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityStop\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 2\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TraceActivityTransfer = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n TraceActivityTransfer\r\n \r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n // no implementation is required\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n TraceActivityTransfer\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService.TraceActivityTransfer\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 3\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomLoggingServiceClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLoggingService\r\n \r\n public class CustomLoggingService : TraceServiceBase\r\n {\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n }\r\n public class CustomLoggingService : TraceServiceBase\r\n{\r\n\r\n public override void Critical(int id, object message, Exception exception)\r\n {\r\n // handle critical event the way you like\r\n }\r\n\r\n public override void Error(int id, object message, Exception exception)\r\n {\r\n // handle error the way you like\r\n }\r\n\r\n public override void Warning(int id, object message, Exception exception)\r\n {\r\n // handle warning the way you like\r\n }\r\n\r\n public override void Information(int id, object message, Exception exception)\r\n {\r\n // handle info the way you like\r\n }\r\n\r\n public override void Verbose(int id, object message, Exception exception)\r\n {\r\n // handle verbose the way you like\r\n }\r\n\r\n public override void TraceActivityStart(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityStop(int id, object message)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override void TraceActivityTransfer(int id, object message, Guid relatedActivityId)\r\n {\r\n // no implementation is required\r\n }\r\n\r\n public override Guid CurrentActivityId\r\n {\r\n get { return Guid.Empty; }\r\n set\r\n {\r\n\r\n }\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLoggingService\r\n CustomLoggingServiceClass\r\n \r\n ClassCustomLoggingServiceClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLoggingService\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); } public static class CustomLogginRegistration { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomLogginService\r\n \r\n \r\n \r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n // get an instance of ServiceContainer\r\n// override .Services collection with the right mapping\r\n// typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\nvar serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\nserviceInstancies.Clear();\r\nserviceInstancies.Add(new CustomLoggingService());\r\n\r\n// provision models as usual\r\n// from now on, all logging calls will go to CustomLoggingService instance\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n RegisterCustomLogginService\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.RegisterCustomLogginService\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GetDefaultTraceServiceInstance\r\n \r\n \r\n \r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n // get an instance of ServiceContainer\r\n// then get an instance of required service such as TraceServiceBase\r\n\r\nvar traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n// use trace methods as usual\r\ntraceService.Verbose(0, \"my verbose message\");\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n GetDefaultTraceServiceInstance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.GetDefaultTraceServiceInstance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLogginRegistration\r\n \r\n \r\n public class CustomLogginRegistration : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n }\r\n public class CustomLogginRegistration : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping\r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n CustomLogginRegistrationClass\r\n \r\n ClassCustomLogginRegistrationClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomLogginService\r\n \r\n \r\n \r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n // get an instance of ServiceContainer\r\n// override .Services collection with the right mapping\r\n// typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\nvar serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\nserviceInstancies.Clear();\r\nserviceInstancies.Add(new CustomLoggingService());\r\n\r\n// provision models as usual\r\n// from now on, all logging calls will go to CustomLoggingService instance\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n RegisterCustomLogginService\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.RegisterCustomLogginService\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GetDefaultTraceServiceInstance\r\n \r\n \r\n \r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n // get an instance of ServiceContainer\r\n// then get an instance of required service such as TraceServiceBase\r\n\r\nvar traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n// use trace methods as usual\r\ntraceService.Verbose(0, \"my verbose message\");\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n GetDefaultTraceServiceInstance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.GetDefaultTraceServiceInstance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLogginRegistration\r\n \r\n \r\n public class CustomLogginRegistration : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n }\r\n public class CustomLogginRegistration : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping\r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n CustomLogginRegistrationClass\r\n \r\n ClassCustomLogginRegistrationClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomLogginService = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomLogginService\r\n \r\n \r\n \r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n // get an instance of ServiceContainer\r\n// override .Services collection with the right mapping\r\n// typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\nvar serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\nserviceInstancies.Clear();\r\nserviceInstancies.Add(new CustomLoggingService());\r\n\r\n// provision models as usual\r\n// from now on, all logging calls will go to CustomLoggingService instance\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n RegisterCustomLogginService\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.RegisterCustomLogginService\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample GetDefaultTraceServiceInstance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GetDefaultTraceServiceInstance\r\n \r\n \r\n \r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n // get an instance of ServiceContainer\r\n// then get an instance of required service such as TraceServiceBase\r\n\r\nvar traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n// use trace methods as usual\r\ntraceService.Verbose(0, \"my verbose message\");\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n GetDefaultTraceServiceInstance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.GetDefaultTraceServiceInstance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomLogginRegistrationClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLogginRegistration\r\n \r\n \r\n public class CustomLogginRegistration : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n }\r\n public class CustomLogginRegistration : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping\r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n CustomLogginRegistrationClass\r\n \r\n ClassCustomLogginRegistrationClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegisterCustomLogginService = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n RegisterCustomLogginService\r\n \r\n \r\n \r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n // get an instance of ServiceContainer\r\n// override .Services collection with the right mapping\r\n// typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\nvar serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\nserviceInstancies.Clear();\r\nserviceInstancies.Add(new CustomLoggingService());\r\n\r\n// provision models as usual\r\n// from now on, all logging calls will go to CustomLoggingService instance\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n RegisterCustomLogginService\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.RegisterCustomLogginService\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample GetDefaultTraceServiceInstance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n GetDefaultTraceServiceInstance\r\n \r\n \r\n \r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n // get an instance of ServiceContainer\r\n// then get an instance of required service such as TraceServiceBase\r\n\r\nvar traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n// use trace methods as usual\r\ntraceService.Verbose(0, \"my verbose message\");\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n GetDefaultTraceServiceInstance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration.GetDefaultTraceServiceInstance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomLogginRegistrationClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomLogginRegistration\r\n \r\n \r\n public class CustomLogginRegistration : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping \r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n }\r\n public class CustomLogginRegistration : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void RegisterCustomLogginService()\r\n {\r\n // get an instance of ServiceContainer\r\n // override .Services collection with the right mapping\r\n // typeof(TraceServiceBase) -> your instance of TraceServiceBase class\r\n\r\n var serviceInstancies = ServiceContainer.Instance.Services[typeof(TraceServiceBase)];\r\n\r\n serviceInstancies.Clear();\r\n serviceInstancies.Add(new CustomLoggingService());\r\n\r\n // provision models as usual\r\n // from now on, all logging calls will go to CustomLoggingService instance\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void GetDefaultTraceServiceInstance()\r\n {\r\n // get an instance of ServiceContainer\r\n // then get an instance of required service such as TraceServiceBase\r\n\r\n var traceService = ServiceContainer.Instance.GetService<TraceServiceBase>();\r\n\r\n // use trace methods as usual\r\n traceService.Verbose(0, \"my verbose message\");\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomLogginRegistration\r\n CustomLogginRegistrationClass\r\n \r\n ClassCustomLogginRegistrationClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomLogginRegistration\r\n 0\r\n writing-custom-logging.cs\r\n writing-custom-logging\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-logging.cs\r\n"); } public static class CustomSyntax { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsAsOOTB = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsAsExtension = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomSyntaxClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsAsOOTB = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsOOTB\r\n \r\n \r\n \r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsOOTB\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsOOTB\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsAsExtension = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n HideContentTypeFieldsAsExtension\r\n \r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n HideContentTypeFieldsAsExtension\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax.HideContentTypeFieldsAsExtension\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomSyntaxClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n CustomSyntax\r\n \r\n \r\n public class CustomSyntax : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] { \r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class CustomSyntax : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void HideContentTypeFieldsAsOOTB()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new System.Collections.Generic.List<FieldLinkValue>\r\n {\r\n new FieldLinkValue { Id = BuiltInFieldId.Title },\r\n new FieldLinkValue { Id = BuiltInFieldId.Comment },\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n public void HideContentTypeFieldsAsExtension()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Content Type With Hidden Fields\",\r\n Id = new Guid(\"e71cdcc9-5765-47ea-8879-b9456d57dfa6\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType, contentType =>\r\n {\r\n contentType\r\n .HideContentTypeFieldsByIds(new Guid[] {\r\n BuiltInFieldId.Title,\r\n BuiltInFieldId.Comment\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomSyntax\r\n CustomSyntaxClass\r\n \r\n ClassCustomSyntaxClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomSyntax\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); } public static class HideContentTypeFieldsExtensions { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsByIds = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SyntaxExtensionPrototype = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsExtensionsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsByIds = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n HideContentTypeFieldsByIds\r\n \r\n \r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n{\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsByIds\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.HideContentTypeFieldsByIds\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 2\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SyntaxExtensionPrototype = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n _Use Full Method Body\r\n \r\n \r\n \r\n \r\n \r\n SyntaxExtensionPrototype\r\n \r\n \r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n{\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n SyntaxExtensionPrototype\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions.SyntaxExtensionPrototype\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 1\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldsExtensionsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n HideContentTypeFieldsExtensions\r\n \r\n public static class HideContentTypeFieldsExtensions\r\n {\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n }\r\n public static class HideContentTypeFieldsExtensions\r\n{\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ContentTypeModelNode HideContentTypeFieldsByIds(\r\n this ContentTypeModelNode modelNode,\r\n IEnumerable<Guid> ids)\r\n {\r\n modelNode.AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>(ids.Select(s =>\r\n new FieldLinkValue\r\n {\r\n Id = s\r\n }))\r\n });\r\n\r\n return modelNode;\r\n }\r\n\r\n [SampleMetadataTagAttribute(Name = BuiltInTagNames.UseFullMethodBody)]\r\n public static ModelNode SyntaxExtensionPrototype(this ModelNode modelNode)\r\n {\r\n // do stuff\r\n\r\n\r\n // !!! always retun the same model which was passed as \'this\' object !!!\r\n return modelNode;\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldsExtensions\r\n HideContentTypeFieldsExtensionsClass\r\n \r\n ClassHideContentTypeFieldsExtensionsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldsExtensions\r\n 0\r\n writing-custom-syntax.cs\r\n writing-custom-syntax\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-syntax.cs\r\n"); } public static class Basics { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample ABigPictureSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BasicsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ABigPictureSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ABigPictureSample\r\n \r\n \r\n \r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n};\r\n\r\n// step 2, define relationships between definitions\r\n// we need to build a logical \'model tree\'\r\n\r\n// fields and content types live under site\r\n// so use SiteModel and add fields/content types under site\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n});\r\n\r\n// step 3, deploy site model via CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n ABigPictureSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics.ABigPictureSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 1\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BasicsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Basics\r\n \r\n \r\n public class Basics : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects \r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n }\r\n public class Basics : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void ABigPictureSample(ClientContext clientContext)\r\n {\r\n // Step 1, create \'definitions\' - a bunch of CSharp POCO objects\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = DocConsts.DefaulFieldsGroup,\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = DocConsts.DefaultContentTypeGroup\r\n };\r\n\r\n // step 2, define relationships between definitions\r\n // we need to build a logical \'model tree\'\r\n\r\n // fields and content types live under site\r\n // so use SiteModel and add fields/content types under site\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddField(clientDescriptionField);\r\n site.AddContentType(customerAccountContentType);\r\n });\r\n\r\n // step 3, deploy site model via CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Basics\r\n BasicsClass\r\n \r\n ClassBasicsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Basics\r\n 0\r\n Basics.cs\r\n Basics\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\Basics.cs\r\n"); } public static class ConsoleApSamples { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CSOMConsoleAppSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SSOMConsoleAppSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>"); - public static SubPointSolutions.Docs.Code.Data.DocSample ConsoleApSamplesClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CSOMConsoleAppSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n CSOMConsoleAppSample\r\n \r\n \r\n \r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nvar clientContext = new ClientContext(siteUrl);\r\n\r\n// deploy the model to the SharePoint site over CSOM\r\nvar csomProvisionService = new CSOMProvisionService();\r\ncsomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n CSOMConsoleAppSample\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.CSOMConsoleAppSample\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 1\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SSOMConsoleAppSample = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n <Description />\r\n <MethodBodyWithFunction>\r\n \r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }</MethodBodyWithFunction>\r\n <MethodBody>var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n// define fields\r\nvar clientDescriptionField = new FieldDefinition\r\n{\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar clientNumberField = new FieldDefinition\r\n{\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\n\r\n// define content type\r\nvar customerAccountContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n};\r\n\r\n// define relationships and the model\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n});\r\n\r\nusing (var spSite = new SPSite(siteUrl))\r\n{\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n}\r\n\r\n</MethodBody>\r\n <Language>cs</Language>\r\n <Namespace>SPMeta2.Docs.ProvisionSamples.Provision.Definitions</Namespace>\r\n <ClassName>ConsoleApSamples</ClassName>\r\n <MethodName>SSOMConsoleAppSample</MethodName>\r\n <ClassComment />\r\n <MethodFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples.SSOMConsoleAppSample</MethodFullName>\r\n <ClassFullName>SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples</ClassFullName>\r\n <MethodParametersCount>1</MethodParametersCount>\r\n <SourceFileName>ConsoleAppSamples.cs</SourceFileName>\r\n <SourceFileNameWithoutExtension>ConsoleAppSamples</SourceFileNameWithoutExtension>\r\n <SourceFileFolder>..\\..\\Views\\SPMeta2\\getting-started</SourceFileFolder>\r\n <SourceFilePath>..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs</SourceFilePath>\r\n</DocSample>"); + public static SubPointSolutions.Docs.Code.Data.DocSample ConsoleApSamplesClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<DocSample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n <IsMethod>false</IsMethod>\r\n <IsClass>true</IsClass>\r\n <Tags />\r\n <Title>ConsoleApSamples\r\n \r\n \r\n public class ConsoleApSamples : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n }\r\n public class ConsoleApSamples : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n public void CSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n var clientContext = new ClientContext(siteUrl);\r\n\r\n // deploy the model to the SharePoint site over CSOM\r\n var csomProvisionService = new CSOMProvisionService();\r\n csomProvisionService.DeploySiteModel(clientContext, siteModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Basics\")]\r\n static void SSOMConsoleAppSample(string[] args)\r\n {\r\n var siteUrl = \"http://tesla-dev:31415/\";\r\n\r\n // define fields\r\n var clientDescriptionField = new FieldDefinition\r\n {\r\n Title = \"Client Description\",\r\n InternalName = \"dcs_ClientDescription\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"06975b67-01f5-47d7-9e2e-2702dfb8c217\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var clientNumberField = new FieldDefinition\r\n {\r\n Title = \"Client Number\",\r\n InternalName = \"dcs_ClientNumber\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"22264486-7561-45ec-a6bc-591ba243693b\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n\r\n // define content type\r\n var customerAccountContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Customer Account\",\r\n Id = new Guid(\"ddc46a66-19a0-460b-a723-c84d7f60a342\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\",\r\n };\r\n\r\n // define relationships and the model\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(clientDescriptionField)\r\n .AddField(clientNumberField)\r\n .AddContentType(customerAccountContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(clientDescriptionField)\r\n .AddContentTypeFieldLink(clientNumberField);\r\n });\r\n });\r\n\r\n using (var spSite = new SPSite(siteUrl))\r\n {\r\n // deploy the model to the SharePoint site over CSOM\r\n var ssomProvisionService = new SSOMProvisionService();\r\n ssomProvisionService.DeploySiteModel(spSite, siteModel);\r\n }\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ConsoleApSamples\r\n ConsoleApSamplesClass\r\n \r\n ClassConsoleApSamplesClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ConsoleApSamples\r\n 0\r\n ConsoleAppSamples.cs\r\n ConsoleAppSamples\r\n ..\\..\\Views\\SPMeta2\\getting-started\r\n ..\\..\\Views\\SPMeta2\\getting-started\\ConsoleAppSamples.cs\r\n"); } public static class Models { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample SettingUpSiteModels = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SettingUpWebModels = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ModelsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SettingUpSiteModels = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpSiteModels\r\n \r\n \r\n \r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup site taxonomy\r\n});\r\n\r\nvar featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions and features\r\n});\r\n\r\nvar fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\n// step 3, deploy site models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpSiteModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpSiteModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SettingUpWebModels = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SettingUpWebModels\r\n \r\n \r\n \r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n // step 1, setup your definition\r\n\r\n// step 2, setup your site models\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup fields and content types\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web navigation\r\n});\r\n\r\n// step 3, deploy web models\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n SettingUpWebModels\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models.SettingUpWebModels\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ModelsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Models\r\n \r\n \r\n public class Models : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n }\r\n public class Models : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpSiteModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup site taxonomy\r\n });\r\n\r\n var featuresAndSandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions and features\r\n });\r\n\r\n var fieldsAndContentTypesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n // step 3, deploy site models\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SettingUpWebModels()\r\n {\r\n // step 1, setup your definition\r\n\r\n // step 2, setup your site models\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup fields and content types\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web navigation\r\n });\r\n\r\n // step 3, deploy web models\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n Models\r\n ModelsClass\r\n \r\n ClassModelsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.Models\r\n 0\r\n Models.cs\r\n Models\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Models.cs\r\n"); } public static class SiteModel { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteModelProvision = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteModelClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteModelProvision = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n SiteModelProvision\r\n \r\n \r\n \r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup taxonomy\r\n});\r\n\r\nvar sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup sandbox solutions\r\n});\r\n\r\nvar siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup IA\r\n});\r\n\r\nvar userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n // setup user custom actions model\r\n});\r\n\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelProvision\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel.SiteModelProvision\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteModelClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n SiteModel\r\n \r\n \r\n public class SiteModel : ProvisionTestBase\r\n {\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class SiteModel : ProvisionTestBase\r\n{\r\n #region site model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void SiteModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var taxonomyModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup taxonomy\r\n });\r\n\r\n var sandboxSolutionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup sandbox solutions\r\n });\r\n\r\n var siteFeaturesModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup features\r\n });\r\n\r\n var siteIAModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup IA\r\n });\r\n\r\n var userCustomActionsModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n // setup user custom actions model\r\n });\r\n\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteModel\r\n SiteModelClass\r\n \r\n ClassSiteModelClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteModel\r\n 0\r\n SiteModel.cs\r\n SiteModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\SiteModel.cs\r\n"); } public static class Utils { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample UrlConcatenation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UtilsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UrlConcatenation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n UrlConcatenation\r\n \r\n \r\n \r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n // fast on two params\r\nvar smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n// a bigger one\r\nvar bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n});\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UrlConcatenation\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.UrlConcatenation\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ClientWebPartSetup\r\n \r\n \r\n \r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ClientWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ClientWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 2\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n ContentEditorWebPartSetup\r\n \r\n \r\n \r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n ContentEditorWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.ContentEditorWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 3\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartSetup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n XsltListViewWebPartSetup\r\n \r\n \r\n \r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n XsltListViewWebPartSetup\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils.XsltListViewWebPartSetup\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 5\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UtilsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n Utils\r\n \r\n \r\n public class Utils : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{ \r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n public class Utils : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void UrlConcatenation()\r\n {\r\n // fast on two params\r\n var smQueryUrl = UrlUtility.CombineUrl(\"http://goole.com\", \"?q=spmeta2\");\r\n\r\n // a bigger one\r\n var bgQueryUrl = UrlUtility.CombineUrl(new string[]{\r\n \"http://goole.com\",\r\n \"?\",\r\n \"q=1\",\r\n \"&p1=3\",\r\n \"&p2=tmp\"\r\n });\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart)\r\n .SetOrUpdateProperty(\"FeatureId\", wpModel.FeatureId.ToString())\r\n .SetOrUpdateProperty(\"ProductId\", wpModel.ProductId.ToString())\r\n .SetOrUpdateProperty(\"WebPartName\", wpModel.WebPartName)\r\n .SetOrUpdateProperty(\"ProductWebId\", webId)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void ContentEditorWebPartSetup(ContentEditorWebPartDefinition typedModel,\r\n string content, string contentLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ContentEditorWebPart)\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", content, true)\r\n .SetOrUpdateContentEditorWebPartProperty(\"ContentLink\", contentLink)\r\n .ToString();\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Utils\")]\r\n public void XsltListViewWebPartSetup(XsltListViewWebPartDefinition typedModel,\r\n string listName, string listId, string titleUrl, string jsLink)\r\n {\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(BuiltInWebPartTemplates.XsltListViewWebPart)\r\n .SetListName(listName)\r\n .SetListId(listId)\r\n .SetTitleUrl(titleUrl)\r\n .SetOrUpdateProperty(\"JSLink\", jsLink)\r\n .ToString();\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n Utils\r\n UtilsClass\r\n \r\n ClassUtilsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.Utils\r\n 0\r\n Utils.cs\r\n Utils\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\Utils.cs\r\n"); } public static class WebModel { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample WebModelProvision = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebModelClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebModelProvision = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n WebModelProvision\r\n \r\n \r\n \r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n // tend to separate models into small logical pieces\r\n// later you would deploy either all of them or only required bits\r\n\r\nvar featuresModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup features\r\n});\r\n\r\nvar listsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup lists and list views\r\n});\r\n\r\nvar pagesModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup pages\r\n});\r\n\r\nvar webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup web parts\r\n});\r\n\r\nvar navigationModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // setup navigation\r\n});\r\n\r\n// deploy needed models - all of them or only required bits\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelProvision\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel.WebModelProvision\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebModelClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n WebModel\r\n \r\n \r\n public class WebModel : ProvisionTestBase\r\n {\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation \r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebModel : ProvisionTestBase\r\n{\r\n #region web model\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.Models\")]\r\n public void WebModelProvision()\r\n {\r\n // tend to separate models into small logical pieces\r\n // later you would deploy either all of them or only required bits\r\n\r\n var featuresModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup features\r\n });\r\n\r\n var listsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup lists and list views\r\n });\r\n\r\n var pagesModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup pages\r\n });\r\n\r\n var webPartsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup web parts\r\n });\r\n\r\n var navigationModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // setup navigation\r\n });\r\n\r\n // deploy needed models - all of them or only required bits\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n WebModel\r\n WebModelClass\r\n \r\n ClassWebModelClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.WebModel\r\n 0\r\n WebModel.cs\r\n WebModel\r\n ..\\..\\Views\\SPMeta2\\reference\r\n ..\\..\\Views\\SPMeta2\\reference\\WebModel.cs\r\n"); } public static class AlternateUrlDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAlternateUrlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AlternateUrlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAlternateUrlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n \r\n \r\n \r\n Add alternate URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var internalDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n};\r\n\r\nvar intranetDef = new AlternateUrlDefinition\r\n{\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n CanDeploySimpleAlternateUrlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests.CanDeploySimpleAlternateUrlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AlternateUrlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 200\r\n 200\r\n \r\n \r\n \r\n AlternateUrlDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AlternateUrlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AlternateUrlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AlternateUrlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add alternate URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAlternateUrlDefinition()\r\n {\r\n var internalDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://the-portal\",\r\n UrlZone = BuiltInUrlZone.Intranet\r\n };\r\n\r\n var intranetDef = new AlternateUrlDefinition\r\n {\r\n Url = \"http://my-intranet.com.au\",\r\n UrlZone = BuiltInUrlZone.Internet\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddAlternateUrl(internalDef);\r\n webApp.AddAlternateUrl(intranetDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AlternateUrlDefinitionTests\r\n AlternateUrlDefinitionTestsClass\r\n \r\n ClassAlternateUrlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AlternateUrlDefinitionTests\r\n 0\r\n AlternateUrlDefinitionTests.cs\r\n AlternateUrlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AlternateUrlDefinitionTests.cs\r\n"); } public static class AppDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AppDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var appDef = new AppDefinition\r\n{\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddApp(appDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n CanDeploySimpleAppDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests.CanDeploySimpleAppDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AppDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Site collection\r\n Web site\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n \r\n\r\n public class AppDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version \r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n\r\npublic class AppDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAppDefinition()\r\n {\r\n var appDef = new AppDefinition\r\n {\r\n Content = File.ReadAllBytes(\"path-to-your-app-file\"),\r\n ProductId = new Guid(\"your-app-product-id\"),\r\n // your app version\r\n Version = \"1.0.0.0\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddApp(appDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppDefinitionTests\r\n AppDefinitionTestsClass\r\n \r\n ClassAppDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppDefinitionTests\r\n 0\r\n AppDefinitionTests.cs\r\n AppDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppDefinitionTests.cs\r\n"); } public static class AppPrincipalDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppPrincipalDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AppPrincipalDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAppPrincipalDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add app principal\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n CanDeploySimpleAppPrincipalDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests.CanDeploySimpleAppPrincipalDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AppPrincipalDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AppPrincipalDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class AppPrincipalDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AppPrincipalDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AppPrincipalDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add app principal\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleAppPrincipalDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AppPrincipalDefinitionTests\r\n AppPrincipalDefinitionTestsClass\r\n \r\n ClassAppPrincipalDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AppPrincipalDefinitionTests\r\n 0\r\n AppPrincipalDefinitionTests.cs\r\n AppPrincipalDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AppPrincipalDefinitionTests.cs\r\n"); } public static class AuditSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAuditSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AuditSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAuditSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add audit settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n CanDeploySimpleAuditSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests.CanDeploySimpleAuditSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AuditSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n AuditSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AuditSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AuditSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AuditSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audit settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAuditSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AuditSettingsDefinitionTests\r\n AuditSettingsDefinitionTestsClass\r\n \r\n ClassAuditSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AuditSettingsDefinitionTests\r\n 0\r\n AuditSettingsDefinitionTests.cs\r\n AuditSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\AuditSettingsDefinitionTests.cs\r\n"); } public static class BooleanFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBooleanFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BooleanFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBooleanFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add boolean field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n CanDeploySimpleBooleanFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests.CanDeploySimpleBooleanFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BooleanFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n BooleanFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BooleanFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BooleanFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BooleanFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add boolean field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBooleanFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BooleanFieldDefinitionTests\r\n BooleanFieldDefinitionTestsClass\r\n \r\n ClassBooleanFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BooleanFieldDefinitionTests\r\n 0\r\n BooleanFieldDefinitionTests.cs\r\n BooleanFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BooleanFieldDefinitionTests.cs\r\n"); } public static class BreakRoleInheritanceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BreakRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on web\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n);\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBreakRoleInheritance_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Break role inheritance on list\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var privateListDef = new ListDefinition\r\n{\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n};\r\n\r\nvar privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n{\r\n CopyRoleAssignments = false\r\n};\r\n\r\nvar privateSecurityGroupMembers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Members\"\r\n};\r\n\r\nvar privateSecurityGroupViewers = new SecurityGroupDefinition\r\n{\r\n Name = \"Private Project Group Viewers\"\r\n};\r\n\r\n// site model with the groups\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n});\r\n\r\n// web model\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n});\r\n\r\n// deploy site model with groups, and then web model with the rest\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n CanDeploySimpleBreakRoleInheritance_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests.CanDeploySimpleBreakRoleInheritance_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BreakRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n BreakRoleInheritanceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model \r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames \r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class BreakRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnWeb()\r\n {\r\n var privateProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Private project\",\r\n Url = \"private-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(privateProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateProjectResetWeb =>\r\n {\r\n // privateProjectResetWeb is your web but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateProjectResetWeb.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BreakRoleInheritanceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Break role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySimpleBreakRoleInheritance_OnList()\r\n {\r\n var privateListDef = new ListDefinition\r\n {\r\n Title = \"Private records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/private-records\",\r\n };\r\n\r\n var privateProjectWebBreakRoleInheritance = new BreakRoleInheritanceDefinition\r\n {\r\n CopyRoleAssignments = false\r\n };\r\n\r\n var privateSecurityGroupMembers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Members\"\r\n };\r\n\r\n var privateSecurityGroupViewers = new SecurityGroupDefinition\r\n {\r\n Name = \"Private Project Group Viewers\"\r\n };\r\n\r\n // site model with the groups\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(privateSecurityGroupMembers);\r\n site.AddSecurityGroup(privateSecurityGroupViewers);\r\n });\r\n\r\n // web model\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(privateListDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddBreakRoleInheritance(privateProjectWebBreakRoleInheritance, privateResetList =>\r\n {\r\n // privateResetList is your list but after breaking role inheritance\r\n\r\n // link group with roles by SecurityRoleType / SecurityRoleName\r\n // use BuiltInSecurityRoleTypes or BuiltInSecurityRoleNames\r\n\r\n // add group with contributor permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupMembers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Contributor\r\n });\r\n });\r\n\r\n // add group with reader permission\r\n privateResetList.AddSecurityGroupLink(privateSecurityGroupViewers, group =>\r\n {\r\n group.AddSecurityRoleLink(new SecurityRoleLinkDefinition\r\n {\r\n SecurityRoleType = BuiltInSecurityRoleTypes.Reader\r\n });\r\n });\r\n });\r\n });\r\n });\r\n\r\n // deploy site model with groups, and then web model with the rest\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BreakRoleInheritanceDefinitionTests\r\n BreakRoleInheritanceDefinitionTestsClass\r\n \r\n ClassBreakRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BreakRoleInheritanceDefinitionTests\r\n 0\r\n BreakRoleInheritanceDefinitionTests.cs\r\n BreakRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BreakRoleInheritanceDefinitionTests.cs\r\n"); } public static class BusinessDataFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBusinessDataFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample BusinessDataFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleBusinessDataFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add business data field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n CanDeploySimpleBusinessDataFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests.CanDeploySimpleBusinessDataFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample BusinessDataFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n BusinessDataFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class BusinessDataFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.BusinessDataFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add business data field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleBusinessDataFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n BusinessDataFieldDefinitionTests\r\n BusinessDataFieldDefinitionTestsClass\r\n \r\n ClassBusinessDataFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.BusinessDataFieldDefinitionTests\r\n 0\r\n BusinessDataFieldDefinitionTests.cs\r\n BusinessDataFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\BusinessDataFieldDefinitionTests.cs\r\n"); } public static class CalculatedFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCalculatedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CalculatedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCalculatedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add calculated field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CanDeploySimpleCalculatedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests.CanDeploySimpleCalculatedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CalculatedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CalculatedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CalculatedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CalculatedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add calculated field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCalculatedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CalculatedFieldDefinitionTests\r\n CalculatedFieldDefinitionTestsClass\r\n \r\n ClassCalculatedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CalculatedFieldDefinitionTests\r\n 0\r\n CalculatedFieldDefinitionTests.cs\r\n CalculatedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CalculatedFieldDefinitionTests.cs\r\n"); } public static class ChoiceFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add choice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new ChoiceFieldDefinition\r\n{\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n CanDeploySimpleChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests.CanDeploySimpleChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ChoiceFieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add choice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleChoiceFieldDefinition()\r\n {\r\n var fieldDef = new ChoiceFieldDefinition\r\n {\r\n Title = \"Tasks status\",\r\n InternalName = \"dcs_ProgressStatus\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"759f97a7-c26f-4dc3-b3fa-47250f168ba4\"),\r\n Choices = new Collection<string>\r\n {\r\n \"Not stated\",\r\n \"In progress\",\r\n \"Done\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChoiceFieldDefinitionTests\r\n ChoiceFieldDefinitionTestsClass\r\n \r\n ClassChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChoiceFieldDefinitionTests\r\n 0\r\n ChoiceFieldDefinitionTests.cs\r\n ChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ChoiceFieldDefinitionTests.cs\r\n"); } public static class ClientWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleClientWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleClientWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add client web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n CanDeploySimpleClientWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests.CanDeploySimpleClientWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ClientWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ClientWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ClientWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ClientWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ClientWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add client web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleClientWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ClientWebPartDefinitionTests\r\n ClientWebPartDefinitionTestsClass\r\n \r\n ClassClientWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ClientWebPartDefinitionTests\r\n 0\r\n ClientWebPartDefinitionTests.cs\r\n ClientWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ClientWebPartDefinitionTests.cs\r\n"); } public static class ComputedFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleComputedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ComputedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleComputedFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add computed field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n CanDeploySimpleComputedFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests.CanDeploySimpleComputedFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ComputedFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ComputedFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ComputedFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ComputedFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ComputedFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add computed field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleComputedFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ComputedFieldDefinitionTests\r\n ComputedFieldDefinitionTestsClass\r\n \r\n ClassComputedFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ComputedFieldDefinitionTests\r\n 0\r\n ComputedFieldDefinitionTests.cs\r\n ComputedFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ComputedFieldDefinitionTests.cs\r\n"); } public static class ContentDatabaseDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentDatabaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentDatabaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentDatabaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add content database\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contentDb1 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n};\r\n\r\nvar contentDb2 = new ContentDatabaseDefinition\r\n{\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n CanDeploySimpleContentDatabaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests.CanDeploySimpleContentDatabaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentDatabaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category Order\r\n \r\n 100\r\n 100\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n ContentDatabaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentDatabaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentDatabaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content database\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentDatabaseDefinition()\r\n {\r\n var contentDb1 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db1\"\r\n };\r\n\r\n var contentDb2 = new ContentDatabaseDefinition\r\n {\r\n ServerName = \"localhost\",\r\n DbName = \"intranet_content_db2\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp\r\n .AddContentDatabase(contentDb1)\r\n .AddContentDatabase(contentDb2);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentDatabaseDefinitionTests\r\n ContentDatabaseDefinitionTestsClass\r\n \r\n ClassContentDatabaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentDatabaseDefinitionTests\r\n 0\r\n ContentDatabaseDefinitionTests.cs\r\n ContentDatabaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentDatabaseDefinitionTests.cs\r\n"); } public static class ContentEditorWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploEmptyContentEditorWebpart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploContentEditorWebpartWithUrlLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentEditorWebpartWithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploEmptyContentEditorWebpart = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploEmptyContentEditorWebpart\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploEmptyContentEditorWebpart\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploContentEditorWebpartWithUrlLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with link\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var htmlContent = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n};\r\n\r\nvar cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeploContentEditorWebpartWithUrlLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeploContentEditorWebpartWithUrlLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentEditorWebpartWithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add CEWP with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cewp = new ContentEditorWebPartDefinition\r\n{\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n CanDeployContentEditorWebpartWithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests.CanDeployContentEditorWebpartWithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ContentEditorWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploEmptyContentEditorWebpart()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Empty Content Editor Webpart\",\r\n Id = \"m2EmptyCEWP\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with link\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploContentEditorWebpartWithUrlLink()\r\n {\r\n var htmlContent = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-cewp-content.html\",\r\n Content = Encoding.UTF8.GetBytes(\"M2 is everything you need to deploy stuff to Sharepoint\"),\r\n Overwrite = true,\r\n };\r\n\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with URL link\",\r\n Id = \"m2ContentLinkCEWP\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n ContentLink = UrlUtility.CombineUrl(new string[]{\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n htmlContent.FileName})\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddModuleFile(htmlContent);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CEWP with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentEditorWebpartWithContent()\r\n {\r\n var cewp = new ContentEditorWebPartDefinition\r\n {\r\n Title = \"Content Editor Webpart with content\",\r\n Id = \"m2ContentCEWP\",\r\n ZoneIndex = 30,\r\n ZoneId = \"Main\",\r\n Content = \"Content Editor web part inplace content.\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 CEWP provision\",\r\n FileName = \"cewp-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddContentEditorWebPart(cewp);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentEditorWebPartDefinitionTests\r\n ContentEditorWebPartDefinitionTestsClass\r\n \r\n ClassContentEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentEditorWebPartDefinitionTests\r\n 0\r\n ContentEditorWebPartDefinitionTests.cs\r\n ContentEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentEditorWebPartDefinitionTests.cs\r\n"); } public static class ContentTypeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentSetContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypesWithFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarhicalContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add item content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(listContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleListContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleListContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentSetContentType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add document set content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var documentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(documentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleDocumentSetContentType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleDocumentSetContentType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add several content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypesWithFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add content type with fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeploySimpleContentTypesWithFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeploySimpleContentTypesWithFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarhicalContentTypes = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n Add parent-child content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar childDocumentContentType = new ContentTypeDefinition\r\n{\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n CanDeployHierarhicalContentTypes\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests.CanDeployHierarhicalContentTypes\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListContentType()\r\n {\r\n var listContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom list item\",\r\n Id = new Guid(\"79658c1e-3096-4c44-bd55-4228d01a5b97\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(listContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document\",\r\n Id = new Guid(\"008e7c50-a271-4fcd-9f01-f18daad5bd7e\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document set content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentSetContentType()\r\n {\r\n var documentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"Custom document set\",\r\n Id = new Guid(\"AAC93B98-F776-4D5C-9E6E-66F2DC45A467\"),\r\n ParentContentTypeId = BuiltInContentTypeId.DocumentSet_Correct,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(documentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add several content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypes()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(DocContentTypes.CustomerAccount)\r\n .AddContentType(DocContentTypes.CustomerDocument);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type with fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypesWithFields()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(DocFields.Clients.ClientCredit)\r\n .AddField(DocFields.Clients.ClientDebit)\r\n .AddField(DocFields.Clients.ClientDescription)\r\n .AddField(DocFields.Clients.ClientNumber)\r\n .AddField(DocFields.Clients.ClientWebSite)\r\n\r\n .AddContentType(DocContentTypes.CustomerAccount, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientCredit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDebit)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientWebSite);\r\n })\r\n .AddContentType(DocContentTypes.CustomerDocument, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientDescription)\r\n .AddContentTypeFieldLink(DocFields.Clients.ClientNumber);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add parent-child content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarhicalContentTypes()\r\n {\r\n var rootDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A root document\",\r\n Id = new Guid(\"b0ec3794-8bf3-49ed-b8d1-24a4df5ac75b\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Document,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var childDocumentContentType = new ContentTypeDefinition\r\n {\r\n Name = \"A child document\",\r\n Id = new Guid(\"84ab43ee-1f9d-4436-a9de-868bd7a36400\"),\r\n // use GetContentTypeId() to get the content type ID and refer as a parent ID\r\n ParentContentTypeId = rootDocumentContentType.GetContentTypeId(),\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(rootDocumentContentType)\r\n .AddContentType(childDocumentContentType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeDefinitionTests\r\n ContentTypeDefinitionTestsClass\r\n \r\n ClassContentTypeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeDefinitionTests\r\n 0\r\n ContentTypeDefinitionTests.cs\r\n ContentTypeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeDefinitionTests.cs\r\n"); } public static class ContentTypeFieldLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Add field to content types\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n CanDeploySimpleContentTypeFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests.CanDeploySimpleContentTypeFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n ContentTypeFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentTypeFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeFieldLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to content types\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentTypeFieldLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeFieldLinkDefinitionTests\r\n ContentTypeFieldLinkDefinitionTestsClass\r\n \r\n ClassContentTypeFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeFieldLinkDefinitionTests\r\n 0\r\n ContentTypeFieldLinkDefinitionTests.cs\r\n ContentTypeFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeFieldLinkDefinitionTests.cs\r\n"); } public static class ContentTypeLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentTypeLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add content type to lists\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n CanDeploySimpleContentTypeLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests.CanDeploySimpleContentTypeLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentTypeLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentTypeLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class ContentTypeLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentTypeLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add content type to lists\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleContentTypeLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentTypeLinkDefinitionTests\r\n ContentTypeLinkDefinitionTestsClass\r\n \r\n ClassContentTypeLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentTypeLinkDefinitionTests\r\n 0\r\n ContentTypeLinkDefinitionTests.cs\r\n ContentTypeLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ContentTypeLinkDefinitionTests.cs\r\n"); } public static class CurrencyFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCurrencyFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CurrencyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCurrencyFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add currency field\r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CanDeploySimpleCurrencyFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests.CanDeploySimpleCurrencyFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CurrencyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n CurrencyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CurrencyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CurrencyFieldDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add currency field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCurrencyFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CurrencyFieldDefinitionTests\r\n CurrencyFieldDefinitionTestsClass\r\n \r\n ClassCurrencyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CurrencyFieldDefinitionTests\r\n 0\r\n CurrencyFieldDefinitionTests.cs\r\n CurrencyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\CurrencyFieldDefinitionTests.cs\r\n"); } public static class DateTimeFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDateTimeFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DateTimeFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDateTimeFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add datetime field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n CanDeploySimpleDateTimeFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests.CanDeploySimpleDateTimeFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DateTimeFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n DateTimeFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DateTimeFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DateTimeFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add datetime field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDateTimeFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DateTimeFieldDefinitionTests\r\n DateTimeFieldDefinitionTestsClass\r\n \r\n ClassDateTimeFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DateTimeFieldDefinitionTests\r\n 0\r\n DateTimeFieldDefinitionTests.cs\r\n DateTimeFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DateTimeFieldDefinitionTests.cs\r\n"); } public static class DeleteWebPartsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployDeleteWebPartsDefinition_ByTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DeleteWebPartsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployDeleteWebPartsDefinition_ByTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Delete web part by Title\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// aiming to delete two web part with the following titles:\r\n// \'My Tasks\'\r\n// \'My Projects\'\r\nvar myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n{\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n CanDeployDeleteWebPartsDefinition_ByTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests.CanDeployDeleteWebPartsDefinition_ByTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DeleteWebPartsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n DeleteWebPartsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] { \r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DeleteWebPartsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DeleteWebPartsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Delete web part by Title\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployDeleteWebPartsDefinition_ByTitle()\r\n {\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts\",\r\n FileName = \"web-parts.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // aiming to delete two web part with the following titles:\r\n // \'My Tasks\'\r\n // \'My Projects\'\r\n var myWebPartDeletionDef = new DeleteWebPartsDefinition\r\n {\r\n WebParts = new List<WebPartMatch>(new WebPartMatch[] {\r\n new WebPartMatch {\r\n Title = \"My Tasks\"\r\n },\r\n new WebPartMatch {\r\n Title = \"My Projects\"\r\n }\r\n })\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddDeleteWebParts(myWebPartDeletionDef);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DeleteWebPartsDefinitionTests\r\n DeleteWebPartsDefinitionTestsClass\r\n \r\n ClassDeleteWebPartsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DeleteWebPartsDefinitionTests\r\n 0\r\n DeleteWebPartsDefinitionTests.cs\r\n DeleteWebPartsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DeleteWebPartsDefinitionTests.cs\r\n"); } public static class DiagnosticsServiceBaseDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDiagnosticsServiceBaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DiagnosticsServiceBaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDiagnosticsServiceBaseDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add diagnostic service\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests.CanDeploySimpleDiagnosticsServiceBaseDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DiagnosticsServiceBaseDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n DiagnosticsServiceBaseDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DiagnosticsServiceBaseDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DiagnosticsServiceBaseDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add diagnostic service\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDiagnosticsServiceBaseDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DiagnosticsServiceBaseDefinitionTests\r\n DiagnosticsServiceBaseDefinitionTestsClass\r\n \r\n ClassDiagnosticsServiceBaseDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DiagnosticsServiceBaseDefinitionTests\r\n 0\r\n DiagnosticsServiceBaseDefinitionTests.cs\r\n DiagnosticsServiceBaseDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DiagnosticsServiceBaseDefinitionTests.cs\r\n"); } public static class DocumentParserDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentParserDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample DocumentParserDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleDocumentParserDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add document parser\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n CanDeploySimpleDocumentParserDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests.CanDeploySimpleDocumentParserDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample DocumentParserDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n DocumentParserDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class DocumentParserDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class DocumentParserDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.DocumentParserDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add document parser\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleDocumentParserDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n DocumentParserDefinitionTests\r\n DocumentParserDefinitionTestsClass\r\n \r\n ClassDocumentParserDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.DocumentParserDefinitionTests\r\n 0\r\n DocumentParserDefinitionTests.cs\r\n DocumentParserDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\DocumentParserDefinitionTests.cs\r\n"); } public static class EventReceiverDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentTypeSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample EventReceiverDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeploySiteEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeploySiteEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to web\r\n \r\n \r\n \r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployWebSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployWebSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to list\r\n \r\n \r\n \r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployListSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployListSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployContentTypeSimpleEventReceiverDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n \r\n \r\n \r\n Add event receiver to content type\r\n \r\n \r\n \r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n CanDeployContentTypeSimpleEventReceiverDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests.CanDeployContentTypeSimpleEventReceiverDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample EventReceiverDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Site Collection Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Event Receivers\r\n Event Receivers\r\n \r\n \r\n \r\n EventReceiverDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class EventReceiverDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class EventReceiverDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.EventReceiverDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add event receiver to site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySiteEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to web\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add event receiver to content type\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployContentTypeSimpleEventReceiverDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n EventReceiverDefinitionTests\r\n EventReceiverDefinitionTestsClass\r\n \r\n ClassEventReceiverDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.EventReceiverDefinitionTests\r\n 0\r\n EventReceiverDefinitionTests.cs\r\n EventReceiverDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\EventReceiverDefinitionTests.cs\r\n"); } public static class FarmDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FarmDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm feature\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n{\r\n f.Enable = true;\r\n});\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmFeature(farmFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n CanDeploySimpleFarmDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests.CanDeploySimpleFarmDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FarmDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm feature\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmDefinition()\r\n {\r\n var farmFeature = BuiltInFarmFeatures.SiteMailboxes.Inherit(f =>\r\n {\r\n f.Enable = true;\r\n });\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmFeature(farmFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmDefinitionTests\r\n FarmDefinitionTestsClass\r\n \r\n ClassFarmDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmDefinitionTests\r\n 0\r\n FarmDefinitionTests.cs\r\n FarmDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmDefinitionTests.cs\r\n"); } public static class FarmSolutionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FarmSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFarmSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add farm solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var solutionDef = new FarmSolutionDefinition\r\n{\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm.AddFarmSolution(solutionDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n CanDeploySimpleFarmSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests.CanDeploySimpleFarmSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FarmSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n FarmSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FarmSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FarmSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FarmSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add farm solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFarmSolutionDefinition()\r\n {\r\n var solutionDef = new FarmSolutionDefinition\r\n {\r\n FileName = \"your-solution-file.wsp\",\r\n SolutionId = new Guid(\"your-solution-id\"),\r\n Content = File.ReadAllBytes(\"path-to-your-solution-or-byte-array\")\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm.AddFarmSolution(solutionDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FarmSolutionDefinitionTests\r\n FarmSolutionDefinitionTestsClass\r\n \r\n ClassFarmSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FarmSolutionDefinitionTests\r\n 0\r\n FarmSolutionDefinitionTests.cs\r\n FarmSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FarmSolutionDefinitionTests.cs\r\n"); } public static class FeatureDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBSiteFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample OOTBFeatureInheritance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FeatureDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBSiteFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB site features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBSiteFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBSiteFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate OOTB web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateOOTBWebFeatures = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable OOTB web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateOOTBWebFeatures\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateOOTBWebFeatures\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanActivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Activate custom web features\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanActivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanActivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeactivateCustomWebFeature = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Disable custom web features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var myCustomerFeature = new FeatureDefinition\r\n{\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n CanDeactivateCustomWebFeature\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.CanDeactivateCustomWebFeature\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample OOTBFeatureInheritance = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n \r\n \r\n \r\n Inherit OOTB features\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = true;\r\n});\r\n\r\nvar disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n{\r\n def.Enable = false;\r\n});\r\n\r\n// enable MDS\r\nvar enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(enableMdsModel);\r\n\r\n// disable MDS\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n OOTBFeatureInheritance\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests.OOTBFeatureInheritance\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FeatureDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n Web Model\r\n Farm Model\r\n Web Application Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Features\r\n Features\r\n \r\n \r\n \r\n FeatureDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class FeatureDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n \r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FeatureDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB site features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanActivateOOTBSiteFeatures()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSiteFeature(DocSiteFeatures.SitePublisingInfrastructure)\r\n .AddSiteFeature(DocSiteFeatures.DocumentSets);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Activate OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.WebPublishingInfrastructure)\r\n .AddWebFeature(DocWebFeatures.MetadataNavigationAndFiltering)\r\n .AddWebFeature(DocWebFeatures.MDS);\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Disable OOTB web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateOOTBWebFeatures()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(DocWebFeatures.Disable.MDS);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n [SampleMetadata(Title = \"Activate custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanActivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = true,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Disable custom web features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeactivateCustomWebFeature()\r\n {\r\n var myCustomerFeature = new FeatureDefinition\r\n {\r\n Enable = false,\r\n Id = new Guid(\"87294C72-F260-42f3-A41B-981A2FFCE37A\"),\r\n Scope = FeatureDefinitionScope.Web\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(myCustomerFeature);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FeatureDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Inherit OOTB features\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void OOTBFeatureInheritance()\r\n {\r\n var enableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = true;\r\n });\r\n\r\n var disableMinimalDownloadStrategy = BuiltInWebFeatures.MinimalDownloadStrategy.Inherit(def =>\r\n {\r\n def.Enable = false;\r\n });\r\n\r\n // enable MDS\r\n var enableMdsModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(enableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(enableMdsModel);\r\n\r\n // disable MDS\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(disableMinimalDownloadStrategy);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FeatureDefinitionTests\r\n FeatureDefinitionTestsClass\r\n \r\n ClassFeatureDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FeatureDefinitionTests\r\n 0\r\n FeatureDefinitionTests.cs\r\n FeatureDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FeatureDefinitionTests.cs\r\n"); } public static class FieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySiteFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to site\r\n \r\n \r\n \r\n\r\n \r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\nvar customerRefererence = new FieldDefinition\r\n{\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar isAciveClient = new FieldDefinition\r\n{\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar additionalInformation = new FieldDefinition\r\n{\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n};\r\n\r\nvar customerBalance = new FieldDefinition\r\n{\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeploySiteFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeploySiteFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to web\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployWebFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployWebFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add field to list\r\n \r\n \r\n \r\n\r\n \r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var textField = new FieldDefinition\r\n{\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n};\r\n\r\nvar booleanField = new FieldDefinition\r\n{\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n};\r\n\r\nvar listWithFields = new ListDefinition\r\n{\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n CanDeployListFields\r\n \r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests.CanDeployListFields\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n FieldDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n }\r\n public class FieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region by scope\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to site\",\r\n Description = \"\"\r\n )]\r\n public void CanDeploySiteFields()\r\n {\r\n // use BuiltInFieldTypes class to refer to OOTB SharePoint fields\r\n\r\n var customerRefererence = new FieldDefinition\r\n {\r\n Title = \"Customer Reference\",\r\n InternalName = \"dcs_CustomerReference\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"D3B94B32-3F97-4B5B-99BE-95D17F83618B\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var isAciveClient = new FieldDefinition\r\n {\r\n Title = \"Is Active Customer\",\r\n InternalName = \"dcs_IsActiveCustomer\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"C846CA90-5EE0-4FDF-882B-6FB17625C6F9\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var additionalInformation = new FieldDefinition\r\n {\r\n Title = \"Customer Additional Information\",\r\n InternalName = \"dcs_CustomerAdditionalInfo\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"A5221F56-D4F4-4831-AF51-AA9776FA990D\"),\r\n FieldType = BuiltInFieldTypes.Note,\r\n };\r\n\r\n var customerBalance = new FieldDefinition\r\n {\r\n Title = \"Customer Balance\",\r\n InternalName = \"dcs_CustomerBalance\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"3C0A0358-BF74-4F79-855B-F85F5BF24028\"),\r\n FieldType = BuiltInFieldTypes.Number,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customerRefererence)\r\n .AddField(isAciveClient)\r\n .AddField(additionalInformation)\r\n .AddField(customerBalance);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to web\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployWebFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddField(textField);\r\n web.AddField(booleanField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add field to list\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeployListFields()\r\n {\r\n var textField = new FieldDefinition\r\n {\r\n Title = \"Simple text field\",\r\n InternalName = \"dcs_SimpleTextField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"c3afc5ee-c416-4a05-91b3-116de4a205de\"),\r\n FieldType = BuiltInFieldTypes.Text,\r\n };\r\n\r\n var booleanField = new FieldDefinition\r\n {\r\n Title = \"Simple boolean field\",\r\n InternalName = \"dcs_SimpleBooleanField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"1f0a5ba9-7b00-433d-8d93-dcfb4f87bfca\"),\r\n FieldType = BuiltInFieldTypes.Boolean,\r\n };\r\n\r\n var listWithFields = new ListDefinition\r\n {\r\n Title = \"List with fields\",\r\n Description = \"Custom list with list-scoped fields.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFields\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFields, list =>\r\n {\r\n list.AddField(textField);\r\n list.AddField(booleanField);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n\r\n\r\n #region typed fields\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions\r\n FieldDefinitionTests\r\n FieldDefinitionTestsClass\r\n \r\n ClassFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Content.SPMeta2.SharePoint_Foundation_Definitions.FieldDefinitionTests\r\n 0\r\n FieldDefinitionTests.cs\r\n FieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FieldDefinitionTests.cs\r\n"); } public static class FolderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample FolderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var activeDocsFolder = new FolderDefinition\r\n{\r\n Name = \"Active documents\"\r\n};\r\n\r\nvar archiveFolder = new FolderDefinition\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar listWithFolders = new ListDefinition\r\n{\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folders to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeploySimpleFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeploySimpleFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalFolderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add folder hierarchy to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n CanDeployHierarchicalFolderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests.CanDeployHierarchicalFolderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample FolderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Folders\r\n Folders\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n FolderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class FolderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class FolderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolders()\r\n {\r\n var activeDocsFolder = new FolderDefinition\r\n {\r\n Name = \"Active documents\"\r\n };\r\n\r\n var archiveFolder = new FolderDefinition\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var listWithFolders = new ListDefinition\r\n {\r\n Title = \"List with folders\",\r\n Description = \"Custom list with folders.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithFolders\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithFolders, list =>\r\n {\r\n list\r\n .AddFolder(activeDocsFolder)\r\n .AddFolder(archiveFolder);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n [SampleMetadata(Title = \"Add folders to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013)\r\n .AddFolder(DocFolders.Years.Year2014)\r\n .AddFolder(DocFolders.Years.Year2015);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FolderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder hierarchy to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployHierarchicalFolderList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(DocLists.GeneralReports, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.Years.Year2013, year2013 =>\r\n {\r\n year2013\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2014, year2014 =>\r\n {\r\n year2014\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n })\r\n .AddFolder(DocFolders.Years.Year2015, year2015 =>\r\n {\r\n year2015\r\n .AddFolder(DocFolders.Quarters.Q1)\r\n .AddFolder(DocFolders.Quarters.Q2)\r\n .AddFolder(DocFolders.Quarters.Q3)\r\n .AddFolder(DocFolders.Quarters.Q4);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n FolderDefinitionTests\r\n FolderDefinitionTestsClass\r\n \r\n ClassFolderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.FolderDefinitionTests\r\n 0\r\n FolderDefinitionTests.cs\r\n FolderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\FolderDefinitionTests.cs\r\n"); } public static class GuidFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleGuidFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample GuidFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleGuidFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add guid field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n CanDeploySimpleGuidFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests.CanDeploySimpleGuidFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample GuidFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n GuidFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class GuidFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class GuidFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.GuidFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add guid field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleGuidFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n GuidFieldDefinitionTests\r\n GuidFieldDefinitionTestsClass\r\n \r\n ClassGuidFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.GuidFieldDefinitionTests\r\n 0\r\n GuidFieldDefinitionTests.cs\r\n GuidFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\GuidFieldDefinitionTests.cs\r\n"); } public static class HideContentTypeFieldLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var hiddenNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n};\r\n\r\nvar publicNotesField = new NoteFieldDefinition\r\n{\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n};\r\n\r\nvar hiddenNotesContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n CanHideContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests.CanHideContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n HideContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypeFields()\r\n {\r\n var hiddenNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Hidden Notes\",\r\n InternalName = \"m2_HiddenNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"13C47F4C-F3BA-431E-A76B-FCC03FED4E9B\"),\r\n };\r\n\r\n var publicNotesField = new NoteFieldDefinition\r\n {\r\n Title = \"Publis Notes\",\r\n InternalName = \"m2_PublicNotes\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"BACEE8AA-90B4-4268-8257-EEA0706942E4\"),\r\n };\r\n\r\n var hiddenNotesContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Hidden Notes\",\r\n Id = new Guid(\"1166D859-CC4B-4A5F-A1F3-28BE508C5A92\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(hiddenNotesField)\r\n .AddField(publicNotesField)\r\n .AddContentType(hiddenNotesContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(hiddenNotesField)\r\n .AddContentTypeFieldLink(publicNotesField)\r\n .AddHideContentTypeFieldLinks(new HideContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = hiddenNotesField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeFieldLinksDefinitionTests\r\n HideContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeFieldLinksDefinitionTests\r\n 0\r\n HideContentTypeFieldLinksDefinitionTests.cs\r\n HideContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeFieldLinksDefinitionTests.cs\r\n"); } public static class HideContentTypeLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypesInList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanHideContentTypesInList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Hide content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar oldAnnualReportContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n CanHideContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests.CanHideContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HideContentTypeLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n HideContentTypeLinksDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HideContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HideContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Hide content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanHideContentTypesInList()\r\n {\r\n var newAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2015\",\r\n Id = new Guid(\"7B3378FF-11DF-430B-830F-C63FABA4712F\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var oldAnnualReportContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Annual Report 2014\",\r\n Id = new Guid(\"DEB586C5-ED08-4D06-98F6-9FC5002986D2\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(newAnnualReportContentType)\r\n .AddContentType(oldAnnualReportContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(newAnnualReportContentType)\r\n .AddContentTypeLink(oldAnnualReportContentType)\r\n .AddHideContentTypeLinks(new HideContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\" },\r\n new ContentTypeLinkValue{ ContentTypeName = oldAnnualReportContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HideContentTypeLinksDefinitionTests\r\n HideContentTypeLinksDefinitionTestsClass\r\n \r\n ClassHideContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HideContentTypeLinksDefinitionTests\r\n 0\r\n HideContentTypeLinksDefinitionTests.cs\r\n HideContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\HideContentTypeLinksDefinitionTests.cs\r\n"); } public static class InformationRightsManagementSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleInformationRightsManagementSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample InformationRightsManagementSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleInformationRightsManagementSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add IRM settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests.CanDeploySimpleInformationRightsManagementSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample InformationRightsManagementSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n InformationRightsManagementSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class InformationRightsManagementSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.InformationRightsManagementSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add IRM settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleInformationRightsManagementSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n InformationRightsManagementSettingsDefinitionTests\r\n InformationRightsManagementSettingsDefinitionTestsClass\r\n \r\n ClassInformationRightsManagementSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.InformationRightsManagementSettingsDefinitionTests\r\n 0\r\n InformationRightsManagementSettingsDefinitionTests.cs\r\n InformationRightsManagementSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\InformationRightsManagementSettingsDefinitionTests.cs\r\n"); } public static class JobDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJobDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample JobDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJobDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add timer job\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n CanDeploySimpleJobDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests.CanDeploySimpleJobDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample JobDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n JobDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class JobDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JobDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JobDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add timer job\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJobDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JobDefinitionTests\r\n JobDefinitionTestsClass\r\n \r\n ClassJobDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JobDefinitionTests\r\n 0\r\n JobDefinitionTests.cs\r\n JobDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\JobDefinitionTests.cs\r\n"); } public static class ListDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateId = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployOOTBListsLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPromotedLinksList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateId = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var genericList = new ListDefinition\r\n{\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateId\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateId\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployListByTemplateName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list by template name\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var contactsList = new ListDefinition\r\n{\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(contactsList);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployListByTemplateName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployListByTemplateName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployOOTBListsLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add host OOTB lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployOOTBListsLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployOOTBListsLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add multiple lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeploySimpleLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeploySimpleLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPromotedLinksList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add promoted links list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n CanDeployPromotedLinksList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests.CanDeployPromotedLinksList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTagAttribute(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateId()\r\n {\r\n var genericList = new ListDefinition\r\n {\r\n Title = \"Generic list\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"GenericList\"\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"Document library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"DocumentLibrary\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(genericList);\r\n web.AddList(documentLibrary);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list by template name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployListByTemplateName()\r\n {\r\n var contactsList = new ListDefinition\r\n {\r\n Title = \"Some Assert\",\r\n Description = \"Some Assert.\",\r\n TemplateName = BuiltInListTemplates.AssetLibrary.InternalName,\r\n Url = \"SomeAssert\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(contactsList);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployStyleLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add host OOTB lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployOOTBListsLibrary()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n // do stuff\r\n });\r\n\r\n web.AddHostList(BuiltInListDefinitions.SiteAssets, list =>\r\n {\r\n // do stuff\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multiple lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLists()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.AboutOurCompany, aboutWeb =>\r\n {\r\n aboutWeb\r\n .AddList(DocLists.AboutUsLists.ManagementTeam)\r\n .AddList(DocLists.AboutUsLists.OurClients);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.HR, hrWeb =>\r\n {\r\n hrWeb\r\n .AddList(DocLists.HRLists.AnnualReviews)\r\n .AddList(DocLists.HRLists.Poicies)\r\n .AddList(DocLists.HRLists.Procedures);\r\n })\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddList(DocLists.DepartmentsLists.IssueRegister)\r\n .AddList(DocLists.DepartmentsLists.TeamEvents)\r\n .AddList(DocLists.DepartmentsLists.TeamTasks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add promoted links list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPromotedLinksList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"My Links\",\r\n TemplateName = BuiltInListTemplates.PromotedLinks.InternalName,\r\n CustomUrl = \"/lists/my-links\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListDefinitionTests\r\n ListDefinitionTestsClass\r\n \r\n ClassListDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListDefinitionTests\r\n 0\r\n ListDefinitionTests.cs\r\n ListDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListDefinitionTests.cs\r\n"); } public static class ListFieldLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListFieldLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add field links to list\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var fieldDef = new TextFieldDefinition\r\n{\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n};\r\n\r\nvar listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTextField(fieldDef);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n CanDeploySimpleListFieldLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests.CanDeploySimpleListFieldLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListFieldLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListFieldLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListFieldLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListFieldLinkDefinition\")]\r\n [SampleMetadata(Title = \"Add field links to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListFieldLinkDefinition()\r\n {\r\n var fieldDef = new TextFieldDefinition\r\n {\r\n Title = \"Customer number\",\r\n InternalName = \"m2CustomNumber\",\r\n Id = new Guid(\"87247c7d-1ecc-4503-bfd5-21f107b442fb\")\r\n };\r\n\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTextField(fieldDef);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n // will add a link to the site level field\r\n list.AddListFieldLink(fieldDef);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListFieldLinkDefinitionTests\r\n ListFieldLinkDefinitionTestsClass\r\n \r\n ClassListFieldLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListFieldLinkDefinitionTests\r\n 0\r\n ListFieldLinkDefinitionTests.cs\r\n ListFieldLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListFieldLinkDefinitionTests.cs\r\n"); } public static class ListItemDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListItemDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list item\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n CanDeploySimpleListItemDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests.CanDeploySimpleListItemDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListItemDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListItemDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemDefinition()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Customers\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/customers\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list\r\n .AddListItem(new ListItemDefinition { Title = \"Microsoft\" })\r\n .AddListItem(new ListItemDefinition { Title = \"Apple\" })\r\n .AddListItem(new ListItemDefinition { Title = \"IBM\" });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemDefinitionTests\r\n ListItemDefinitionTestsClass\r\n \r\n ClassListItemDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemDefinitionTests\r\n 0\r\n ListItemDefinitionTests.cs\r\n ListItemDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemDefinitionTests.cs\r\n"); } public static class ListItemFieldValueDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemFieldValueDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListItemFieldValueDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListItemFieldValueDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Add list item field value\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n CanDeploySimpleListItemFieldValueDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests.CanDeploySimpleListItemFieldValueDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListItemFieldValueDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n ListItemFieldValueDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListItemFieldValueDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListItemFieldValueDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list item field value\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListItemFieldValueDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListItemFieldValueDefinitionTests\r\n ListItemFieldValueDefinitionTestsClass\r\n \r\n ClassListItemFieldValueDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListItemFieldValueDefinitionTests\r\n 0\r\n ListItemFieldValueDefinitionTests.cs\r\n ListItemFieldValueDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListItemFieldValueDefinitionTests.cs\r\n"); } public static class ListViewDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViews = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCustomUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCAMLQuery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListViewDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViews = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var approvedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar inProgressDocuments = new ListViewDefinition\r\n{\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViews\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViews\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCustomUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var returnedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCustomUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCustomUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleListViewsWithCAMLQuery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add list view with CAML\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var createdQuery = new StringBuilder();\r\n\r\ncreatedQuery.Append(\"<Where>\");\r\ncreatedQuery.Append(\"</Where>\");\r\ncreatedQuery.Append(\"<OrderBy>\");\r\ncreatedQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\ncreatedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenCreatedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar editedQuery = new StringBuilder();\r\n\r\neditedQuery.Append(\"<Where>\");\r\neditedQuery.Append(\"</Where>\");\r\neditedQuery.Append(\"<OrderBy>\");\r\neditedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\neditedQuery.Append(\"</OrderBy>\");\r\n\r\nvar lastTenEditedDocuments = new ListViewDefinition\r\n{\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n};\r\n\r\nvar documentLibrary = new ListDefinition\r\n{\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n CanDeploySimpleListViewsWithCAMLQuery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests.CanDeploySimpleListViewsWithCAMLQuery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListViewDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists views\r\n Lists views\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViews()\r\n {\r\n var approvedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Approved Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var inProgressDocuments = new ListViewDefinition\r\n {\r\n Title = \"In Progress Documents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(approvedDocuments);\r\n list.AddListView(inProgressDocuments);\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add list view with URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCustomUrl()\r\n {\r\n var returnedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Returned Documents\",\r\n Url = \"Returned.aspx\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(returnedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewDefinition\")]\r\n [SampleMetadata(Title = \"Add list view with CAML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleListViewsWithCAMLQuery()\r\n {\r\n var createdQuery = new StringBuilder();\r\n\r\n createdQuery.Append(\"<Where>\");\r\n createdQuery.Append(\"</Where>\");\r\n createdQuery.Append(\"<OrderBy>\");\r\n createdQuery.Append(\" <FieldRef Name=\'ID\' Ascending=\'FALSE\'/>\");\r\n createdQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenCreatedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Created Documents\",\r\n RowLimit = 10,\r\n Query = createdQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var editedQuery = new StringBuilder();\r\n\r\n editedQuery.Append(\"<Where>\");\r\n editedQuery.Append(\"</Where>\");\r\n editedQuery.Append(\"<OrderBy>\");\r\n editedQuery.Append(\" <FieldRef Name=\'Modified\' Ascending=\'FALSE\'/>\");\r\n editedQuery.Append(\"</OrderBy>\");\r\n\r\n var lastTenEditedDocuments = new ListViewDefinition\r\n {\r\n Title = \"Last 10 Edited Documents\",\r\n RowLimit = 10,\r\n Query = editedQuery.ToString(),\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n }\r\n };\r\n\r\n var documentLibrary = new ListDefinition\r\n {\r\n Title = \"CustomerDocuments\",\r\n Description = \"A customr document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"CustomerDocuments\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(documentLibrary, list =>\r\n {\r\n list.AddListView(lastTenCreatedDocuments);\r\n list.AddListView(lastTenEditedDocuments);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewDefinitionTests\r\n ListViewDefinitionTestsClass\r\n \r\n ClassListViewDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewDefinitionTests\r\n 0\r\n ListViewDefinitionTests.cs\r\n ListViewDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewDefinitionTests.cs\r\n"); } public static class ListViewWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartToCalendarView = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var travelRequests = new ListDefinition\r\n{\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var annualReviewsLibrary = new ListDefinition\r\n{\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var incidentsLibrary = new ListDefinition\r\n{\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n};\r\n\r\nvar incidentsView = new ListViewDefinition\r\n{\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindListViewWebPartToCalendarView = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add LVWP binded to calendar view\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var companyEvents = new ListDefinition\r\n{\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar listView = new ListViewWebPartDefinition\r\n{\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n CanBindListViewWebPartToCalendarView\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests.CanBindListViewWebPartToCalendarView\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ListViewWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListTitle()\r\n {\r\n var travelRequests = new ListDefinition\r\n {\r\n Title = \"Travel Requests\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2TravelRequests\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Travel Request Default View by List Title\",\r\n Id = \"m2TravelRequestsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = travelRequests.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(travelRequests)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListUrl()\r\n {\r\n var annualReviewsLibrary = new ListDefinition\r\n {\r\n Title = \"Annual Reviews\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2AnnualReviews\"\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Annual Reviews Default View by List Url\",\r\n Id = \"m2AnnualReviewsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = annualReviewsLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(annualReviewsLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartByListViewTitle()\r\n {\r\n var incidentsLibrary = new ListDefinition\r\n {\r\n Title = \"Incidents library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"m2Incidents\"\r\n };\r\n\r\n var incidentsView = new ListViewDefinition\r\n {\r\n Title = \"Last Incidents\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Last Incidents binding by List View Title\",\r\n Id = \"m2LastIncidentsView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = incidentsLibrary.GetListUrl(),\r\n ViewName = incidentsView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(incidentsLibrary, list =>\r\n {\r\n list.AddListView(incidentsView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add LVWP binded to calendar view\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindListViewWebPartToCalendarView()\r\n {\r\n var companyEvents = new ListDefinition\r\n {\r\n Title = \"Company Events\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.Events,\r\n Url = \"m2CompanyEvents\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 List View provision\",\r\n FileName = \"listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var listView = new ListViewWebPartDefinition\r\n {\r\n Title = \"Company Events by List View Title\",\r\n Id = \"m2CompanyEvents\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = companyEvents.GetListUrl(),\r\n ViewName = \"Calendar\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(companyEvents)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddListViewWebPart(listView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ListViewWebPartDefinitionTests\r\n ListViewWebPartDefinitionTestsClass\r\n \r\n ClassListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ListViewWebPartDefinitionTests\r\n 0\r\n ListViewWebPartDefinitionTests.cs\r\n ListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ListViewWebPartDefinitionTests.cs\r\n"); } public static class LookupFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployEmptyLookupField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployLookupFieldBindedToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample LookupFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployEmptyLookupField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var emptyLookupField = new LookupFieldDefinition\r\n{\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(emptyLookupField);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployEmptyLookupField\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployEmptyLookupField\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployLookupFieldBindedToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add lookup field binded to list\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n var leadTypeLookup = new LookupFieldDefinition\r\n{\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n};\r\n\r\nvar lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(leadTypeLookup);\r\n});\r\n\r\nvar leadRecords = new ListDefinition\r\n{\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n};\r\n\r\nvar leadRecordTypes = new ListDefinition\r\n{\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n};\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n});\r\n\r\n// 1. deploy lookup field without bindings\r\nDeployModel(lookupFieldModel);\r\n\r\n// 2. deploy lists\r\nDeployModel(webModel);\r\n\r\n// 3. update binding for the lookup field\r\n// LookupList/LookupListId could also be used\r\nleadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n// 4. deploy lookup field again, so that it will be binded\r\nDeployModel(lookupFieldModel);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n CanDeployLookupFieldBindedToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests.CanDeployLookupFieldBindedToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LookupFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n LookupFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class LookupFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class LookupFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployEmptyLookupField()\r\n {\r\n var emptyLookupField = new LookupFieldDefinition\r\n {\r\n Title = \"Empty Lookup Field\",\r\n InternalName = \"m2EmptyLookupField\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"B6387953-3967-4023-9D38-431F2C6A5E54\")\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(emptyLookupField);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LookupFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add lookup field binded to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployLookupFieldBindedToList()\r\n {\r\n var leadTypeLookup = new LookupFieldDefinition\r\n {\r\n Title = \"Lead Type\",\r\n InternalName = \"m2LeadType\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FEFC30A7-3B38-4034-BB2A-FFD538D46A63\")\r\n };\r\n\r\n var lookupFieldModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(leadTypeLookup);\r\n });\r\n\r\n var leadRecords = new ListDefinition\r\n {\r\n Title = \"Lead Records\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordsList\"\r\n };\r\n\r\n var leadRecordTypes = new ListDefinition\r\n {\r\n Title = \"Lead Record Types\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"m2LeadRecordTypesList\"\r\n };\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(leadRecords, list =>\r\n {\r\n list.AddListFieldLink(leadTypeLookup);\r\n })\r\n .AddList(leadRecordTypes);\r\n });\r\n\r\n // 1. deploy lookup field without bindings\r\n DeployModel(lookupFieldModel);\r\n\r\n // 2. deploy lists\r\n DeployModel(webModel);\r\n\r\n // 3. update binding for the lookup field\r\n // LookupList/LookupListId could also be used\r\n leadTypeLookup.LookupListTitle = leadRecordTypes.Title;\r\n\r\n // 4. deploy lookup field again, so that it will be binded\r\n DeployModel(lookupFieldModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n LookupFieldDefinitionTests\r\n LookupFieldDefinitionTestsClass\r\n \r\n ClassLookupFieldDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.LookupFieldDefinitionTests\r\n 0\r\n LookupFieldDefinitionTests.cs\r\n LookupFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\LookupFieldDefinitionTests.cs\r\n"); } public static class ManagedAccountDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleManagedAccountDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ManagedAccountDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleManagedAccountDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add managed account\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n CanDeploySimpleManagedAccountDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests.CanDeploySimpleManagedAccountDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ManagedAccountDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n ManagedAccountDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ManagedAccountDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ManagedAccountDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ManagedAccountDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add managed account\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleManagedAccountDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ManagedAccountDefinitionTests\r\n ManagedAccountDefinitionTestsClass\r\n \r\n ClassManagedAccountDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ManagedAccountDefinitionTests\r\n 0\r\n ManagedAccountDefinitionTests.cs\r\n ManagedAccountDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ManagedAccountDefinitionTests.cs\r\n"); } public static class MasterPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMasterPageDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMasterPageDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Add master page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var masterPage = new MasterPageDefinition\r\n{\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n CanDeploySimpleMasterPageDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests.CanDeploySimpleMasterPageDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n MasterPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class MasterPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class MasterPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMasterPageDefinition()\r\n {\r\n var masterPage = new MasterPageDefinition\r\n {\r\n Title = \"M2 Oslo\",\r\n FileName = \"m2-oslo.master\",\r\n // replace with your master page content\r\n Content = Encoding.UTF8.GetBytes(DefaultMasterPageTemplates.Oslo),\r\n NeedOverride = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddMasterPage(masterPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageDefinitionTests\r\n MasterPageDefinitionTestsClass\r\n \r\n ClassMasterPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageDefinitionTests\r\n 0\r\n MasterPageDefinitionTests.cs\r\n MasterPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageDefinitionTests.cs\r\n"); } public static class MasterPageSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebmasterPageSettings = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebmasterPageSettings = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Add master page setting\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n// BuiltInMasterPageDefinitions.Seattle\r\n// BuiltInMasterPageDefinitions.Oslo\r\n// BuiltInMasterPageDefinitions.Minimal\r\n\r\nvar masterPageSettings = new MasterPageSettingsDefinition\r\n{\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddMasterPageSettings(masterPageSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n CanDeployWebmasterPageSettings\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests.CanDeployWebmasterPageSettings\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MasterPageSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n MasterPageSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle \r\n // BuiltInMasterPageDefinitions.Oslo \r\n // BuiltInMasterPageDefinitions.Minimal \r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MasterPageSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add master page setting\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebmasterPageSettings()\r\n {\r\n // BuiltInMasterPageDefinitions class could be used to refer OOTB master pages\r\n // BuiltInMasterPageDefinitions.Seattle\r\n // BuiltInMasterPageDefinitions.Oslo\r\n // BuiltInMasterPageDefinitions.Minimal\r\n\r\n var masterPageSettings = new MasterPageSettingsDefinition\r\n {\r\n // both should be site relative URLs\r\n SiteMasterPageUrl = \"/_catalogs/masterpage/oslo.master\",\r\n SystemMasterPageUrl = \"/_catalogs/masterpage/oslo.master\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddMasterPageSettings(masterPageSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MasterPageSettingsDefinitionTests\r\n MasterPageSettingsDefinitionTestsClass\r\n \r\n ClassMasterPageSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MasterPageSettingsDefinitionTests\r\n 0\r\n MasterPageSettingsDefinitionTests.cs\r\n MasterPageSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MasterPageSettingsDefinitionTests.cs\r\n"); } public static class ModuleFileDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ModuleFileDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToStyleLibrary = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to Style Library\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToStyleLibrary\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToStyleLibrary\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployModuleFilesToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n \r\n \r\n \r\n Add module file to folder\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var cssFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n};\r\n\r\nvar jsFile = new ModuleFileDefinition\r\n{\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n};\r\n\r\nvar cssFolder = new FolderDefinition\r\n{\r\n Name = \"m2-css\"\r\n};\r\n\r\nvar jsFolder = new FolderDefinition\r\n{\r\n Name = \"m2-js\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n CanDeployModuleFilesToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests.CanDeployModuleFilesToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ModuleFileDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Module files\r\n Module files\r\n \r\n \r\n \r\n ModuleFileDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ModuleFileDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ModuleFileDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add module file to Style Library\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployModuleFilesToStyleLibrary()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-styles.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-content { padding:10px; border:1px red solid; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-app.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" alert(\'hello, m2!\'); \")\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddModuleFile(cssFile)\r\n .AddModuleFile(jsFile);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ModuleFileDefinition\")]\r\n [SampleMetadata(Title = \"Add module file to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployModuleFilesToFolders()\r\n {\r\n var cssFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-red.css\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\".m2-red { color:red; } \")\r\n };\r\n\r\n var jsFile = new ModuleFileDefinition\r\n {\r\n FileName = \"m2-logger-module.js\",\r\n Overwrite = true,\r\n Content = Encoding.UTF8.GetBytes(\" function(msg) { console.log(msg); } \")\r\n };\r\n\r\n var cssFolder = new FolderDefinition\r\n {\r\n Name = \"m2-css\"\r\n };\r\n\r\n var jsFolder = new FolderDefinition\r\n {\r\n Name = \"m2-js\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list\r\n .AddFolder(cssFolder, folder =>\r\n {\r\n folder.AddModuleFile(cssFile);\r\n })\r\n .AddFolder(jsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jsFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ModuleFileDefinitionTests\r\n ModuleFileDefinitionTestsClass\r\n \r\n ClassModuleFileDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ModuleFileDefinitionTests\r\n 0\r\n ModuleFileDefinitionTests.cs\r\n ModuleFileDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ModuleFileDefinitionTests.cs\r\n"); } public static class MultiChoiceFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMultiChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MultiChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMultiChoiceFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add multichoice field\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n{\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddMultiChoiceField(fieldDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n CanDeploySimpleMultiChoiceFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests.CanDeploySimpleMultiChoiceFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MultiChoiceFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n MultiChoiceFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MultiChoiceFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MultiChoiceFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add multichoice field\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMultiChoiceFieldDefinition()\r\n {\r\n var fieldDef = new MultiChoiceFieldDefinition\r\n {\r\n Title = \"Tasks label\",\r\n InternalName = \"dcs_ProgressTag\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"b08325aa-a750-4bf9-a73e-c470b86d37c8\"),\r\n Choices = new Collection<string>\r\n {\r\n \"internal\",\r\n \"external\",\r\n \"bug\",\r\n \"easy fix\",\r\n \"enhancement\"\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddMultiChoiceField(fieldDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MultiChoiceFieldDefinitionTests\r\n MultiChoiceFieldDefinitionTestsClass\r\n \r\n ClassMultiChoiceFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MultiChoiceFieldDefinitionTests\r\n 0\r\n MultiChoiceFieldDefinitionTests.cs\r\n MultiChoiceFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\MultiChoiceFieldDefinitionTests.cs\r\n"); } public static class NoteFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNoteFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample NoteFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNoteFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add note field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n CanDeploySimpleNoteFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests.CanDeploySimpleNoteFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample NoteFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n NoteFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NoteFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NoteFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NoteFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add note field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNoteFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NoteFieldDefinitionTests\r\n NoteFieldDefinitionTestsClass\r\n \r\n ClassNoteFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NoteFieldDefinitionTests\r\n 0\r\n NoteFieldDefinitionTests.cs\r\n NoteFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NoteFieldDefinitionTests.cs\r\n"); } public static class NumberFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNumberFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample NumberFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleNumberFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add number field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n CanDeploySimpleNumberFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests.CanDeploySimpleNumberFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample NumberFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n NumberFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class NumberFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class NumberFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.NumberFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add number field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleNumberFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n NumberFieldDefinitionTests\r\n NumberFieldDefinitionTestsClass\r\n \r\n ClassNumberFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.NumberFieldDefinitionTests\r\n 0\r\n NumberFieldDefinitionTests.cs\r\n NumberFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\NumberFieldDefinitionTests.cs\r\n"); } public static class PrefixDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePrefixDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PrefixDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePrefixDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n Add prefix\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var prefixDef = new PrefixDefinition\r\n{\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n{\r\n webApp.AddPrefix(prefixDef);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n CanDeploySimplePrefixDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests.CanDeploySimplePrefixDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PrefixDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n PrefixDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PrefixDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PrefixDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PrefixDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add prefix\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePrefixDefinition()\r\n {\r\n var prefixDef = new PrefixDefinition\r\n {\r\n Path = \"projects\",\r\n PrefixType = BuiltInPrefixTypes.WildcardInclusion\r\n };\r\n\r\n var model = SPMeta2Model.NewWebApplicationModel(webApp =>\r\n {\r\n webApp.AddPrefix(prefixDef);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PrefixDefinitionTests\r\n PrefixDefinitionTestsClass\r\n \r\n ClassPrefixDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PrefixDefinitionTests\r\n 0\r\n PrefixDefinitionTests.cs\r\n PrefixDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PrefixDefinitionTests.cs\r\n"); } public static class PropertyDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFarm = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PropertyDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFarm = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to farm\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n var farmTag = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n};\r\n\r\nvar farmType = new PropertyDefinition\r\n{\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewFarmModel(farm =>\r\n{\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFarm\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFarm\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to site\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteTag = new PropertyDefinition\r\n{\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n};\r\n\r\nvar siteType = new PropertyDefinition\r\n{\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webTag = new PropertyDefinition\r\n{\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n};\r\n\r\nvar webType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to list\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listTag = new PropertyDefinition\r\n{\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n};\r\n\r\nvar listType = new PropertyDefinition\r\n{\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPropertyBagUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n \r\n \r\n \r\n Add property to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var folderTag = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n};\r\n\r\nvar folderType = new PropertyDefinition\r\n{\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n};\r\n\r\nvar listWithProperties = new ListDefinition\r\n{\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n};\r\n\r\nvar fodlerWithProperties = new FolderDefinition\r\n{\r\n Name = \"folder with properties\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n CanDeployPropertyBagUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests.CanDeployPropertyBagUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PropertyDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n Web Application Model\r\n Farm Model\r\n Web Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Property bags\r\n Property bags\r\n \r\n \r\n \r\n PropertyDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PropertyDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669 \r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PropertyDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to farm\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFarm()\r\n {\r\n var farmTag = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_tag\",\r\n Value = \"m2_farm_tag_value\",\r\n };\r\n\r\n var farmType = new PropertyDefinition\r\n {\r\n Key = \"m2_farm_type\",\r\n Value = \"m2_farm_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewFarmModel(farm =>\r\n {\r\n farm\r\n .AddProperty(farmTag)\r\n .AddProperty(farmType);\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderSite()\r\n {\r\n var siteTag = new PropertyDefinition\r\n {\r\n Key = \"m2_site_tag\",\r\n Value = \"m2_site_tag_value\",\r\n };\r\n\r\n var siteType = new PropertyDefinition\r\n {\r\n Key = \"m2_site_type\",\r\n Value = \"m2_site_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddProperty(siteTag)\r\n .AddProperty(siteType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderWeb()\r\n {\r\n var webTag = new PropertyDefinition\r\n {\r\n Key = \"m2_web_tag\",\r\n Value = \"m2_web_tag_value\",\r\n };\r\n\r\n var webType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddProperty(webTag)\r\n .AddProperty(webType);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add property to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderList()\r\n {\r\n var listTag = new PropertyDefinition\r\n {\r\n Key = \"m2_list_tag\",\r\n Value = \"m2_list_tag_value\",\r\n };\r\n\r\n var listType = new PropertyDefinition\r\n {\r\n Key = \"m2_web_type\",\r\n Value = \"m2_web_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list\r\n .AddProperty(listTag)\r\n .AddProperty(listType);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PropertyDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add property to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPropertyBagUnderFolder()\r\n {\r\n var folderTag = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_tag\",\r\n Value = \"m2_folder_tag_value\",\r\n };\r\n\r\n var folderType = new PropertyDefinition\r\n {\r\n Key = \"m2_folder_type\",\r\n Value = \"m2_folder_type_value\",\r\n };\r\n\r\n var listWithProperties = new ListDefinition\r\n {\r\n Title = \"List with properties\",\r\n Description = \"List with some properties.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"ListWithProperties\"\r\n };\r\n\r\n var fodlerWithProperties = new FolderDefinition\r\n {\r\n Name = \"folder with properties\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listWithProperties, list =>\r\n {\r\n list.AddFolder(fodlerWithProperties, folder =>\r\n {\r\n // Syntax miss - folder should support adding props #669\r\n // https://github.com/SubPointSolutions/spmeta2/issues/669\r\n\r\n //folder\r\n // .AddProperty(folderTag)\r\n // .AddProperty(folderType);\r\n\r\n folder\r\n .AddDefinitionNode(folderTag)\r\n .AddDefinitionNode(folderType);\r\n });\r\n\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PropertyDefinitionTests\r\n PropertyDefinitionTestsClass\r\n \r\n ClassPropertyDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PropertyDefinitionTests\r\n 0\r\n PropertyDefinitionTests.cs\r\n PropertyDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\PropertyDefinitionTests.cs\r\n"); } public static class QuickLaunchNavigationNodeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample QuickLaunchNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add quick nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar services = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar contacts = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployFlatQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployFlatQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalQuickLaunchNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical quick nav items\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar clients = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new QuickLaunchNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n CaDeployHierarchicalQuickLaunchNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests.CaDeployHierarchicalQuickLaunchNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample QuickLaunchNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n QuickLaunchNavigationNodeDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class QuickLaunchNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CaDeployFlatQuickLaunchNavigation()\r\n {\r\n var aboutUs = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"About us\",\r\n Url = \"about-us.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var services = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Services\",\r\n Url = \"services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var contacts = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Contacts\",\r\n Url = \"contacts.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(aboutUs)\r\n .AddQuickLaunchNavigationNode(services)\r\n .AddQuickLaunchNavigationNode(contacts);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.QuickLaunchNavigationNodeDefinition\")]\r\n [SampleMetadata(Title = \"Add hierarchical quick nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalQuickLaunchNavigation()\r\n {\r\n // top level departments node\r\n var departments = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Departments\",\r\n Url = \"departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"HR\",\r\n Url = \"hr.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"IT\",\r\n Url = \"it.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var clients = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Clients\",\r\n Url = \"clients.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new QuickLaunchNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddQuickLaunchNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(hr)\r\n .AddQuickLaunchNavigationNode(it);\r\n })\r\n .AddQuickLaunchNavigationNode(clients, node =>\r\n {\r\n node\r\n .AddQuickLaunchNavigationNode(microsoft)\r\n .AddQuickLaunchNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n QuickLaunchNavigationNodeDefinitionTests\r\n QuickLaunchNavigationNodeDefinitionTestsClass\r\n \r\n ClassQuickLaunchNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.QuickLaunchNavigationNodeDefinitionTests\r\n 0\r\n QuickLaunchNavigationNodeDefinitionTests.cs\r\n QuickLaunchNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\QuickLaunchNavigationNodeDefinitionTests.cs\r\n"); } public static class RegionalSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleRegionalSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RegionalSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleRegionalSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add regional settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n CanDeploySimpleRegionalSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests.CanDeploySimpleRegionalSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RegionalSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n RegionalSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RegionalSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RegionalSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add regional settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleRegionalSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RegionalSettingsDefinitionTests\r\n RegionalSettingsDefinitionTestsClass\r\n \r\n ClassRegionalSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RegionalSettingsDefinitionTests\r\n 0\r\n RegionalSettingsDefinitionTests.cs\r\n RegionalSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RegionalSettingsDefinitionTests.cs\r\n"); } public static class RemoveContentTypeFieldLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFieldLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFieldLink = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Remove fields from content type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customName = new TextFieldDefinition\r\n{\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n};\r\n\r\nvar customObjectContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n CanRemoveContentTypeFieldLink\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests.CanRemoveContentTypeFieldLink\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeFieldLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n RemoveContentTypeFieldLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeFieldLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeFieldLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove fields from content type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFieldLink()\r\n {\r\n var customName = new TextFieldDefinition\r\n {\r\n Title = \"Custom Name\",\r\n InternalName = \"m2_CustomName\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"8EE0C5C6-BD47-4111-9707-660B737F9F9B\"),\r\n };\r\n\r\n var customObjectContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Custom Object\",\r\n Id = new Guid(\"C6F60CBE-48AE-434D-955C-7A45DC32AD9A\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(customName)\r\n .AddContentType(customObjectContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(customName)\r\n .AddRemoveContentTypeFieldLinks(new RemoveContentTypeFieldLinksDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue {Id = BuiltInFieldId.Title}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n RemoveContentTypeFieldLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeFieldLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeFieldLinksDefinitionTests\r\n 0\r\n RemoveContentTypeFieldLinksDefinitionTests.cs\r\n RemoveContentTypeFieldLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeFieldLinksDefinitionTests.cs\r\n"); } public static class RemoveContentTypeLinksDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFromList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanRemoveContentTypeFromList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Remove content types from lists\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var defaultReport = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar defaultReportsList = new ListDefinition\r\n{\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(defaultReport);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n CanRemoveContentTypeFromList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests.CanRemoveContentTypeFromList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RemoveContentTypeLinksDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n RemoveContentTypeLinksDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RemoveContentTypeLinksDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RemoveContentTypeLinksDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Remove content types from lists\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanRemoveContentTypeFromList()\r\n {\r\n var defaultReport = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Default Report\",\r\n Id = new Guid(\"E2134FA1-254A-41AF-8BB0-A0A521722832\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var defaultReportsList = new ListDefinition\r\n {\r\n Title = \"M2 Default Reports\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2DefaultReports\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(defaultReport);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(defaultReportsList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(defaultReport)\r\n .AddRemoveContentTypeLinks(new RemoveContentTypeLinksDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = \"Item\"}\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RemoveContentTypeLinksDefinitionTests\r\n RemoveContentTypeLinksDefinitionTestsClass\r\n \r\n ClassRemoveContentTypeLinksDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RemoveContentTypeLinksDefinitionTests\r\n 0\r\n RemoveContentTypeLinksDefinitionTests.cs\r\n RemoveContentTypeLinksDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RemoveContentTypeLinksDefinitionTests.cs\r\n"); } public static class ResetRoleInheritanceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ResetRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on list\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var listDef = new ListDefinition\r\n{\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployResetRoleInheritanceDefinition_OnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Reset role inheritance on web\r\n \r\n \r\n \r\n\r\n\r\n \r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var publicProjectWebDef = new WebDefinition\r\n{\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n CanDeployResetRoleInheritanceDefinition_OnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests.CanDeployResetRoleInheritanceDefinition_OnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ResetRoleInheritanceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n ResetRoleInheritanceDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ResetRoleInheritanceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on list\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnList()\r\n {\r\n var listDef = new ListDefinition\r\n {\r\n Title = \"Public records\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n CustomUrl = \"lists/public-records\",\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(listDef, list =>\r\n {\r\n list.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), resetList =>\r\n {\r\n // resetList is your list but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // resetList.AddListView(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ResetRoleInheritanceDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Reset role inheritance on web\",\r\n Description = \"\"\r\n )]\r\n public void CanDeployResetRoleInheritanceDefinition_OnWeb()\r\n {\r\n var publicProjectWebDef = new WebDefinition\r\n {\r\n Title = \"Public project\",\r\n Url = \"public-project\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(publicProjectWebDef, publicProjectWeb =>\r\n {\r\n publicProjectWeb.AddResetRoleInheritance(new ResetRoleInheritanceDefinition(), publicProjectResetWeb =>\r\n {\r\n // publicProjectResetWeb is your web but after resetting role inheritance\r\n // build your model as usual\r\n\r\n // publicProjectResetWeb.AddList(...)\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ResetRoleInheritanceDefinitionTests\r\n ResetRoleInheritanceDefinitionTestsClass\r\n \r\n ClassResetRoleInheritanceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ResetRoleInheritanceDefinitionTests\r\n 0\r\n ResetRoleInheritanceDefinitionTests.cs\r\n ResetRoleInheritanceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ResetRoleInheritanceDefinitionTests.cs\r\n"); } public static class RootWebDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanUpdateRootWebProperties = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanProvisionRootWebLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample RootWebDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanUpdateRootWebProperties = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Update root web Title/Description\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanUpdateRootWebProperties\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanUpdateRootWebProperties\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanProvisionRootWebLists = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n \r\n \r\n \r\n Add lists to root web\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var rootWeb = new RootWebDefinition\r\n{\r\n\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n CanProvisionRootWebLists\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests.CanProvisionRootWebLists\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample RootWebDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Root web\r\n Root web\r\n \r\n \r\n \r\n RootWebDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class RootWebDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class RootWebDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Update root web Title/Description\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanUpdateRootWebProperties()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n Title = \"M2 CRM\",\r\n Description = \"Custom CRM application build on top of M2 framework.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.RootWebDefinition\")]\r\n [SampleMetadata(Title = \"Add lists to root web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanProvisionRootWebLists()\r\n {\r\n var rootWeb = new RootWebDefinition\r\n {\r\n\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddRootWeb(rootWeb, web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n // do stuff with \'Style Library\'\r\n })\r\n .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n // do stuff with \'Master Page Library\'\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n RootWebDefinitionTests\r\n RootWebDefinitionTestsClass\r\n \r\n ClassRootWebDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.RootWebDefinitionTests\r\n 0\r\n RootWebDefinitionTests.cs\r\n RootWebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\RootWebDefinitionTests.cs\r\n"); } public static class SandboxSolutionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSandboxSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SandboxSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSandboxSolutionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add sandbox solution\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // FileName could be different to the original solution name\r\n// FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n// Content is a byte array, so get ot from whatever source you want\r\n\r\n// SolutionId is used to lookup existing sandbox package\r\n// get SolutionId from the VS project or XML inside WSP package\r\n\r\n// Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\nvar myBranding = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n};\r\n\r\nvar myTasks = new SandboxSolutionDefinition\r\n{\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n CanDeploySimpleSandboxSolutionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests.CanDeploySimpleSandboxSolutionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SandboxSolutionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SandboxSolutionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n \r\n // Content is a byte array, so get ot from whatever source you want\r\n \r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n \r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SandboxSolutionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SandboxSolutionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add sandbox solution\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSandboxSolutionDefinition()\r\n {\r\n // FileName could be different to the original solution name\r\n // FileName must not have \".\" to avoid fails (DesignPackage API limitations)\r\n\r\n // Content is a byte array, so get ot from whatever source you want\r\n\r\n // SolutionId is used to lookup existing sandbox package\r\n // get SolutionId from the VS project or XML inside WSP package\r\n\r\n // Activate must be always true for CSOM (DesignPackage API limitations)\r\n\r\n var myBranding = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyBranding.wsp\",\r\n Content = File.ReadAllBytes(\"MySandboxBranding.wsp\"),\r\n SolutionId = new Guid(\"0CDCC076-A472-4DD9-9A1F-0E1E761ED61D\"),\r\n Activate = true,\r\n };\r\n\r\n var myTasks = new SandboxSolutionDefinition\r\n {\r\n FileName = \"MyTasks.wsp\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"MyIntranet.Resources.MyTasks.wsp\"),\r\n SolutionId = new Guid(\"3D279748-92FC-49F9-A6C5-A10FBCD2DB24\"),\r\n Activate = true,\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSandboxSolution(myBranding)\r\n .AddSandboxSolution(myTasks);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SandboxSolutionDefinitionTests\r\n SandboxSolutionDefinitionTestsClass\r\n \r\n ClassSandboxSolutionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SandboxSolutionDefinitionTests\r\n 0\r\n SandboxSolutionDefinitionTests.cs\r\n SandboxSolutionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SandboxSolutionDefinitionTests.cs\r\n"); } public static class ScriptEditorWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleScriptEditorWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployScriptEditorWebPartwithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ScriptEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleScriptEditorWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeploySimpleScriptEditorWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeploySimpleScriptEditorWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployScriptEditorWebPartwithContent = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Script Editor web part with content\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n{\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n CanDeployScriptEditorWebPartwithContent\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests.CanDeployScriptEditorWebPartwithContent\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ScriptEditorWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n ScriptEditorWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ScriptEditorWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleScriptEditorWebPartDefinition()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Empty Script Editor\",\r\n Id = \"m2EmptyScriptEditorrWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ScriptEditorWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Script Editor web part with content\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployScriptEditorWebPartwithContent()\r\n {\r\n var scriptEditor = new ScriptEditorWebPartDefinition\r\n {\r\n Title = \"Pre-provisioned Script Editor\",\r\n Id = \"m2ScriptEditorWithLoggerWhichMustBeMoreThan32Chars\",\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\",\r\n Content = \" <script> console.log(\'script editor log\'); </script> Pre-provisioned Script Editor Content\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Script Editor provision\",\r\n FileName = \"script-editor-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddScriptEditorWebPart(scriptEditor);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ScriptEditorWebPartDefinitionTests\r\n ScriptEditorWebPartDefinitionTestsClass\r\n \r\n ClassScriptEditorWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ScriptEditorWebPartDefinitionTests\r\n 0\r\n ScriptEditorWebPartDefinitionTests.cs\r\n ScriptEditorWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\ScriptEditorWebPartDefinitionTests.cs\r\n"); } public static class SecureStoreApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecureStoreApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecureStoreApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecureStoreApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add secure store application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n CanDeploySimpleSecureStoreApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests.CanDeploySimpleSecureStoreApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecureStoreApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SecureStoreApplicationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecureStoreApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecureStoreApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add secure store application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecureStoreApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecureStoreApplicationDefinitionTests\r\n SecureStoreApplicationDefinitionTestsClass\r\n \r\n ClassSecureStoreApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecureStoreApplicationDefinitionTests\r\n 0\r\n SecureStoreApplicationDefinitionTests.cs\r\n SecureStoreApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecureStoreApplicationDefinitionTests.cs\r\n"); } public static class SecurityGroupDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar reviewers = new SecurityGroupDefinition\r\n{\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add multiple security groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n CanDeploySimpleSecurityGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests.CanDeploySimpleSecurityGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityGroupDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroup()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var reviewers = new SecurityGroupDefinition\r\n {\r\n Name = \"External Reviewers\",\r\n Description = \"External reviewers group.\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(auditors)\r\n .AddSecurityGroup(reviewers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple security groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroups()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityGroup(DocSecurityGroups.ClientManagers)\r\n .AddSecurityGroup(DocSecurityGroups.ClientSupport)\r\n .AddSecurityGroup(DocSecurityGroups.Interns)\r\n .AddSecurityGroup(DocSecurityGroups.OrderApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupDefinitionTests\r\n SecurityGroupDefinitionTestsClass\r\n \r\n ClassSecurityGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupDefinitionTests\r\n 0\r\n SecurityGroupDefinitionTests.cs\r\n SecurityGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupDefinitionTests.cs\r\n"); } public static class SecurityGroupLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the web, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityGroupLinkDefinitionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Assign security group to list\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var auditors = new SecurityGroupDefinition\r\n{\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n};\r\n\r\nvar auditorsList = new ListDefinition\r\n{\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n};\r\n\r\n// add group to the site first\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddSecurityGroup(auditors);\r\n});\r\n\r\n// assign group to the list, via .AddSecurityGroupLink() method\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests.CanDeploySimpleSecurityGroupLinkDefinitionToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityGroupLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SecurityGroupLinkDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class SecurityGroupLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityGroupLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Assign security group to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToWeb()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the web, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n\r\n web.AddSecurityGroupLink(auditors);\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n [SampleMetadata(Title = \"Assign security group to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSecurityGroupLinkDefinitionToList()\r\n {\r\n var auditors = new SecurityGroupDefinition\r\n {\r\n Name = \"External Auditors\",\r\n Description = \"External auditors group.\"\r\n };\r\n\r\n var auditorsList = new ListDefinition\r\n {\r\n Title = \"Auditors documents\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n CustomUrl = \"audit-docs\"\r\n };\r\n\r\n // add group to the site first\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddSecurityGroup(auditors);\r\n });\r\n\r\n // assign group to the list, via .AddSecurityGroupLink() method\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(auditorsList, list =>\r\n {\r\n list.AddSecurityGroupLink(auditors);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityGroupLinkDefinitionTests\r\n SecurityGroupLinkDefinitionTestsClass\r\n \r\n ClassSecurityGroupLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityGroupLinkDefinitionTests\r\n 0\r\n SecurityGroupLinkDefinitionTests.cs\r\n SecurityGroupLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityGroupLinkDefinitionTests.cs\r\n"); } public static class SecurityRoleDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customerEditors = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar customerApprovers = new SecurityRoleDefinition\r\n{\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n CanDeploySimpleSecurityRoleDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests.CanDeploySimpleSecurityRoleDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeploySimpleSecurityRoleDefinition()\r\n {\r\n var customerEditors = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer editors\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var customerApprovers = new SecurityRoleDefinition\r\n {\r\n Name = \"Customer approvers\",\r\n BasePermissions = new Collection<string>\r\n {\r\n BuiltInBasePermissions.EditListItems,\r\n BuiltInBasePermissions.DeleteListItems,\r\n BuiltInBasePermissions.UseClientIntegration\r\n }\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddSecurityRole(customerEditors)\r\n .AddSecurityRole(customerApprovers);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleDefinitionTests\r\n SecurityRoleDefinitionTestsClass\r\n \r\n ClassSecurityRoleDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleDefinitionTests\r\n 0\r\n SecurityRoleDefinitionTests.cs\r\n SecurityRoleDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleDefinitionTests.cs\r\n"); } public static class SecurityRoleLinkDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSecurityRoleLinkDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n \r\n \r\n \r\n Add security role link\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n CanDeploySimpleSecurityRoleLinkDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests.CanDeploySimpleSecurityRoleLinkDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SecurityRoleLinkDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Security\r\n Security\r\n \r\n \r\n \r\n SecurityRoleLinkDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SecurityRoleLinkDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SecurityRoleLinkDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add security role link\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n\r\n public void CanDeploySimpleSecurityRoleLinkDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SecurityRoleLinkDefinitionTests\r\n SecurityRoleLinkDefinitionTestsClass\r\n \r\n ClassSecurityRoleLinkDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SecurityRoleLinkDefinitionTests\r\n 0\r\n SecurityRoleLinkDefinitionTests.cs\r\n SecurityRoleLinkDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SecurityRoleLinkDefinitionTests.cs\r\n"); } public static class SiteDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add site\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n CanDeploySimpleSiteDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests.CanDeploySimpleSiteDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n SiteDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add site\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteDefinitionTests\r\n SiteDefinitionTestsClass\r\n \r\n ClassSiteDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteDefinitionTests\r\n 0\r\n SiteDefinitionTests.cs\r\n SiteDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SiteDefinitionTests.cs\r\n"); } public static class SP2013WorkflowDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n CanDeploySimpleSP2013WorkflowDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests.CanDeploySimpleSP2013WorkflowDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowDefinition()\r\n {\r\n var writeToHistoryLstWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddSP2013Workflow(writeToHistoryLstWorkflow);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SP2013WorkflowDefinitionTests\r\n SP2013WorkflowDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SP2013WorkflowDefinitionTests\r\n 0\r\n SP2013WorkflowDefinitionTests.cs\r\n SP2013WorkflowDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowDefinitionTests.cs\r\n"); } public static class SP2013WorkflowSubscriptionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowSubscriptionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to web\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToWeb\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSP2013WorkflowSubscriptionToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n Add SP2013 workflow to list\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n{\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n};\r\n\r\nvar taskList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n};\r\n\r\nvar historyList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n};\r\n\r\nvar workflowEnabledList = new ListDefinition\r\n{\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n \r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests.CanDeploySimpleSP2013WorkflowSubscriptionToList\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SP2013WorkflowSubscriptionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n SharePoint 2013 workflow\r\n SharePoint 2013 workflow\r\n \r\n \r\n \r\n SP2013WorkflowSubscriptionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SP2013WorkflowSubscriptionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToWeb()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Write To History List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WriteToHistoryListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Write To History List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WriteToHistoryListHistory\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History Web Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SP2013WorkflowSubscriptionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add SP2013 workflow to list\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSP2013WorkflowSubscriptionToList()\r\n {\r\n var writeToHistoryListWorkflow = new SP2013WorkflowDefinition\r\n {\r\n DisplayName = \"M2 - Write to history list\",\r\n Override = true,\r\n Xaml = WorkflowTemplates.WriteToHistoryListWorkflow\r\n };\r\n\r\n var taskList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List Tasks\",\r\n TemplateType = BuiltInListTemplateTypeId.Tasks,\r\n Url = \"m2WorkflowEnabledListTasks\"\r\n };\r\n\r\n var historyList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List History\",\r\n TemplateType = BuiltInListTemplateTypeId.WorkflowHistory,\r\n Url = \"m2WorkflowEnabledListHistory\"\r\n };\r\n\r\n var workflowEnabledList = new ListDefinition\r\n {\r\n Title = \"Workflow Enabled List\",\r\n Description = \"Workflow enabled list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n Url = \"WorkflowEnabledList\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddSP2013Workflow(writeToHistoryListWorkflow)\r\n .AddList(historyList)\r\n .AddList(taskList)\r\n .AddList(workflowEnabledList, list =>\r\n {\r\n list\r\n .AddSP2013WorkflowSubscription(new SP2013WorkflowSubscriptionDefinition\r\n {\r\n Name = \"Write To History List Workflow\",\r\n WorkflowDisplayName = writeToHistoryListWorkflow.DisplayName,\r\n HistoryListUrl = historyList.GetListUrl(),\r\n TaskListUrl = taskList.GetListUrl()\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n SP2013WorkflowSubscriptionDefinitionTestsClass\r\n \r\n ClassSP2013WorkflowSubscriptionDefinitionTestsClass\r\n SubPointSolutions.Docs.Views.Views.SPMeta2.reference.SP2013WorkflowSubscriptionDefinitionTests\r\n 0\r\n SP2013WorkflowSubscriptionDefinitionTests.cs\r\n SP2013WorkflowSubscriptionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\SP2013WorkflowSubscriptionDefinitionTests.cs\r\n"); } public static class TargetApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTargetApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TargetApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTargetApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n Add Target Application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n CanDeploySimpleTargetApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests.CanDeploySimpleTargetApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TargetApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n TargetApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TargetApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TargetApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TargetApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Target Application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTargetApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TargetApplicationDefinitionTests\r\n TargetApplicationDefinitionTestsClass\r\n \r\n ClassTargetApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TargetApplicationDefinitionTests\r\n 0\r\n TargetApplicationDefinitionTests.cs\r\n TargetApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TargetApplicationDefinitionTests.cs\r\n"); } public static class TextFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTextFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TextFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTextFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add text field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n CanDeploySimpleTextFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests.CanDeploySimpleTextFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TextFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TextFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TextFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TextFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TextFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add text field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTextFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TextFieldDefinitionTests\r\n TextFieldDefinitionTestsClass\r\n \r\n ClassTextFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TextFieldDefinitionTests\r\n 0\r\n TextFieldDefinitionTests.cs\r\n TextFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TextFieldDefinitionTests.cs\r\n"); } public static class TopNavigationNodeDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TopNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployFlatTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var ourCompany = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourServices = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar ourTeam = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployFlatTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployFlatTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CaDeployHierarchicalTopNavigation = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n \r\n \r\n \r\n Add hierarchical top nav items\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // top level departments node\r\nvar departments = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar hr = new TopNavigationNodeDefinition\r\n{\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar it = new TopNavigationNodeDefinition\r\n{\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n};\r\n\r\n// top level clients node\r\nvar partners = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar microsoft = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar apple = new TopNavigationNodeDefinition\r\n{\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n CaDeployHierarchicalTopNavigation\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests.CaDeployHierarchicalTopNavigation\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TopNavigationNodeDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Navigation\r\n Navigation\r\n \r\n \r\n \r\n TopNavigationNodeDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n {\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TopNavigationNodeDefinitionTests : ProvisionTestBase\r\n{\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployFlatTopNavigation()\r\n {\r\n var ourCompany = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Company\",\r\n Url = \"our-company.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourServices = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Services\",\r\n Url = \"our-services.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var ourTeam = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Team\",\r\n Url = \"our-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(ourCompany)\r\n .AddTopNavigationNode(ourServices)\r\n .AddTopNavigationNode(ourTeam);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TopNavigationNodeDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical top nav items\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CaDeployHierarchicalTopNavigation()\r\n {\r\n // top level departments node\r\n var departments = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Departments\",\r\n Url = \"our-departments.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var hr = new TopNavigationNodeDefinition\r\n {\r\n Title = \"HR Team\",\r\n Url = \"hr-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var it = new TopNavigationNodeDefinition\r\n {\r\n Title = \"IT Team\",\r\n Url = \"it-team.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n // top level clients node\r\n var partners = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Our Partners\",\r\n Url = \"our-partners.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var microsoft = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Microsoft\",\r\n Url = \"microsfot.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var apple = new TopNavigationNodeDefinition\r\n {\r\n Title = \"Apple\",\r\n Url = \"apple.aspx\",\r\n IsExternal = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddTopNavigationNode(departments, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(hr)\r\n .AddTopNavigationNode(it);\r\n })\r\n .AddTopNavigationNode(partners, node =>\r\n {\r\n node\r\n .AddTopNavigationNode(microsoft)\r\n .AddTopNavigationNode(apple);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TopNavigationNodeDefinitionTests\r\n TopNavigationNodeDefinitionTestsClass\r\n \r\n ClassTopNavigationNodeDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TopNavigationNodeDefinitionTests\r\n 0\r\n TopNavigationNodeDefinitionTests.cs\r\n TopNavigationNodeDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TopNavigationNodeDefinitionTests.cs\r\n"); } public static class TreeViewSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTreeViewSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TreeViewSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTreeViewSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add tree view settings to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n{\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddTreeViewSettings(treeViewSettings);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n CanDeploySimpleTreeViewSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests.CanDeploySimpleTreeViewSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TreeViewSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n TreeViewSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TreeViewSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TreeViewSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add tree view settings to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTreeViewSettingsDefinition()\r\n {\r\n var treeViewSettings = new TreeViewSettingsDefinition\r\n {\r\n TreeViewEnabled = true,\r\n QuickLaunchEnabled = true\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddTreeViewSettings(treeViewSettings);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TreeViewSettingsDefinitionTests\r\n TreeViewSettingsDefinitionTestsClass\r\n \r\n ClassTreeViewSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TreeViewSettingsDefinitionTests\r\n 0\r\n TreeViewSettingsDefinitionTests.cs\r\n TreeViewSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\TreeViewSettingsDefinitionTests.cs\r\n"); } public static class UniqueContentTypeFieldsOrderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeFieldsOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypeFields = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content type fields\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var debitField = new NumberFieldDefinition\r\n{\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n};\r\n\r\nvar creditField = new NumberFieldDefinition\r\n{\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n};\r\n\r\nvar totalField = new NumberFieldDefinition\r\n{\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n};\r\n\r\nvar balanceContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n CanReorderContentTypeFields\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests.CanReorderContentTypeFields\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeFieldsOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Content types\r\n Content types\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeFieldsOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeFieldsOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content type fields\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypeFields()\r\n {\r\n var debitField = new NumberFieldDefinition\r\n {\r\n Title = \"Debit\",\r\n InternalName = \"m2_MDebit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2901EA31-CB32-4EE7-8482-9354C843F264\"),\r\n };\r\n\r\n var creditField = new NumberFieldDefinition\r\n {\r\n Title = \"Credit\",\r\n InternalName = \"m2_MCredit\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"2F62D945-AFF8-4ACF-B090-4BB5A8FB13C9\"),\r\n };\r\n\r\n var totalField = new NumberFieldDefinition\r\n {\r\n Title = \"Total\",\r\n InternalName = \"m2_MTotal\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"07D7B101-3F95-4413-B5D0-0EAA75E31697\"),\r\n };\r\n\r\n var balanceContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Balance\",\r\n Id = new Guid(\"1861F08E-4E76-4DA3-9CE9-842B481FD0DA\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddField(debitField)\r\n .AddField(creditField)\r\n .AddField(totalField)\r\n .AddContentType(balanceContentType, contentType =>\r\n {\r\n contentType\r\n .AddContentTypeFieldLink(totalField)\r\n .AddContentTypeFieldLink(debitField)\r\n .AddContentTypeFieldLink(creditField)\r\n .AddUniqueContentTypeFieldsOrder(new UniqueContentTypeFieldsOrderDefinition\r\n {\r\n Fields = new List<FieldLinkValue>\r\n {\r\n new FieldLinkValue{ Id = BuiltInFieldId.Title },\r\n new FieldLinkValue{ Id = creditField.Id },\r\n new FieldLinkValue{ Id = debitField.Id },\r\n new FieldLinkValue{ Id = totalField.Id }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n UniqueContentTypeFieldsOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeFieldsOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeFieldsOrderDefinitionTests\r\n 0\r\n UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n UniqueContentTypeFieldsOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeFieldsOrderDefinitionTests.cs\r\n"); } public static class UniqueContentTypeOrderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypesInList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanReorderContentTypesInList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Reorder content types\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var creditContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar debitContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar totalContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n};\r\n\r\nvar annualRevenueList = new ListDefinition\r\n{\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n CanReorderContentTypesInList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests.CanReorderContentTypesInList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UniqueContentTypeOrderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Lists and libraries\r\n Lists and libraries\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n UniqueContentTypeOrderDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UniqueContentTypeOrderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UniqueContentTypeOrderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Reorder content types\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanReorderContentTypesInList()\r\n {\r\n var creditContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Credit\",\r\n Id = new Guid(\"5D8346E4-A7AB-40AE-9AE9-22CF18170029\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var debitContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Debit\",\r\n Id = new Guid(\"0C8D0474-384B-4765-8F84-993124447516\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var totalContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Total\",\r\n Id = new Guid(\"110E6911-4611-4905-9E2F-46FEA608B418\"),\r\n ParentContentTypeId = BuiltInContentTypeId.Item,\r\n Group = \"SPMeta2.Samples\"\r\n };\r\n\r\n var annualRevenueList = new ListDefinition\r\n {\r\n Title = \"M2 Annual Revenue\",\r\n Description = \"A generic list.\",\r\n TemplateType = BuiltInListTemplateTypeId.GenericList,\r\n ContentTypesEnabled = true,\r\n Url = \"M2AnnualRevenue\"\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddContentType(creditContentType)\r\n .AddContentType(debitContentType)\r\n .AddContentType(totalContentType);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddList(annualRevenueList, list =>\r\n {\r\n list\r\n .AddContentTypeLink(totalContentType)\r\n .AddContentTypeLink(creditContentType)\r\n .AddContentTypeLink(debitContentType)\r\n .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition\r\n {\r\n ContentTypes = new List<ContentTypeLinkValue>\r\n {\r\n new ContentTypeLinkValue{ ContentTypeName = creditContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = debitContentType.Name },\r\n new ContentTypeLinkValue{ ContentTypeName = totalContentType.Name }\r\n }\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UniqueContentTypeOrderDefinitionTests\r\n UniqueContentTypeOrderDefinitionTestsClass\r\n \r\n ClassUniqueContentTypeOrderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UniqueContentTypeOrderDefinitionTests\r\n 0\r\n UniqueContentTypeOrderDefinitionTests.cs\r\n UniqueContentTypeOrderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UniqueContentTypeOrderDefinitionTests.cs\r\n"); } public static class URLFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleURLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample URLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleURLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add URL field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n CanDeploySimpleURLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests.CanDeploySimpleURLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample URLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n URLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class URLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class URLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.URLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add URL field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleURLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n URLFieldDefinitionTests\r\n URLFieldDefinitionTestsClass\r\n \r\n ClassURLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.URLFieldDefinitionTests\r\n 0\r\n URLFieldDefinitionTests.cs\r\n URLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\URLFieldDefinitionTests.cs\r\n"); } public static class UserCustomActionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionWithJquery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UserCustomActionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionUnderSite = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to site\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddUserCustomAction(siteLogger);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionUnderSite\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionUnderSite\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionWithJquery = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action with jQuery\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n var jQueryFile = new ModuleFileDefinition\r\n{\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n};\r\n\r\nvar appScriptsFolder = new FolderDefinition\r\n{\r\n Name = \"M2 App Scripts\"\r\n};\r\n\r\nvar jQueryCustomAction = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n};\r\n\r\nvar jQuerySiteLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n});\r\n\r\nvar webModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(webModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionWithJquery\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionWithJquery\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to web\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var webLogger = new UserCustomActionDefinition\r\n{\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n};\r\n\r\nvar loggerWeb = new WebDefinition\r\n{\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployUserCustomActionOnList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n \r\n \r\n \r\n Add custom action to list\r\n \r\n \r\n \r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n // TODO\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n CanDeployUserCustomActionOnList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests.CanDeployUserCustomActionOnList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UserCustomActionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n User custom action\r\n User custom action\r\n \r\n \r\n \r\n UserCustomActionDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserCustomActionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserCustomActionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to site\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionUnderSite()\r\n {\r\n var siteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2SiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl);\",\r\n Sequence = 1000\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddUserCustomAction(siteLogger);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action with jQuery\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionWithJquery()\r\n {\r\n var jQueryFile = new ModuleFileDefinition\r\n {\r\n FileName = \"jquery-1.11.2.min.js\",\r\n Content = ModuleFileUtils.FromResource(GetType().Assembly, \"SPMeta2.Docs.Modules.jquery-1.11.2.min.js\"),\r\n Overwrite = true\r\n };\r\n\r\n var appScriptsFolder = new FolderDefinition\r\n {\r\n Name = \"M2 App Scripts\"\r\n };\r\n\r\n var jQueryCustomAction = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuery\",\r\n Location = \"ScriptLink\",\r\n ScriptSrc = UrlUtility.CombineUrl(new string[]\r\n {\r\n \"~sitecollection\",\r\n BuiltInListDefinitions.StyleLibrary.GetListUrl(),\r\n appScriptsFolder.Name,\r\n jQueryFile.FileName\r\n }),\r\n Sequence = 1500\r\n };\r\n\r\n var jQuerySiteLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2jQuerySiteLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"jQuery(document).ready( function() { console.log(\'jQuery site logger on site:\' + _spPageContextInfo.siteAbsoluteUrl); } );\",\r\n Sequence = 1600\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddUserCustomAction(jQueryCustomAction)\r\n .AddUserCustomAction(jQuerySiteLogger);\r\n });\r\n\r\n var webModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.StyleLibrary, list =>\r\n {\r\n list.AddFolder(appScriptsFolder, folder =>\r\n {\r\n folder.AddModuleFile(jQueryFile);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(webModel);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserCustomActionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom action to web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnWeb()\r\n {\r\n var webLogger = new UserCustomActionDefinition\r\n {\r\n Name = \"m2WebLogger\",\r\n Location = \"ScriptLink\",\r\n ScriptBlock = \"console.log(\'site logger on web:\' + _spPageContextInfo.webAbsoluteUrl);\",\r\n Sequence = 1800\r\n };\r\n\r\n var loggerWeb = new WebDefinition\r\n {\r\n Title = \"M2 Logger Web\",\r\n Url = \"m2logging\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(loggerWeb, subWeb =>\r\n {\r\n subWeb.AddUserCustomAction(webLogger);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [SampleMetadata(Title = \"Add custom action to list\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployUserCustomActionOnList()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n // TODO\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserCustomActionDefinitionTests\r\n UserCustomActionDefinitionTestsClass\r\n \r\n ClassUserCustomActionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserCustomActionDefinitionTests\r\n 0\r\n UserCustomActionDefinitionTests.cs\r\n UserCustomActionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserCustomActionDefinitionTests.cs\r\n"); } public static class UserFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleUserFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample UserFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleUserFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add user field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n CanDeploySimpleUserFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests.CanDeploySimpleUserFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample UserFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n UserFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class UserFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class UserFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.UserFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add user field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleUserFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n UserFieldDefinitionTests\r\n UserFieldDefinitionTestsClass\r\n \r\n ClassUserFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.UserFieldDefinitionTests\r\n 0\r\n UserFieldDefinitionTests.cs\r\n UserFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\UserFieldDefinitionTests.cs\r\n"); } public static class WebApplicationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebApplicationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add web application\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n CanDeploySimpleWebApplicationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests.CanDeploySimpleWebApplicationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebApplicationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n WebApplicationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebApplicationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebApplicationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebApplicationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web application\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebApplicationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebApplicationDefinitionTests\r\n WebApplicationDefinitionTestsClass\r\n \r\n ClassWebApplicationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebApplicationDefinitionTests\r\n 0\r\n WebApplicationDefinitionTests.cs\r\n WebApplicationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebApplicationDefinitionTests.cs\r\n"); } public static class WebConfigModificationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebConfigModificationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebConfigModificationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebConfigModificationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n \r\n \r\n \r\n Add web.config modification\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n CanDeploySimpleWebConfigModificationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests.CanDeploySimpleWebConfigModificationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebConfigModificationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Application Model\r\n Web Application Model\r\n \r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web application\r\n Web application\r\n \r\n \r\n \r\n WebConfigModificationDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n \r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n public class WebConfigModificationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebConfigModificationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web.config modification\",\r\n Description = \"\"\r\n )]\r\n\r\n public void CanDeploySimpleWebConfigModificationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebConfigModificationDefinitionTests\r\n WebConfigModificationDefinitionTestsClass\r\n \r\n ClassWebConfigModificationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebConfigModificationDefinitionTests\r\n 0\r\n WebConfigModificationDefinitionTests.cs\r\n WebConfigModificationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebConfigModificationDefinitionTests.cs\r\n"); } public static class WebDefinitionTest { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebDefinitionTestClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add web\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newCustomerWeb = new WebDefinition\r\n{\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n};\r\nvar newPublishingWeb = new WebDefinition\r\n{\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add multiple webs\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeploySimpleWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeploySimpleWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployHierarchicalWebs = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add hierarchical webs\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n CanDeployHierarchicalWebs\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest.CanDeployHierarchicalWebs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebDefinitionTestClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n WebDefinitionTest\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebDefinitionTest : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebDefinitionTest : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWeb()\r\n {\r\n var newCustomerWeb = new WebDefinition\r\n {\r\n Title = \"New customer site\",\r\n Description = \"A dedicated site for the customer support.\",\r\n Url = \"new-customer-web\",\r\n WebTemplate = BuiltInWebTemplates.Collaboration.TeamSite\r\n };\r\n var newPublishingWeb = new WebDefinition\r\n {\r\n Title = \"Temporary Publishing Web\",\r\n Description = \"A temporary punlishing web.\",\r\n Url = \"new-publishing-web\",\r\n WebTemplate = BuiltInWebTemplates.Publishing.PublishingPortal\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(newCustomerWeb);\r\n web.AddWeb(newPublishingWeb);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n [SampleMetadata(Title = \"Add multiple webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddWeb(DocWebs.News);\r\n web.AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add hierarchical webs\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployHierarchicalWebs()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWeb(DocWebs.News)\r\n .AddWeb(DocWebs.Departments, departmentWeb =>\r\n {\r\n departmentWeb\r\n .AddWeb(DocWebs.DepartmentWebs.HR)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDesk, itWeb =>\r\n {\r\n itWeb\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Apple)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Cisco)\r\n .AddWeb(DocWebs.DepartmentWebs.ITHelpDeskWebs.Microsoft);\r\n })\r\n .AddWeb(DocWebs.DepartmentWebs.Sales);\r\n })\r\n .AddWeb(DocWebs.AboutOurCompany);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebDefinitionTest\r\n WebDefinitionTestClass\r\n \r\n ClassWebDefinitionTestClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebDefinitionTest\r\n 0\r\n WebDefinitionTests.cs\r\n WebDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebDefinitionTests.cs\r\n"); } public static class WebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartGalleryFileName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartWithPreprocessedXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartType = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by type\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n // this would deploy a web part using WebpartType prop\r\n// you need to provide AssemblyQualifiedName of the target web part type\r\n// M2 would use reflection to create an instane of the web part in the runtime\r\n// that works only for SSOM, not CSOM support yet\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeploySSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartType\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartType\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part by XML\r\n \r\n \r\n \r\n\r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n// you need to provide an XML template which you get from SharePoint\r\n// export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartByWebpartGalleryFileName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part from Gallery File\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // this would deploy the web part using WebpartFileName\r\n// you need to provide a file name ofthe web part template in the web part gallery\r\n// M2 would load this file, then use an XML as a web part template\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartByWebpartGalleryFileName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartByWebpartGalleryFileName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebpartWithPreprocessedXML = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add web part with pre-configured XML\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n// here is a web part XML template\r\n// usually, you export that XML from SharePoint page, but M2 has pre-build class\r\nvar contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n// let\' set new some properties, shall we?\r\n// we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n// it works well web both V2/V3 web part XML\r\n// then change properties and seehow it goes\r\n// then call ToString() to get string out of XML\r\nvar wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\nvar contentEditorWebPart = new WebPartDefinition\r\n{\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n});\r\n\r\nDeployCSOMModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n CanDeployWebpartWithPreprocessedXML\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests.CanDeployWebpartWithPreprocessedXML\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n WebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part by type\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartByWebpartType()\r\n {\r\n // this would deploy a web part using WebpartType prop\r\n // you need to provide AssemblyQualifiedName of the target web part type\r\n // M2 would use reflection to create an instane of the web part in the runtime\r\n // that works only for SSOM, not CSOM support yet\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint SSOM\",\r\n Id = \"m2AboutSharePointSSOM\",\r\n WebpartType = typeof(ContentEditorWebPart).AssemblyQualifiedName,\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeploySSOMModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part by XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByXML()\r\n {\r\n // this whould deploy the web part using WebpartXmlTemplate prop\r\n // you need to provide an XML template which you get from SharePoint\r\n // export the wenb part, and put it into WebpartXmlTemplate prop\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint XML\",\r\n Id = \"m2AboutSharePointXML\",\r\n WebpartXmlTemplate = contentEditorWebPartXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part from Gallery File\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebpartByWebpartGalleryFileName()\r\n {\r\n // this would deploy the web part using WebpartFileName\r\n // you need to provide a file name ofthe web part template in the web part gallery\r\n // M2 would load this file, then use an XML as a web part template\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"About SharePoint web part gallery\",\r\n Id = \"m2AboutSharePointWebPartGallery\",\r\n // shortcut to \"MSContentEditor.dwp\",\r\n WebpartFileName = BuiltInWebpartFileNames.MSContentEditor,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part with pre-configured XML\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployWebpartWithPreprocessedXML()\r\n {\r\n // this shows how to use M2 API to pre-process web part XML\r\n\r\n // here is a web part XML template\r\n // usually, you export that XML from SharePoint page, but M2 has pre-build class\r\n var contentEditorWebPartXml = BuiltInWebPartTemplates.ContentEditorWebPart;\r\n\r\n // let\' set new some properties, shall we?\r\n // we load XML by WebpartXmlExtensions.LoadWebpartXmlDocument() method\r\n // it works well web both V2/V3 web part XML\r\n // then change properties and seehow it goes\r\n // then call ToString() to get string out of XML\r\n var wpXml = WebpartXmlExtensions\r\n .LoadWebpartXmlDocument(contentEditorWebPartXml)\r\n .SetOrUpdateProperty(\"FrameType\", \"Standard\")\r\n .SetOrUpdateProperty(\"Width\", \"500\")\r\n .SetOrUpdateProperty(\"Heigth\", \"200\")\r\n .SetOrUpdateContentEditorWebPartProperty(\"Content\", \"This is a new content!\", true)\r\n .ToString();\r\n\r\n var contentEditorWebPart = new WebPartDefinition\r\n {\r\n Title = \"New content\",\r\n Id = \"m2AboutSharePointnewContent\",\r\n WebpartXmlTemplate = wpXml,\r\n ZoneIndex = 20,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 webparts provision\",\r\n FileName = \"web-parts-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddWebPart(contentEditorWebPart);\r\n });\r\n });\r\n });\r\n\r\n DeployCSOMModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartDefinitionTests\r\n WebPartDefinitionTestsClass\r\n \r\n ClassWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartDefinitionTests\r\n 0\r\n WebPartDefinitionTests.cs\r\n WebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartDefinitionTests.cs\r\n"); } public static class WebPartPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPageWithCustomTemplate = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPagesUnderFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebPartPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n \r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customersReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parthesReportPage = new WebPartPageDefinition\r\n{\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPageWithCustomTemplate = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add custom web part page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPageWithCustomTemplate\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPageWithCustomTemplate\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWebPartPagesUnderFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n \r\n \r\n \r\n Add web part page to folder\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // clients folder and pages\r\nvar clientsFolder = new FolderDefinition()\r\n{\r\n Name = \"Customers\"\r\n};\r\n\r\nvar clientMay2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar clientJune2015Page = new WebPartPageDefinition\r\n{\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\n// parthers folder and pages\r\nvar parthersFolder = new FolderDefinition()\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar parther2014AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar parther2015AnnualReport = new WebPartPageDefinition\r\n{\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n};\r\n\r\n// linking everything together\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n CanDeployWebPartPagesUnderFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests.CanDeployWebPartPagesUnderFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebPartPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web part pages\r\n Web part pages\r\n \r\n \r\n \r\n WebPartPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebPartPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebPartPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [SampleMetadata(Title = \"Add web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n public void CanDeployWebPartPages()\r\n {\r\n var customersReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customer reports\",\r\n FileName = \"Customers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parthesReportPage = new WebPartPageDefinition\r\n {\r\n Title = \"Parthers reports\",\r\n FileName = \"Parthers-report.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd2\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customersReportPage)\r\n .AddWebPartPage(parthesReportPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add custom web part page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPageWithCustomTemplate()\r\n {\r\n var customizedWebPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"Customers report\",\r\n FileName = \"Customers-report.aspx\",\r\n CustomPageLayout = \"___ a custom web part page template here ___ \"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWebPartPage(customizedWebPartPage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebPartPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web part page to folder\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWebPartPagesUnderFolders()\r\n {\r\n // clients folder and pages\r\n var clientsFolder = new FolderDefinition()\r\n {\r\n Name = \"Customers\"\r\n };\r\n\r\n var clientMay2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"May 2015\",\r\n FileName = \"May-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var clientJune2015Page = new WebPartPageDefinition\r\n {\r\n Title = \"June 2015\",\r\n FileName = \"June-2015-analytics.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n // parthers folder and pages\r\n var parthersFolder = new FolderDefinition()\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var parther2014AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2014\",\r\n FileName = \"Annual-report-2014.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var parther2015AnnualReport = new WebPartPageDefinition\r\n {\r\n Title = \"Annual report 2015\",\r\n FileName = \"Annual-report-2015.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1,\r\n };\r\n\r\n // linking everything together\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(clientsFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(clientMay2015Page)\r\n .AddWebPartPage(clientJune2015Page);\r\n })\r\n .AddFolder(parthersFolder, folder =>\r\n {\r\n folder\r\n .AddWebPartPage(parther2014AnnualReport)\r\n .AddWebPartPage(parther2015AnnualReport);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebPartPageDefinitionTests\r\n WebPartPageDefinitionTestsClass\r\n \r\n ClassWebPartPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebPartPageDefinitionTests\r\n 0\r\n WebPartPageDefinitionTests.cs\r\n WebPartPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WebPartPageDefinitionTests.cs\r\n"); } public static class WelcomePageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WelcomePageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToWeb = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add web welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newWebHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToWeb\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToWeb\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToList = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add list welcome page\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newListHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToList\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToList\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWelcomePageToFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Add folder welcome page\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var newFolderHomePage = new WikiPageDefinition\r\n{\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n};\r\n\r\nvar welcomePage = new WelcomePageDefinition\r\n{\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n};\r\n\r\nvar landingPageFolder = new FolderDefinition\r\n{\r\n Name = \"A folder with custom landing page\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n CanDeployWelcomePageToFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests.CanDeployWelcomePageToFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WelcomePageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Welcome page\r\n Welcome page\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n WelcomePageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WelcomePageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WelcomePageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToWeb()\r\n {\r\n var newWebHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for web.aspx\",\r\n Content = \"Hello, this is a new web landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the web!\r\n Url = UrlUtility.CombineUrl(BuiltInListDefinitions.SitePages.GetListUrl(), newWebHomePage.FileName)\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWikiPage(newWebHomePage);\r\n })\r\n .AddWelcomePage(welcomePage);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n [SampleMetadata(Title = \"Add list welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToList()\r\n {\r\n var newListHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for list.aspx\",\r\n Content = \"Hello, this is a new list landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the list!\r\n Url = newListHomePage.FileName\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(newListHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WelcomePageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add folder welcome page\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWelcomePageToFolder()\r\n {\r\n var newFolderHomePage = new WikiPageDefinition\r\n {\r\n FileName = \"A new landing page for folder.aspx\",\r\n Content = \"Hello, this is a new folder landing page!\"\r\n };\r\n\r\n var welcomePage = new WelcomePageDefinition\r\n {\r\n // should be relating to the folder!\r\n Url = newFolderHomePage.FileName\r\n };\r\n\r\n var landingPageFolder = new FolderDefinition\r\n {\r\n Name = \"A folder with custom landing page\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(landingPageFolder, folder =>\r\n {\r\n folder\r\n .AddWikiPage(newFolderHomePage)\r\n .AddWelcomePage(welcomePage);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WelcomePageDefinitionTests\r\n WelcomePageDefinitionTestsClass\r\n \r\n ClassWelcomePageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WelcomePageDefinitionTests\r\n 0\r\n WelcomePageDefinitionTests.cs\r\n WelcomePageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WelcomePageDefinitionTests.cs\r\n"); } public static class WikiPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWikiPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWikiPagesUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WikiPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWikiPages = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeploySimpleWikiPages\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeploySimpleWikiPages\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployWikiPagesUnderFolder = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n \r\n \r\n \r\n Add wiki pages to folders\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n CanDeployWikiPagesUnderFolder\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests.CanDeployWikiPagesUnderFolder\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WikiPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Wiki pages\r\n Wiki pages\r\n \r\n \r\n \r\n WikiPageDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WikiPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WikiPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWikiPages()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddWikiPage(DocWikiPages.AboutUs)\r\n .AddWikiPage(DocWikiPages.Contacts);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WikiPageDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add wiki pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployWikiPagesUnderFolder()\r\n {\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list\r\n .AddFolder(DocFolders.WikiPages.News, newsFolder =>\r\n {\r\n newsFolder\r\n .AddWikiPage(DocWikiPages.NewCoffeeMachine)\r\n .AddWikiPage(DocWikiPages.NewSPMeta2Release);\r\n })\r\n .AddFolder(DocFolders.WikiPages.Archive, archiveFolder =>\r\n {\r\n archiveFolder\r\n .AddWikiPage(DocWikiPages.December2012News)\r\n .AddWikiPage(DocWikiPages.October2012News);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WikiPageDefinitionTests\r\n WikiPageDefinitionTestsClass\r\n \r\n ClassWikiPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WikiPageDefinitionTests\r\n 0\r\n WikiPageDefinitionTests.cs\r\n WikiPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\WikiPageDefinitionTests.cs\r\n"); } public static class XsltListViewWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var inventoryLibrary = new ListDefinition\r\n{\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListUrl = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list by URL\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListUrl\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListUrl\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanBindXsltListViewWebPartByListViewTitle = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add XLVWP binded to list view by Title\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var booksLibrary = new ListDefinition\r\n{\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n};\r\n\r\nvar booksView = new ListViewDefinition\r\n{\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n};\r\n\r\nvar xsltListView = new XsltListViewWebPartDefinition\r\n{\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n CanBindXsltListViewWebPartByListViewTitle\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests.CanBindXsltListViewWebPartByListViewTitle\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample XsltListViewWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Foundation\r\n SharePoint Foundation\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n XsltListViewWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class XsltListViewWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListTitle()\r\n {\r\n var inventoryLibrary = new ListDefinition\r\n {\r\n Title = \"Inventory library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"InventoryLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Inventory Default View by List Title\",\r\n Id = \"m2InventoryView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListTitle = inventoryLibrary.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(inventoryLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list by URL\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListUrl()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Books Default View by List Url\",\r\n Id = \"m2BooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl()\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary)\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.XsltListViewWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add XLVWP binded to list view by Title\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanBindXsltListViewWebPartByListViewTitle()\r\n {\r\n var booksLibrary = new ListDefinition\r\n {\r\n Title = \"Books library\",\r\n Description = \"A document library.\",\r\n TemplateType = BuiltInListTemplateTypeId.DocumentLibrary,\r\n Url = \"BooksLibrary\"\r\n };\r\n\r\n var booksView = new ListViewDefinition\r\n {\r\n Title = \"Popular Books\",\r\n Fields = new Collection<string>\r\n {\r\n BuiltInInternalFieldNames.Edit,\r\n BuiltInInternalFieldNames.ID,\r\n BuiltInInternalFieldNames.FileLeafRef\r\n },\r\n RowLimit = 10\r\n };\r\n\r\n var xsltListView = new XsltListViewWebPartDefinition\r\n {\r\n Title = \"Popular Books binding by List View Title\",\r\n Id = \"m2PopularBooksView\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\",\r\n ListUrl = booksLibrary.GetListUrl(),\r\n ViewName = booksView.Title\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Xslt List View provision\",\r\n FileName = \"xslt-listview-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddList(booksLibrary, list =>\r\n {\r\n list.AddListView(booksView);\r\n })\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddXsltListViewWebPart(xsltListView);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n XsltListViewWebPartDefinitionTests\r\n XsltListViewWebPartDefinitionTestsClass\r\n \r\n ClassXsltListViewWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.XsltListViewWebPartDefinitionTests\r\n 0\r\n XsltListViewWebPartDefinitionTests.cs\r\n XsltListViewWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-foundation-definitions\\XsltListViewWebPartDefinitionTests.cs\r\n"); } public static class AudienceDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAudienceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample AudienceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleAudienceDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n \r\n \r\n \r\n Add audience\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n CanDeploySimpleAudienceDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests.CanDeploySimpleAudienceDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample AudienceDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Farm\r\n Farm\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Farm Model\r\n Farm Model\r\n \r\n \r\n \r\n AudienceDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class AudienceDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class AudienceDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.AudienceDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add audience\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleAudienceDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n AudienceDefinitionTests\r\n AudienceDefinitionTestsClass\r\n \r\n ClassAudienceDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.AudienceDefinitionTests\r\n 0\r\n AudienceDefinitionTests.cs\r\n AudienceDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\AudienceDefinitionTests.cs\r\n"); } public static class ContactFieldControlDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContactFieldControlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContactFieldControlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContactFieldControlDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add contact field web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n CanDeploySimpleContactFieldControlDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests.CanDeploySimpleContactFieldControlDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContactFieldControlDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContactFieldControlDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContactFieldControlDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContactFieldControlDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add contact field web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContactFieldControlDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContactFieldControlDefinitionTests\r\n ContactFieldControlDefinitionTestsClass\r\n \r\n ClassContactFieldControlDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContactFieldControlDefinitionTests\r\n 0\r\n ContactFieldControlDefinitionTests.cs\r\n ContactFieldControlDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContactFieldControlDefinitionTests.cs\r\n"); } public static class ContentByQueryWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentByQueryWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ContentByQueryWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleContentByQueryWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add CQWP web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n CanDeploySimpleContentByQueryWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests.CanDeploySimpleContentByQueryWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ContentByQueryWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ContentByQueryWebPartDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ContentByQueryWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ContentByQueryWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add CQWP web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleContentByQueryWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ContentByQueryWebPartDefinitionTests\r\n ContentByQueryWebPartDefinitionTestsClass\r\n \r\n ClassContentByQueryWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ContentByQueryWebPartDefinitionTests\r\n 0\r\n ContentByQueryWebPartDefinitionTests.cs\r\n ContentByQueryWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ContentByQueryWebPartDefinitionTests.cs\r\n"); } public static class ControlDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleControlDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ControlDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleControlDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add control display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n CanDeploySimpleControlDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests.CanDeploySimpleControlDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ControlDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ControlDisplayTemplateDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ControlDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ControlDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add control display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleControlDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ControlDisplayTemplateDefinitionTests\r\n ControlDisplayTemplateDefinitionTestsClass\r\n \r\n ClassControlDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ControlDisplayTemplateDefinitionTests\r\n 0\r\n ControlDisplayTemplateDefinitionTests.cs\r\n ControlDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ControlDisplayTemplateDefinitionTests.cs\r\n"); } public static class CustomDocumentIdProviderDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCustomDocumentIdProviderDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CustomDocumentIdProviderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleCustomDocumentIdProviderDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add Document ID provider\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CanDeploySimpleCustomDocumentIdProviderDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests.CanDeploySimpleCustomDocumentIdProviderDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CustomDocumentIdProviderDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n CustomDocumentIdProviderDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class CustomDocumentIdProviderDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.CustomDocumentIdProviderDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Document ID provider\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleCustomDocumentIdProviderDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n CustomDocumentIdProviderDefinitionTests\r\n CustomDocumentIdProviderDefinitionTestsClass\r\n \r\n ClassCustomDocumentIdProviderDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.CustomDocumentIdProviderDefinitionTests\r\n 0\r\n CustomDocumentIdProviderDefinitionTests.cs\r\n CustomDocumentIdProviderDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\CustomDocumentIdProviderDefinitionTests.cs\r\n"); } public static class HTMLFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleHTMLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample HTMLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleHTMLFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add HTML field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n CanDeploySimpleHTMLFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests.CanDeploySimpleHTMLFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample HTMLFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n HTMLFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class HTMLFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class HTMLFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.HTMLFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add HTML field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleHTMLFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n HTMLFieldDefinitionTests\r\n HTMLFieldDefinitionTestsClass\r\n \r\n ClassHTMLFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.HTMLFieldDefinitionTests\r\n 0\r\n HTMLFieldDefinitionTests.cs\r\n HTMLFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\HTMLFieldDefinitionTests.cs\r\n"); } public static class ImageFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ImageFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add image field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n CanDeploySimpleImageFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests.CanDeploySimpleImageFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ImageFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n ImageFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageFieldDefinitionTests\r\n ImageFieldDefinitionTestsClass\r\n \r\n ClassImageFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageFieldDefinitionTests\r\n 0\r\n ImageFieldDefinitionTests.cs\r\n ImageFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageFieldDefinitionTests.cs\r\n"); } public static class ImageRenditionDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageRenditionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ImageRenditionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleImageRenditionDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add image rendition\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n CanDeploySimpleImageRenditionDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests.CanDeploySimpleImageRenditionDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ImageRenditionDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n ImageRenditionDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ImageRenditionDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ImageRenditionDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ImageRenditionDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add image rendition\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleImageRenditionDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ImageRenditionDefinitionTests\r\n ImageRenditionDefinitionTestsClass\r\n \r\n ClassImageRenditionDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ImageRenditionDefinitionTests\r\n 0\r\n ImageRenditionDefinitionTests.cs\r\n ImageRenditionDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ImageRenditionDefinitionTests.cs\r\n"); } public static class ItemDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleItemDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample ItemDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleItemDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add item display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n CanDeploySimpleItemDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests.CanDeploySimpleItemDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ItemDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n ItemDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class ItemDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.ItemDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add item display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleItemDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ItemDisplayTemplateDefinitionTests\r\n ItemDisplayTemplateDefinitionTestsClass\r\n \r\n ClassItemDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ItemDisplayTemplateDefinitionTests\r\n 0\r\n ItemDisplayTemplateDefinitionTests.cs\r\n ItemDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\ItemDisplayTemplateDefinitionTests.cs\r\n"); } public static class JavaScriptDisplayTemplateDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJavaScriptDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample JavaScriptDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleJavaScriptDisplayTemplateDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add JavaScript display template\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests.CanDeploySimpleJavaScriptDisplayTemplateDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample JavaScriptDisplayTemplateDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Display Templates\r\n Display Templates\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n JavaScriptDisplayTemplateDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class JavaScriptDisplayTemplateDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.JavaScriptDisplayTemplateDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add JavaScript display template\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleJavaScriptDisplayTemplateDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n JavaScriptDisplayTemplateDefinitionTests\r\n JavaScriptDisplayTemplateDefinitionTestsClass\r\n \r\n ClassJavaScriptDisplayTemplateDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.JavaScriptDisplayTemplateDefinitionTests\r\n 0\r\n JavaScriptDisplayTemplateDefinitionTests.cs\r\n JavaScriptDisplayTemplateDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\JavaScriptDisplayTemplateDefinitionTests.cs\r\n"); } public static class LinkFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample LinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n CanDeploySimpleLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests.CanDeploySimpleLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n LinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public class LinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\npublic class LinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.LinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n LinkFieldDefinitionTests\r\n LinkFieldDefinitionTestsClass\r\n \r\n ClassLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.LinkFieldDefinitionTests\r\n 0\r\n LinkFieldDefinitionTests.cs\r\n LinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\LinkFieldDefinitionTests.cs\r\n"); } public static class MediaFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMediaFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample MediaFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleMediaFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add media field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n CanDeploySimpleMediaFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests.CanDeploySimpleMediaFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample MediaFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n MediaFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class MediaFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class MediaFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MediaFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add media field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleMediaFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n MediaFieldDefinitionTests\r\n MediaFieldDefinitionTestsClass\r\n \r\n ClassMediaFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.MediaFieldDefinitionTests\r\n 0\r\n MediaFieldDefinitionTests.cs\r\n MediaFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\MediaFieldDefinitionTests.cs\r\n"); } public static class PageLayoutAndSiteTemplateSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PageLayoutAndSiteTemplateSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add page layout and site template settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests.CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PageLayoutAndSiteTemplateSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PageLayoutAndSiteTemplateSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PageLayoutAndSiteTemplateSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add page layout and site template settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePageLayoutAndSiteTemplateSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n PageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n \r\n ClassPageLayoutAndSiteTemplateSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n 0\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n PageLayoutAndSiteTemplateSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PageLayoutAndSiteTemplateSettingsDefinitionTests.cs\r\n"); } public static class PublishingPageDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPage = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageWithCustomeLayout = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPage = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var aboutPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar howToPublising = new PublishingPageDefinition\r\n{\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n};\r\n\r\nvar publishingLinks = new PublishingPageDefinition\r\n{\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPage\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPage\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageWithCustomeLayout = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages with custom layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n// it should be a file name of the file inside \'master page\' gallery\r\n\r\nvar customPublishing = new PublishingPageDefinition\r\n{\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageWithCustomeLayout\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageWithCustomeLayout\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployPublishingPageToFolders = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing pages to folders\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var archive = new FolderDefinition()\r\n{\r\n Name = \"Archive\"\r\n};\r\n\r\nvar year2014 = new FolderDefinition()\r\n{\r\n Name = \"2014\"\r\n};\r\n\r\nvar year2015 = new FolderDefinition()\r\n{\r\n Name = \"2015\"\r\n};\r\n\r\nvar oct2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2014Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar oct2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar dec2015Article = new PublishingPageDefinition\r\n{\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n CanDeployPublishingPageToFolders\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests.CanDeployPublishingPageToFolders\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Publishing pages\r\n Publishing pages\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPage()\r\n {\r\n var aboutPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"About publishing\",\r\n FileName = \"About-publishing.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var howToPublising = new PublishingPageDefinition\r\n {\r\n Title = \"How to publish\",\r\n FileName = \"How-to-publish.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleRight\r\n };\r\n\r\n var publishingLinks = new PublishingPageDefinition\r\n {\r\n Title = \"Publishing links\",\r\n FileName = \"Publishing-links.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLinks\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(aboutPublishing)\r\n .AddPublishingPage(howToPublising)\r\n .AddPublishingPage(publishingLinks);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages with custom layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageWithCustomeLayout()\r\n {\r\n // PageLayoutFileName allows you to setup your own publishing page layout file name\r\n // it should be a file name of the file inside \'master page\' gallery\r\n\r\n var customPublishing = new PublishingPageDefinition\r\n {\r\n Title = \"Custom publishing\",\r\n FileName = \"Custom-publishing.aspx\",\r\n PageLayoutFileName = \"__ specify a publishing page layout file name here ___\"\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list\r\n .AddPublishingPage(customPublishing);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.PublishingPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing pages to folders\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeployPublishingPageToFolders()\r\n {\r\n var archive = new FolderDefinition()\r\n {\r\n Name = \"Archive\"\r\n };\r\n\r\n var year2014 = new FolderDefinition()\r\n {\r\n Name = \"2014\"\r\n };\r\n\r\n var year2015 = new FolderDefinition()\r\n {\r\n Name = \"2015\"\r\n };\r\n\r\n var oct2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2014\",\r\n FileName = \"october-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2014Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2014\",\r\n FileName = \"december-2014.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var oct2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"October 2015\",\r\n FileName = \"october-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var dec2015Article = new PublishingPageDefinition\r\n {\r\n Title = \"December 2015\",\r\n FileName = \"december-2015.aspx\",\r\n PageLayoutFileName = BuiltInPublishingPageLayoutNames.ArticleLeft\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Pages, list =>\r\n {\r\n list.AddFolder(archive, folder =>\r\n {\r\n folder\r\n .AddFolder(year2014, archive2014 =>\r\n {\r\n archive2014\r\n .AddPublishingPage(oct2014Article)\r\n .AddPublishingPage(dec2014Article);\r\n })\r\n .AddFolder(year2015, archive2015 =>\r\n {\r\n archive2015\r\n .AddPublishingPage(oct2015Article)\r\n .AddPublishingPage(dec2015Article);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageDefinitionTests\r\n PublishingPageDefinitionTestsClass\r\n \r\n ClassPublishingPageDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageDefinitionTests\r\n 0\r\n PublishingPageDefinitionTests.cs\r\n PublishingPageDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageDefinitionTests.cs\r\n"); } public static class PublishingPageLayoutDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePublishingPageLayoutDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageLayoutDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimplePublishingPageLayoutDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Add publishing page layout\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n var publishingPageContentType = new ContentTypeDefinition\r\n{\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n};\r\n\r\nvar publshingPageLayout = new PublishingPageLayoutDefinition\r\n{\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n};\r\n\r\nvar siteModel = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddContentType(publishingPageContentType);\r\n});\r\n\r\nvar rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n});\r\n\r\nDeployModel(siteModel);\r\nDeployModel(rootWebModel);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n CanDeploySimplePublishingPageLayoutDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests.CanDeploySimplePublishingPageLayoutDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample PublishingPageLayoutDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Master page gallery\r\n Master page gallery\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n PublishingPageLayoutDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class PublishingPageLayoutDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.MasterPageDefinition\")]\r\n [SampleMetadata(Title = \"Add publishing page layout\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimplePublishingPageLayoutDefinition()\r\n {\r\n var publishingPageContentType = new ContentTypeDefinition\r\n {\r\n Name = \"M2 Article\",\r\n Id = new Guid(\"664CFB31-AFF3-433E-9F3F-D8812199B0BC\"),\r\n Group = \"SPMeta2.Samples\",\r\n ParentContentTypeId = BuiltInPublishingContentTypeId.ArticlePage\r\n };\r\n\r\n var publshingPageLayout = new PublishingPageLayoutDefinition\r\n {\r\n Title = \"M2 Article Left Layout\",\r\n FileName = \"m2-article-left.aspx\",\r\n // replace with your publishing page layout content\r\n Content = DefaultPublishingPageLayoutTemplates.ArticleLeft,\r\n AssociatedContentTypeId = publishingPageContentType.GetContentTypeId(),\r\n NeedOverride = true\r\n };\r\n\r\n var siteModel = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddContentType(publishingPageContentType);\r\n });\r\n\r\n var rootWebModel = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web.AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list =>\r\n {\r\n list.AddPublishingPageLayout(publshingPageLayout);\r\n });\r\n });\r\n\r\n DeployModel(siteModel);\r\n DeployModel(rootWebModel);\r\n }\r\n\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n PublishingPageLayoutDefinitionTests\r\n PublishingPageLayoutDefinitionTestsClass\r\n \r\n ClassPublishingPageLayoutDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.PublishingPageLayoutDefinitionTests\r\n 0\r\n PublishingPageLayoutDefinitionTests.cs\r\n PublishingPageLayoutDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\PublishingPageLayoutDefinitionTests.cs\r\n"); } public static class SearchConfigurationDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchConfigurationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchConfigurationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchConfigurationDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search configuration\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n CanDeploySimpleSearchConfigurationDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests.CanDeploySimpleSearchConfigurationDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchConfigurationDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchConfigurationDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchConfigurationDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchConfigurationDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search configuration\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchConfigurationDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchConfigurationDefinitionTests\r\n SearchConfigurationDefinitionTestsClass\r\n \r\n ClassSearchConfigurationDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchConfigurationDefinitionTests\r\n 0\r\n SearchConfigurationDefinitionTests.cs\r\n SearchConfigurationDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchConfigurationDefinitionTests.cs\r\n"); } public static class SearchResultDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchResultDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchResultDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchResultDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search result\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n CanDeploySimpleSearchResultDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests.CanDeploySimpleSearchResultDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchResultDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchResultDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchResultDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchResultDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchResultDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search result\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchResultDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchResultDefinitionTests\r\n SearchResultDefinitionTestsClass\r\n \r\n ClassSearchResultDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchResultDefinitionTests\r\n 0\r\n SearchResultDefinitionTests.cs\r\n SearchResultDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchResultDefinitionTests.cs\r\n"); } public static class SearchSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SearchSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSearchSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n \r\n \r\n \r\n Add search settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n CanDeploySimpleSearchSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests.CanDeploySimpleSearchSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SearchSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Site collection\r\n Site collection\r\n \r\n \r\n \r\n SearchSettingsDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SearchSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SearchSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SearchSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add search settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSearchSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SearchSettingsDefinitionTests\r\n SearchSettingsDefinitionTestsClass\r\n \r\n ClassSearchSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SearchSettingsDefinitionTests\r\n 0\r\n SearchSettingsDefinitionTests.cs\r\n SearchSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SearchSettingsDefinitionTests.cs\r\n"); } public static class SiteFeedWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteFeedWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SiteFeedWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSiteFeedWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add Site Feed web part\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n{\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n};\r\n\r\nvar webPartPage = new WebPartPageDefinition\r\n{\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n};\r\n\r\nvar model = SPMeta2Model.NewWebModel(web =>\r\n{\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n CanDeploySimpleSiteFeedWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests.CanDeploySimpleSiteFeedWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SiteFeedWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SiteFeedWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SiteFeedWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SiteFeedWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Site Feed web part\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSiteFeedWebPartDefinition()\r\n {\r\n var siteFeed = new SiteFeedWebPartDefinition\r\n {\r\n Title = \"Site Feed\",\r\n Id = \"m2SiteFeed\",\r\n ZoneIndex = 10,\r\n ZoneId = \"Main\"\r\n };\r\n\r\n var webPartPage = new WebPartPageDefinition\r\n {\r\n Title = \"M2 Site Feed provision\",\r\n FileName = \"site-feed-webpart-provision.aspx\",\r\n PageLayoutTemplate = BuiltInWebPartPageTemplates.spstd1\r\n };\r\n\r\n var model = SPMeta2Model.NewWebModel(web =>\r\n {\r\n web\r\n .AddWebFeature(BuiltInWebFeatures.SiteFeed.Inherit().Enable())\r\n .AddHostList(BuiltInListDefinitions.SitePages, list =>\r\n {\r\n list.AddWebPartPage(webPartPage, page =>\r\n {\r\n page.AddSiteFeedWebPart(siteFeed);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SiteFeedWebPartDefinitionTests\r\n SiteFeedWebPartDefinitionTestsClass\r\n \r\n ClassSiteFeedWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SiteFeedWebPartDefinitionTests\r\n 0\r\n SiteFeedWebPartDefinitionTests.cs\r\n SiteFeedWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SiteFeedWebPartDefinitionTests.cs\r\n"); } public static class SummaryLinkFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkFieldDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add summary link field\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n CanDeploySimpleSummaryLinkFieldDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests.CanDeploySimpleSummaryLinkFieldDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n SummaryLinkFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkFieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add summary link field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkFieldDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkFieldDefinitionTests\r\n SummaryLinkFieldDefinitionTestsClass\r\n \r\n ClassSummaryLinkFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkFieldDefinitionTests\r\n 0\r\n SummaryLinkFieldDefinitionTests.cs\r\n SummaryLinkFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkFieldDefinitionTests.cs\r\n"); } public static class SummaryLinkWebPartDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleSummaryLinkWebPartDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n \r\n \r\n \r\n Add Summary Links web part\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n CanDeploySimpleSummaryLinkWebPartDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests.CanDeploySimpleSummaryLinkWebPartDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample SummaryLinkWebPartDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web parts\r\n Web parts\r\n \r\n \r\n \r\n SummaryLinkWebPartDefinitionTests\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class SummaryLinkWebPartDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.SummaryLinkWebPartDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add Summary Links web part\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleSummaryLinkWebPartDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n SummaryLinkWebPartDefinitionTests\r\n SummaryLinkWebPartDefinitionTestsClass\r\n \r\n ClassSummaryLinkWebPartDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.SummaryLinkWebPartDefinitionTests\r\n 0\r\n SummaryLinkWebPartDefinitionTests.cs\r\n SummaryLinkWebPartDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\SummaryLinkWebPartDefinitionTests.cs\r\n"); } public static class TaxonomyFieldDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployTaxonomyField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeployTaxonomyField = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n \r\n \r\n \r\n Add taxonomy field\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define a taxonomy\r\n// term store -> group -> term set -> terms\r\nvar taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar taxTermGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"M2 Taxonomy\"\r\n};\r\n\r\nvar taxTermSet = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Locations\"\r\n};\r\n\r\nvar taxTermLondon = new TaxonomyTermDefinition\r\n{\r\n Name = \"London\"\r\n};\r\n\r\nvar taxTermSydney = new TaxonomyTermDefinition\r\n{\r\n Name = \"Sydney\"\r\n};\r\n\r\n// define the field\r\nvar location = new TaxonomyFieldDefinition\r\n{\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n CanDeployTaxonomyField\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests.CanDeployTaxonomyField\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyFieldDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Fields\r\n Fields\r\n \r\n \r\n \r\n TaxonomyFieldDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n \r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyFieldDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.FieldDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy field\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n\r\n public void CanDeployTaxonomyField()\r\n {\r\n // define a taxonomy\r\n // term store -> group -> term set -> terms\r\n var taxDefaultTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var taxTermGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"M2 Taxonomy\"\r\n };\r\n\r\n var taxTermSet = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Locations\"\r\n };\r\n\r\n var taxTermLondon = new TaxonomyTermDefinition\r\n {\r\n Name = \"London\"\r\n };\r\n\r\n var taxTermSydney = new TaxonomyTermDefinition\r\n {\r\n Name = \"Sydney\"\r\n };\r\n\r\n // define the field\r\n var location = new TaxonomyFieldDefinition\r\n {\r\n Title = \"Location\",\r\n InternalName = \"dcs_LocationTax\",\r\n Group = \"SPMeta2.Samples\",\r\n Id = new Guid(\"FE709AC2-E3A1-4A25-8F71-3480667CD98F\"),\r\n IsMulti = false,\r\n UseDefaultSiteCollectionTermStore = true,\r\n TermSetName = taxTermSet.Name\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site\r\n .AddHostTaxonomyTermStore(taxDefaultTermStore, store =>\r\n {\r\n store.AddTaxonomyTermGroup(taxTermGroup, group =>\r\n {\r\n group.AddTaxonomyTermSet(taxTermSet, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(taxTermLondon)\r\n .AddTaxonomyTerm(taxTermSydney);\r\n });\r\n });\r\n })\r\n .AddTaxonomyField(location);\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyFieldDefinitionTests\r\n TaxonomyFieldDefinitionTestsClass\r\n \r\n ClassTaxonomyFieldDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyFieldDefinitionTests\r\n 0\r\n TaxonomyFieldDefinitionTests.cs\r\n TaxonomyFieldDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyFieldDefinitionTests.cs\r\n"); } public static class TaxonomyTermDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTerms = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTerms = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy terms\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n // define term store\r\nvar defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\n// define group\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\n// define term sets\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\n// define terms\r\nvar microsoft = new TaxonomyTermDefinition\r\n{\r\n Name = \"Microsoft\"\r\n};\r\n\r\nvar apple = new TaxonomyTermDefinition\r\n{\r\n Name = \"Apple\"\r\n};\r\n\r\nvar oracle = new TaxonomyTermDefinition\r\n{\r\n Name = \"Oracle\"\r\n};\r\n\r\nvar subPointSolutions = new TaxonomyTermDefinition\r\n{\r\n Name = \"SubPoint Solutions\"\r\n};\r\n\r\n// setup the model\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n CanDeploySimpleTaxonomyTerms\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests.CanDeploySimpleTaxonomyTerms\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model \r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy terms\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTerms()\r\n {\r\n // define term store\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n // define group\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n // define term sets\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n // define terms\r\n var microsoft = new TaxonomyTermDefinition\r\n {\r\n Name = \"Microsoft\"\r\n };\r\n\r\n var apple = new TaxonomyTermDefinition\r\n {\r\n Name = \"Apple\"\r\n };\r\n\r\n var oracle = new TaxonomyTermDefinition\r\n {\r\n Name = \"Oracle\"\r\n };\r\n\r\n var subPointSolutions = new TaxonomyTermDefinition\r\n {\r\n Name = \"SubPoint Solutions\"\r\n };\r\n\r\n // setup the model\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness, termSet =>\r\n {\r\n termSet.AddTaxonomyTerm(subPointSolutions);\r\n })\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness, termSet =>\r\n {\r\n termSet\r\n .AddTaxonomyTerm(microsoft)\r\n .AddTaxonomyTerm(apple)\r\n .AddTaxonomyTerm(oracle);\r\n });\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermDefinitionTests\r\n TaxonomyTermDefinitionTestsClass\r\n \r\n ClassTaxonomyTermDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermDefinitionTests\r\n 0\r\n TaxonomyTermDefinitionTests.cs\r\n TaxonomyTermDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermDefinitionTests.cs\r\n"); } public static class TaxonomyTermGroupDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroup = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term group\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroup\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroup\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyGroups = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term groups\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar parthersGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Parthers\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n CanDeploySimpleTaxonomyGroups\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests.CanDeploySimpleTaxonomyGroups\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermGroupDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermGroupDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermGroupDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy term group\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroup()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermGroupDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term groups\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyGroups()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var parthersGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Parthers\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore\r\n .AddTaxonomyTermGroup(clientsGroup)\r\n .AddTaxonomyTermGroup(parthersGroup);\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermGroupDefinitionTests\r\n TaxonomyTermGroupDefinitionTestsClass\r\n \r\n ClassTaxonomyTermGroupDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermGroupDefinitionTests\r\n 0\r\n TaxonomyTermGroupDefinitionTests.cs\r\n TaxonomyTermGroupDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermGroupDefinitionTests.cs\r\n"); } public static class TaxonomyTermLabelDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermLabelDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermLabelDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermLabelDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy term label\r\n \r\n \r\n \r\n \r\n \r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n CanDeploySimpleTaxonomyTermLabelDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests.CanDeploySimpleTaxonomyTermLabelDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermLabelDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermLabelDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermLabelDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermLabelDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term label\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermLabelDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermLabelDefinitionTests\r\n TaxonomyTermLabelDefinitionTestsClass\r\n \r\n ClassTaxonomyTermLabelDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermLabelDefinitionTests\r\n 0\r\n TaxonomyTermLabelDefinitionTests.cs\r\n TaxonomyTermLabelDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermLabelDefinitionTests.cs\r\n"); } public static class TaxonomyTermSetDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermSets = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermSetDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleTaxonomyTermSets = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy termsets\r\n \r\n \r\n \r\n\r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar clientsGroup = new TaxonomyTermGroupDefinition\r\n{\r\n Name = \"Clients\"\r\n};\r\n\r\nvar smallBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Small Business\"\r\n};\r\n\r\nvar mediumBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Medium Business\"\r\n};\r\n\r\nvar enterpriseBusiness = new TaxonomyTermSetDefinition\r\n{\r\n Name = \"Enterprise Business\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n CanDeploySimpleTaxonomyTermSets\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests.CanDeploySimpleTaxonomyTermSets\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermSetDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermSetDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermSetDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermSetDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add taxonomy termsets\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleTaxonomyTermSets()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var clientsGroup = new TaxonomyTermGroupDefinition\r\n {\r\n Name = \"Clients\"\r\n };\r\n\r\n var smallBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Small Business\"\r\n };\r\n\r\n var mediumBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Medium Business\"\r\n };\r\n\r\n var enterpriseBusiness = new TaxonomyTermSetDefinition\r\n {\r\n Name = \"Enterprise Business\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n termStore.AddTaxonomyTermGroup(clientsGroup, group =>\r\n {\r\n group\r\n .AddTaxonomyTermSet(smallBusiness)\r\n .AddTaxonomyTermSet(mediumBusiness)\r\n .AddTaxonomyTermSet(enterpriseBusiness);\r\n });\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermSetDefinitionTests\r\n TaxonomyTermSetDefinitionTestsClass\r\n \r\n ClassTaxonomyTermSetDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermSetDefinitionTests\r\n 0\r\n TaxonomyTermSetDefinitionTests.cs\r\n TaxonomyTermSetDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermSetDefinitionTests.cs\r\n"); } public static class TaxonomyTermStoreDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample LookupTermStoreByName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample LookupDefaultSiteTermStore = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermStoreDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LookupTermStoreByName = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add taxonomy term store by Name\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n Name = \"Managed Metadata Service\"\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupTermStoreByName\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupTermStoreByName\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample LookupDefaultSiteTermStore = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n \r\n \r\n \r\n Add default taxonomy term store\r\n \r\n \r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n{\r\n UseDefaultSiteCollectionTermStore = true\r\n};\r\n\r\nvar model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n LookupDefaultSiteTermStore\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests.LookupDefaultSiteTermStore\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample TaxonomyTermStoreDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n Sample Category\r\n \r\n Taxonomy\r\n Taxonomy\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Site Collection Model\r\n Site Collection Model\r\n \r\n \r\n \r\n TaxonomyTermStoreDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n \r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class TaxonomyTermStoreDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add taxonomy term store by Name\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupTermStoreByName()\r\n {\r\n var mmsTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n Name = \"Managed Metadata Service\"\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(mmsTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.TaxonomyTermStoreDefinition\")]\r\n [SampleMetadata(Title = \"Add default taxonomy term store\",\r\n Description = \"\"\r\n )]\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void LookupDefaultSiteTermStore()\r\n {\r\n var defaultSiteTermStore = new TaxonomyTermStoreDefinition\r\n {\r\n UseDefaultSiteCollectionTermStore = true\r\n };\r\n\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n site.AddTaxonomyTermStore(defaultSiteTermStore, termStore =>\r\n {\r\n // do stuff, add groups, term sets\r\n });\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n TaxonomyTermStoreDefinitionTests\r\n TaxonomyTermStoreDefinitionTestsClass\r\n \r\n ClassTaxonomyTermStoreDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.TaxonomyTermStoreDefinitionTests\r\n 0\r\n TaxonomyTermStoreDefinitionTests.cs\r\n TaxonomyTermStoreDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\TaxonomyTermStoreDefinitionTests.cs\r\n"); } public static class WebNavigationSettingsDefinitionTests { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") , +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebNavigationSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); - public static SubPointSolutions.Docs.Code.Data.DocSample WebNavigationSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample CanDeploySimpleWebNavigationSettingsDefinition = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n true\r\n false\r\n \r\n \r\n Sample Hidden Flag\r\n \r\n \r\n \r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n \r\n \r\n \r\n Add web navigation settings\r\n \r\n \r\n \r\n\r\n \r\n \r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n{\r\n\r\n});\r\n\r\nDeployModel(model);\r\n\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n CanDeploySimpleWebNavigationSettingsDefinition\r\n \r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests.CanDeploySimpleWebNavigationSettingsDefinition\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample WebNavigationSettingsDefinitionTestsClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n \r\n Sample Category\r\n \r\n Web site\r\n Web site\r\n \r\n \r\n \r\n Sample M2 Model\r\n \r\n Web Model\r\n Web Model\r\n \r\n \r\n \r\n SharePoint Runtime\r\n \r\n SharePoint Standard\r\n SharePoint Standard\r\n \r\n \r\n \r\n WebNavigationSettingsDefinitionTests\r\n \r\n \r\n \r\n\r\n \r\n \r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n {\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n \r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n }\r\n //[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\npublic class WebNavigationSettingsDefinitionTests : ProvisionTestBase\r\n{\r\n #region methods\r\n\r\n [TestMethod]\r\n [TestCategory(\"Docs.WebNavigationSettingsDefinition\")]\r\n\r\n [SampleMetadata(Title = \"Add web navigation settings\",\r\n Description = \"\"\r\n )]\r\n [SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)]\r\n public void CanDeploySimpleWebNavigationSettingsDefinition()\r\n {\r\n var model = SPMeta2Model.NewSiteModel(site =>\r\n {\r\n\r\n });\r\n\r\n DeployModel(model);\r\n }\r\n\r\n #endregion\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n WebNavigationSettingsDefinitionTests\r\n WebNavigationSettingsDefinitionTestsClass\r\n \r\n ClassWebNavigationSettingsDefinitionTestsClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.WebNavigationSettingsDefinitionTests\r\n 0\r\n WebNavigationSettingsDefinitionTests.cs\r\n WebNavigationSettingsDefinitionTests\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\r\n ..\\..\\Views\\SPMeta2\\reference\\sp-standard-definitions\\WebNavigationSettingsDefinitionTests.cs\r\n"); } public static class ChangeWebTitleAndDescriptionDefinition { public static System.Collections.Generic.List SysAllSamples = new System.Collections.Generic.List(new SubPointSolutions.Docs.Code.Data.DocSample[] { -SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") +SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n") }); - public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionDefinitionClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); + public static SubPointSolutions.Docs.Code.Data.DocSample ChangeWebTitleAndDescriptionDefinitionClass = SubPointSolutions.Docs.Code.Data.DocSample.FromXml("\r\n\r\n false\r\n true\r\n \r\n ChangeWebTitleAndDescriptionDefinition\r\n \r\n \r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n {\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n }\r\n public class ChangeWebTitleAndDescriptionDefinition : DefinitionBase\r\n{\r\n public string Title { get; set; }\r\n public string Description { get; set; }\r\n}\r\n\r\n cs\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions\r\n ChangeWebTitleAndDescriptionDefinition\r\n ChangeWebTitleAndDescriptionDefinitionClass\r\n \r\n ClassChangeWebTitleAndDescriptionDefinitionClass\r\n SPMeta2.Docs.ProvisionSamples.Provision.Definitions.ChangeWebTitleAndDescriptionDefinition\r\n 0\r\n writing-custom-definition.cs\r\n writing-custom-definition\r\n ..\\..\\Views\\SPMeta2\\extensibility\r\n ..\\..\\Views\\SPMeta2\\extensibility\\writing-custom-definition.cs\r\n"); } } diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.cs b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.cs index 21816f059..5b71fe1b9 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.cs +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.cs @@ -17,7 +17,12 @@ namespace SubPointSolutions.Docs.Views.SPMeta2.extensibility { - public class Regressiontesting : ProvisionTestBase + public class RegressionTestingBase : ProvisionTestBase + { + protected void TestRandomDefinition() { } + } + + public class Regressiontesting : RegressionTestingBase { #region methods @@ -28,8 +33,6 @@ public void CanDeployRandom_WebDefinition() TestRandomDefinition(); } - private void TestRandomDefinition() { } - #endregion } diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md index 752c3d9bc..68cc604ce 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md @@ -162,7 +162,7 @@ In both project we have 'DefinitionGenerators' folder that houses 'random defini Such classes generate a random, valid definition that can be deploye to SharePoint. Check 'WebDefinitionGenerator', it looks as following: - Follow the same style adding a new definition generator if you created a new definition. @@ -292,7 +292,7 @@ Such approach ensures that: All that is made possible by the additional attributes on SPMEta2 definitions and enhanced assert utils we wrote. Let's get deeper into regression testing attributes and assert utils with the next paragraph! -### Regression testing attributes and assertions +### Regression testing attributes If you reading this, then you should know that SPMeta2 regression testing: * Generates 'random models' based on definition attributes @@ -309,7 +309,8 @@ Open up [WebDefinition](https://github.com/SubPointSolutions/spmeta2/blob/master WebDefinition has tons of attributes. Let's go one by one. **[SPObjectType]** -THis attribute defines what kind of SharePoint object is passed to OnProvisining/OnProvisioned events. + +This attribute defines what kind of SharePoint object is passed to OnProvisining/OnProvisioned events. Regression testing checks if: * OnProvisining/OnProvisioned events were fired * Events have data passed @@ -318,6 +319,7 @@ Regression testing checks if: We are forcing outselves to ensure that SPMeta2 always raises OnProvisining/OnProvisioned events in the right way. **[DefaultRootHost] / [DefaultParentHost]** + Mentioned early, these two attributes define parent-child relationships between definitions. Such relationships are used within regression testing while generating random models. DefaultRootHost suggest the type of the model to generate - farm, web app, site or web model. @@ -328,23 +330,28 @@ For instance, field can be deployed under site, web and list. But FieldDefinitio DefaultRootHost and DefaultParentHost attributes are used for random regression tests, the rest of the artifact combinations are handled by scenarios tests. **[ExpectAddHostExtensionMethod]** + This attributes ensures that .AddHostXXX() methods exists. Sometimes, artoifact already exists (such as style library), so that .AddHostList() method is used to build up a model. If definition has [ExpectAddHostExtensionMethod] attribute, then regression checks if an appropriate extension method for SPMEta2 model syntax exists. **[Serializable] / [DataContract]** + Default .NET attributes, Must have to ensure definition can be serialized. **[ExpectWithExtensionMethod]** + Osolete. Regression would check if .WithXXX() method exists at the model syntax level. **[ExpectArrayExtensionMethod]** + Regression checks if .AddXXXs() method exists at the model syntax level, such as: * AddFields(array) * AddWebs(array) **[ParentHostCapability]** + Similr to [DefaultParentHost] attribute, ParentHostCapability indicates possible parent of the current definitions. There might be multiple [ParentHostCapability] attributes to indicate multiple parents. In this case, such attributes represents all potential combinations to create model tree of the giving definitions. @@ -355,6 +362,7 @@ ParentHostCapability (and all other XXXCapability attributes) are meant to indi You can use ParentHostCapability attribute to figure out all possible parent for the current definition in your software or tool. **[ExpectManyInstances]** + This is part of regression testing and 'random tests'. Some definitions, such as lists, fields, webs, can be added into the model several times. Some exist alone - such as 'BreakRoleInheritance'. @@ -376,9 +384,11 @@ Every definition has set of properties, and every propertu has tons of custom at Open up [WebDefinition](https://github.com/SubPointSolutions/spmeta2/blob/master/SPMeta2/SPMeta2/Definitions/WebDefinition.cs) source code, let's talk WebDefinition properties and its attributes. **[DataMember]** + Default .NET attribute to ensure that propety is serialized. Boring. **[ExpectRequired]** + This attribute indicated that property must have a value. SPMeta2 has builtin validation. We prevent you from deploying incorrectly formed definitions. For instance, WebDefinition must have Title and Url. Hence, both props have [ExpectRequired] attributes. @@ -391,6 +401,7 @@ In such case, ExpectRequiest attribute has a 'group', as following: Validation groups all ExpectRequired using the 'GroupName', and then ensures that one of the property with such attribute within a group is set. **[IdentityKey]** + Identity key is something like a 'global unique identificator' for SPMeta2 definition. Every definition must have one, unless the definition is 'single' such as BreakRoleInheritance. @@ -399,10 +410,12 @@ Sure, other properties must be taken into account, but this 'identity key' helps Such operations are needed once we perform diff/merge operation over two and more SPMeta2 models. **[ExpectValidation]** + Used by regression testing. If this attribute exists at the property, then regression testing expect that you performed assert operation via 'model validation' while testing your definition. Simply saying, all properties marked by [ExpectValidation] attributes are forces to be checked or irnored by regression testing assert utils. **[ExpectNullable]** + This is part of the regresison testing. Random models gets deployed deveral times over the provisioning. For the second and further provisioning, the model gets random updates: all definition properties get randomly updated. @@ -414,6 +427,7 @@ We automated that via [ExpectNullable] attribute si that regression does several Hence, we found all bugs and issues in the provisioning code that was not handling NULLs property. Shame, we know. But not anymore. **[ExpectUpdate]** + This is cool attribute. Similar to [ExpectNullable], this attribute suggest that definition property can be updated. For instance, field title, web title, web descriptions and so on. @@ -446,6 +460,7 @@ Regresison testing gets all definition properties, updates all 'simple' props wi Woohooo! Pretty much we done with the attributes. Altogether, these little trick and bits helps SPMeta2 prodice such outstanding quality. +### Regression testing asserts Let's talk about 'model validators'. Open up [WebDefinitionValidator](https://github.com/SubPointSolutions/spmeta2/blob/master/SPMeta2/SPMeta2.Regression.SSOM/Validation/WebDefinitionValidator.cs). Most of the model validators make the 'reverse' of the model handler - thet fetch the object from SharePoint to compare object properties with the definition properties. @@ -459,15 +474,17 @@ Fetching the object, we tend to use the same codebased as model handlers. in cas Once we obtain the SharePoint object, we create an 'AsserPair' via AssertService. AsserPair has various methods to perform validation sich as: -* ShouldBeEqual(m => m.WebTemplate, o => o.GetWebTemplate()); -* ShouldBeEqual(m => m.UseUniquePermission, o => o.HasUniqueRoleAssignments) +* .ShouldBeEqual +* .ShouldNotBeNull +* .ShouldXXX +* so on... The first object os always definition instance, the second one is the SharePoint object. Most of the time you can compare simple props such as string and numbers. Sometimes you need to skip the property (if it's null, so you don't need to validate it), so that the following methd is to be used: -* assert.SkipProperty(m => m.CustomWebTemplate); +* assert.SkipProperty method Finally, if the props are complex and can't be compard with out of the box methods, use the following ShouldBeEqual() override: -* assert.ShouldBeEqual((p, s, d) => {} ); +* assert.ShouldBeEqual You must return PropertyValidationResult object, check [WebDefinitionValidator](https://github.com/SubPointSolutions/spmeta2/blob/master/SPMeta2/SPMeta2.Regression.SSOM/Validation/WebDefinitionValidator.cs) and .Url comparation to get into more details. @@ -490,4 +507,4 @@ Having said that, most of the definition are already created by the SPMeta2 team ### Further reading * [definitions concept](/spmeta2/reference/definitions) * [models concept](/spmeta2/reference/models) -* [creaeting custom definition](/spmeta2/extensibility/custom-definition) +* [creating custom definition](/spmeta2/extensibility/custom-definition) diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-definition.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-definition.md index 9692b68fa..9e54abb4c 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-definition.md +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/writing-custom-definition.md @@ -1,4 +1,4 @@ --- +--- Title: Custom definition FileName: custom-definition.html Order: 500 From 83512cd1dd94e4f6e027b3531d4a69a42ecd34b5 Mon Sep 17 00:00:00 2001 From: Andi Date: Mon, 17 Oct 2016 14:27:21 +0200 Subject: [PATCH 24/27] Update regression-testing.md Corrected some typos --- .../extensibility/regression-testing.md | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md index 68cc604ce..4b36796c8 100644 --- a/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md +++ b/SPMeta2/SubPointSolutions.Docs/Views/SPMeta2/extensibility/regression-testing.md @@ -105,9 +105,9 @@ It reflects all definitions in SPMeta2, then creates and instance of definition. That ensure that default constructor can be called without any errors. We have 'RandomDefinitionTest_ShouldHave_Tests_ForAllDefinitions' test that ensure that 'RandomDefinitionSelfDiagnoosticTest' class has 'random' tests for every definition. -If you addd a new definition, you have to add a 'random' definitio regresison test (will be discussed later) and this test will fail indicating that you haven't added such regression test. +If you addd a new definition, you have to add a 'random' definition regression test (will be discussed later) and this test will fail indicating that you haven't added such regression test. -There are other unit tests to ensure defaukt services, values, null-reference exception, ensure serialization and presence of correct attributes, and then some test to ensure that particular tests were written. +There are other unit tests to ensure default services, values, null-reference exception, ensure serialization and presence of correct attributes, and then some test to ensure that particular tests were written. Altogether, at unit test level we ensure basic C# tests and some SPMeta2 name convention and integrity. If you need to test something non-SharePoint related, a unit test is the right place. @@ -119,7 +119,7 @@ For unit tests you need to focus on /Tests/Impl/ folder and two solutions. Place ### SPMeta2 regression testing Regression testing is more complicated. -As mentioned early, regression testing has a complictaed execution flow and it required either SharePoint 2013 farm or SharePoint online tenant. +As mentioned early, regression testing has a complicated execution flow and it required either SharePoint 2013 farm or SharePoint online tenant. SSOM testing requires SharePoint 2013 farm. CSOM testing goes either with SharePoint 2013 farm or SharePoint online tenant. @@ -163,12 +163,12 @@ Such classes generate a random, valid definition that can be deploye to SharePoi Check 'WebDefinitionGenerator', it looks as following: - -Follow the same style adding a new definition generator if you created a new definition. - -Next, TestRandomDefinition() creates a random model for the giving definition. How come? -Every definition has two attributes that tell the immediate parent of the artifact, and then the root parent of the artifact. -For instance, web definition has the following attributes: + +Follow the same style adding a new definition generator if you created a new definition. + +Next, TestRandomDefinition() creates a random model for the giving definition. How come? +Every definition has two attributes that tell the immediate parent of the artifact, and then the root parent of the artifact. +For instance, web definition has the following attributes: * [DefaultRootHost(typeof(SiteDefinition))] * [DefaultParentHost(typeof(SiteDefinition))] @@ -193,7 +193,7 @@ Folow name convention to add a new tests, and then implement correct random defi ### Scenarios regression tests **Scenarios regression** tests is the next step to cover different provision scenarios. -Such tests reflect real word scenarios coming from comminuty and real world projects. +Such tests reflect real word scenarios coming from community and real world projects. All scenarios are written manually and aim to cover a particular scope. For instance, with the fields: @@ -270,8 +270,8 @@ Model validators are meant to compare the original SPMeta2 definition object wit Every definition has a 'model validator'. Consider it to be sort of 'reversed model handler'. If model handler provisions artifact to SharePoint, then 'model validator' does the reverse things - it pulls artifact from SharePoint and then compares properties of artifact with properties defined in the definition. -Such flow is oversimlification of the actual things that happening behind. As mentioned, several rounds of provisioning is done, serialization is used, some other maginc is involved. -At the end, it comes back to model validators and property-to-property comparison.To learn more, have a look how WebDefinitionValidator works. It is a great start to understand the regression testing. +Such flow is oversimplification of the actual things that happening behind. As mentioned, several rounds of provisioning is done, serialization is used, some other magic is involved. +At the end, it comes back to model validators and property-to-property comparison. To learn more, have a look how WebDefinitionValidator works. It is a great start to understand the regression testing. **Why regression testing does not use default "Aseert" class?** Now, you may notice that default unit tests have "Aseert" class to check statements. We don't use that in the regression testing. @@ -280,7 +280,7 @@ It makes a report over all the properties showing: * Which properties have not been validated by 'model validator' * Which properties have been validated but were not equal -Default C# unit tests framework don't provide such funtionality allowing only to fail on the first wrong sutiation. +Default C# unit tests framework don't provide such functionality allowing only to fail on the first wrong situation. SPMeta2 regression testing runs everything from start to end, allows to compare properties and renders the report over the comparison to the tests trace. Such approach ensures that: @@ -332,7 +332,7 @@ DefaultRootHost and DefaultParentHost attributes are used for random regression **[ExpectAddHostExtensionMethod]** This attributes ensures that .AddHostXXX() methods exists. -Sometimes, artoifact already exists (such as style library), so that .AddHostList() method is used to build up a model. +Sometimes, artifact already exists (such as style library), so that .AddHostList() method is used to build up a model. If definition has [ExpectAddHostExtensionMethod] attribute, then regression checks if an appropriate extension method for SPMEta2 model syntax exists. @@ -342,7 +342,7 @@ Default .NET attributes, Must have to ensure definition can be serialized. **[ExpectWithExtensionMethod]** -Osolete. Regression would check if .WithXXX() method exists at the model syntax level. +Obsolete. Regression would check if .WithXXX() method exists at the model syntax level. **[ExpectArrayExtensionMethod]** @@ -352,10 +352,10 @@ Regression checks if .AddXXXs() method exists at the model syntax level, such as **[ParentHostCapability]** -Similr to [DefaultParentHost] attribute, ParentHostCapability indicates possible parent of the current definitions. +Similar to [DefaultParentHost] attribute, ParentHostCapability indicates possible parent of the current definitions. There might be multiple [ParentHostCapability] attributes to indicate multiple parents. In this case, such attributes represents all potential combinations to create model tree of the giving definitions. -For instance, FieldDefinition has three [ParentHostCapability] with site, web and list valies. +For instance, FieldDefinition has three [ParentHostCapability] with site, web and list values. WebDefintion has two: for web, and site. ParentHostCapability (and all other XXXCapability attributes) are meant to indicate additional information of the defintion for 3rd part tools. @@ -368,13 +368,13 @@ Some definitions, such as lists, fields, webs, can be added into the model sever Some exist alone - such as 'BreakRoleInheritance'. If [ExpectManyInstances] exists, then 'random' regression tests will create 1-3 instancies of the definition while constructing a random model for the random regression test. -That means that random regression tests create a random model with random amont of random definition of the giving type. Sounds cool right? +That means that random regression tests create a random model with random amount of random definition of the giving type. Sounds cool right? Okay, random model for BreakRoleInheritance will have only one instance of BreakRoleInheritance. Most of the definitions have [ExpectManyInstances] attributes, so that a random model will have 1-3 instancies of the giving definition. For instance, random tests for field definition will have 1-3 field definition instancies. -We need that to ensire that several definitions can be deploye in a row. We had some issues with onde definition deployed well, and if you add two definitions in the model (two fields, two lists, two web parts), then provision fails. +We need that to ensure that several definitions can be deployed in a row. We had some issues with one definition deployed well, and if you add two definitions in the model (two fields, two lists, two web parts), then provision fails. Hence, we added [ExpectManyInstances] attributes and enhanced regression testing to generate several instancies of the giving definition within a random test. Really, cool. Quality rocks, guys. From 2e7a5f0a17c6704786423b8020ceb1a8dc8bb414 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 24 Oct 2016 00:04:32 -0700 Subject: [PATCH 25/27] + WebNavigationSettingsDefinition - missed impl for AddNewPagesToNavigation/CreateFriendlyUrlsForNewPages props #906 + added CanDeploy_WebNavigationSettings_With_AddNewPages_And_FriendlyUrls test --- .../Properties/AssemblyInfo.cs | 2 +- .../SPMeta2.CSOM/Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../SPMeta2.O365/Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../WebNavigationSettingsScenariosTest.cs | 42 +++ .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../SPMeta2.SSOM/Properties/AssemblyInfo.cs | 2 +- .../WebNavigationSettingsDefinition.cs | 326 +++++++++--------- .../Properties/AssemblyInfo.cs | 2 +- SPMeta2/SPMeta2/Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- 23 files changed, 227 insertions(+), 183 deletions(-) diff --git a/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs index 17985f0cd..0c863c79d 100644 --- a/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs @@ -32,4 +32,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs index 111e8bfd3..ff965da7c 100644 --- a/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0654")] diff --git a/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs index 8970e9699..fb746a844 100644 --- a/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs index 3508f7ee9..4051fd3de 100644 --- a/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs index cca9bcf9a..c2a6fd948 100644 --- a/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs index 14f73882b..d58fb5443 100644 --- a/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs index 64bab158d..435eaf096 100644 --- a/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs index f636edf03..512cc1eeb 100644 --- a/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs index cb5dbc98f..f156d7da9 100644 --- a/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0654")] diff --git a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs index 59f37f41f..56f36c63b 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs index ad16a7f8e..4920c655a 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs index 2f6c35a82..80fca37ab 100644 --- a/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0700")] diff --git a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs index 3a7816efa..f2d8c57ec 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs index 9fc4c420d..4e7f83f19 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebNavigationSettingsScenariosTest.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebNavigationSettingsScenariosTest.cs index 5245726da..de780a2e7 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebNavigationSettingsScenariosTest.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebNavigationSettingsScenariosTest.cs @@ -524,5 +524,47 @@ public void CanDeploy_WebNavigationSettings_With_CurrentNavigationSource() } #endregion + + #region AddNewPagesToNavigation/CreateFriendlyUrlsForNewPages + + [TestMethod] + [TestCategory("Regression.Scenarios.WebNavigationSettings.Props")] + public void CanDeploy_WebNavigationSettings_With_AddNewPages_And_FriendlyUrls() + { + var siteModel = SPMeta2Model.NewSiteModel(site => + { + site.AddSiteFeature(BuiltInSiteFeatures.SharePointServerPublishingInfrastructure.Inherit(def => + { + def.Enable = true; + })); + + }); + + var webModel = SPMeta2Model.NewWebModel(web => + { + web.AddWebFeature(BuiltInWebFeatures.SharePointServerPublishing.Inherit(def => + { + def.Enable = true; + })); + + web.AddWebNavigationSettings(new WebNavigationSettingsDefinition() + { + AddNewPagesToNavigation = Rnd.Bool(), + CreateFriendlyUrlsForNewPages = Rnd.Bool() + + //GlobalNavigationSource = BuiltInStandardNavigationSources.PortalProvider, + //GlobalNavigationShowSubsites = true, + //GlobalNavigationShowPages = true, + + //CurrentNavigationSource = BuiltInStandardNavigationSources.PortalProvider, + //CurrentNavigationShowSubsites = true, + //CurrentNavigationShowPages = true + }); + }); + + TestModel(siteModel, webModel); + } + + #endregion } } diff --git a/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs index 5c78b6872..717b94e79 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0700")] diff --git a/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs index d6bfce72e..220a6096e 100644 --- a/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.16286.0924")] +[assembly: AssemblyFileVersion("1.0.16298.0654")] diff --git a/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs index b81fc50fb..0ff297c0f 100644 --- a/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs index 1a1496a65..b4466a6d6 100644 --- a/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0654")] diff --git a/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs b/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs index e2155a47d..642526ccf 100644 --- a/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs +++ b/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs @@ -1,164 +1,166 @@ -using System; -using System.ComponentModel; -using SPMeta2.Attributes; -using SPMeta2.Attributes.Identity; -using SPMeta2.Attributes.Regression; -using SPMeta2.Definitions; -using SPMeta2.Definitions.Base; -using SPMeta2.Standard.Definitions.Taxonomy; -using SPMeta2.Utils; -using System.Runtime.Serialization; -using SPMeta2.Attributes.Capabilities; - -namespace SPMeta2.Standard.Definitions -{ - [SPObjectType(SPObjectModelType.SSOM, "Microsoft.SharePoint.Publishing.Navigation.WebNavigationSettings", "Microsoft.SharePoint.Publishing")] - [SPObjectType(SPObjectModelType.CSOM, "Microsoft.SharePoint.Client.Publishing.Navigation.WebNavigationSettings", "Microsoft.SharePoint.Client.Publishing")] - - [DefaultParentHost(typeof(WebDefinition))] - [DefaultRootHost(typeof(SiteDefinition))] - - [Serializable] - [DataContract] - [SingletonIdentity] - - [ParentHostCapability(typeof(WebDefinition))] - public class WebNavigationSettingsDefinition : DefinitionBase - { - #region constructors - - public WebNavigationSettingsDefinition() - { - CurrentNavigationTermSetLCID = 1033; - GlobalNavigationTermSetLCID = 1033; - } - - - #endregion - - #region properties - - [DataMember] - public bool? DisplayShowHideRibbonAction { get; set; } - - [DataMember] - public bool? AddNewPagesToNavigation { get; set; } - - [DataMember] - public bool? CreateFriendlyUrlsForNewPages { get; set; } - - [DataMember] +using System; +using System.ComponentModel; +using SPMeta2.Attributes; +using SPMeta2.Attributes.Identity; +using SPMeta2.Attributes.Regression; +using SPMeta2.Definitions; +using SPMeta2.Definitions.Base; +using SPMeta2.Standard.Definitions.Taxonomy; +using SPMeta2.Utils; +using System.Runtime.Serialization; +using SPMeta2.Attributes.Capabilities; + +namespace SPMeta2.Standard.Definitions +{ + [SPObjectType(SPObjectModelType.SSOM, "Microsoft.SharePoint.Publishing.Navigation.WebNavigationSettings", "Microsoft.SharePoint.Publishing")] + [SPObjectType(SPObjectModelType.CSOM, "Microsoft.SharePoint.Client.Publishing.Navigation.WebNavigationSettings", "Microsoft.SharePoint.Client.Publishing")] + + [DefaultParentHost(typeof(WebDefinition))] + [DefaultRootHost(typeof(SiteDefinition))] + + [Serializable] + [DataContract] + [SingletonIdentity] + + [ParentHostCapability(typeof(WebDefinition))] + public class WebNavigationSettingsDefinition : DefinitionBase + { + #region constructors + + public WebNavigationSettingsDefinition() + { + CurrentNavigationTermSetLCID = 1033; + GlobalNavigationTermSetLCID = 1033; + } + + + #endregion + + #region properties + + [DataMember] + public bool? DisplayShowHideRibbonAction { get; set; } + + [DataMember] [ExpectValidation] - [ExpectRequired(GroupName = "NavigationSource")] - public string GlobalNavigationSource { get; set; } - - #region global navigation term store support - - [DataMember] - public Guid? GlobalNavigationTermStoreId { get; set; } - - [DataMember] - public string GlobalNavigationTermStoreName { get; set; } - - [DataMember] - public bool? GlobalNavigationUseDefaultSiteCollectionTermStore { get; set; } - - [DataMember] - public Guid? GlobalNavigationTermGroupId { get; set; } - - [DataMember] - public string GlobalNavigationTermGroupName { get; set; } - - [DataMember] - public Guid? GlobalNavigationTermSetId { get; set; } - - [DataMember] - public int GlobalNavigationTermSetLCID { get; set; } - - - [DataMember] - public string GlobalNavigationTermSetName { get; set; } - - #endregion - - [DataMember] + public bool? AddNewPagesToNavigation { get; set; } + + [DataMember] [ExpectValidation] - [ExpectRequired(GroupName = "NavigationSource")] - public string CurrentNavigationSource { get; set; } - - #region current navigation term store support - - [DataMember] - public Guid? CurrentNavigationTermStoreId { get; set; } - - [DataMember] - public string CurrentNavigationTermStoreName { get; set; } - - [DataMember] - public bool? CurrentNavigationUseDefaultSiteCollectionTermStore { get; set; } - - [DataMember] - public Guid? CurrentNavigationTermGroupId { get; set; } - - [DataMember] - public string CurrentNavigationTermGroupName { get; set; } - - [DataMember] - public Guid? CurrentNavigationTermSetId { get; set; } - - [DataMember] - public int CurrentNavigationTermSetLCID { get; set; } - - [DataMember] - public string CurrentNavigationTermSetName { get; set; } - - #endregion - - [DataMember] - public bool? ResetToDefaults { get; set; } - - [DataMember] - [ExpectValidation] - [ExpectUpdate] - public bool? GlobalNavigationShowPages { get; set; } - - [DataMember] - [ExpectValidation] - [ExpectUpdate] - public bool? GlobalNavigationShowSubsites { get; set; } - - [DataMember] - [ExpectValidation] - [ExpectUpdateAsIntRange(MinValue = 5, MaxValue = 10)] - public int? GlobalNavigationMaximumNumberOfDynamicItems { get; set; } - - [DataMember] - [ExpectValidation] - [ExpectUpdate] - public bool? CurrentNavigationShowPages { get; set; } - - [DataMember] - [ExpectValidation] - [ExpectUpdate] - public bool? CurrentNavigationShowSubsites { get; set; } - - [DataMember] - [ExpectValidation] - [ExpectUpdateAsIntRange(MinValue = 5, MaxValue = 10)] - public int? CurrentNavigationMaximumNumberOfDynamicItems { get; set; } - - #endregion - - #region methods - - public override string ToString() - { - return new ToStringResult(this) - .AddPropertyValue(p => p.GlobalNavigationSource) - .AddPropertyValue(p => p.CurrentNavigationSource) - .ToString(); - } - - #endregion - } -} + public bool? CreateFriendlyUrlsForNewPages { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectRequired(GroupName = "NavigationSource")] + public string GlobalNavigationSource { get; set; } + + #region global navigation term store support + + [DataMember] + public Guid? GlobalNavigationTermStoreId { get; set; } + + [DataMember] + public string GlobalNavigationTermStoreName { get; set; } + + [DataMember] + public bool? GlobalNavigationUseDefaultSiteCollectionTermStore { get; set; } + + [DataMember] + public Guid? GlobalNavigationTermGroupId { get; set; } + + [DataMember] + public string GlobalNavigationTermGroupName { get; set; } + + [DataMember] + public Guid? GlobalNavigationTermSetId { get; set; } + + [DataMember] + public int GlobalNavigationTermSetLCID { get; set; } + + + [DataMember] + public string GlobalNavigationTermSetName { get; set; } + + #endregion + + [DataMember] + [ExpectValidation] + [ExpectRequired(GroupName = "NavigationSource")] + public string CurrentNavigationSource { get; set; } + + #region current navigation term store support + + [DataMember] + public Guid? CurrentNavigationTermStoreId { get; set; } + + [DataMember] + public string CurrentNavigationTermStoreName { get; set; } + + [DataMember] + public bool? CurrentNavigationUseDefaultSiteCollectionTermStore { get; set; } + + [DataMember] + public Guid? CurrentNavigationTermGroupId { get; set; } + + [DataMember] + public string CurrentNavigationTermGroupName { get; set; } + + [DataMember] + public Guid? CurrentNavigationTermSetId { get; set; } + + [DataMember] + public int CurrentNavigationTermSetLCID { get; set; } + + [DataMember] + public string CurrentNavigationTermSetName { get; set; } + + #endregion + + [DataMember] + public bool? ResetToDefaults { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectUpdate] + public bool? GlobalNavigationShowPages { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectUpdate] + public bool? GlobalNavigationShowSubsites { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectUpdateAsIntRange(MinValue = 5, MaxValue = 10)] + public int? GlobalNavigationMaximumNumberOfDynamicItems { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectUpdate] + public bool? CurrentNavigationShowPages { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectUpdate] + public bool? CurrentNavigationShowSubsites { get; set; } + + [DataMember] + [ExpectValidation] + [ExpectUpdateAsIntRange(MinValue = 5, MaxValue = 10)] + public int? CurrentNavigationMaximumNumberOfDynamicItems { get; set; } + + #endregion + + #region methods + + public override string ToString() + { + return new ToStringResult(this) + .AddPropertyValue(p => p.GlobalNavigationSource) + .AddPropertyValue(p => p.CurrentNavigationSource) + .ToString(); + } + + #endregion + } +} diff --git a/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs index 9eb96d74f..850d5a26f 100644 --- a/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0658")] diff --git a/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs index d1fa6dfef..ddc5fccdf 100644 --- a/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs @@ -32,4 +32,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16286.0924")] +[assembly: AssemblyFileVersion("1.2.16298.0654")] diff --git a/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs b/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs index 7259d9834..ef5f59385 100644 --- a/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs +++ b/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.16286.0924")] +[assembly: AssemblyFileVersion("1.0.16298.0658")] From dba2270c479a87eb063957eaed858f3a09b06473 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 24 Oct 2016 00:37:22 -0700 Subject: [PATCH 26/27] + build fix, testing --- .../Properties/AssemblyInfo.cs | 2 +- .../SPMeta2.CSOM/Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 6 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 6 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../SPMeta2.O365/Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../SPMeta2.SSOM/Properties/AssemblyInfo.cs | 2 +- .../WebNavigationSettingsDefinition.cs | 58 +------------------ .../Properties/AssemblyInfo.cs | 2 +- SPMeta2/SPMeta2/Properties/AssemblyInfo.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- 22 files changed, 23 insertions(+), 85 deletions(-) diff --git a/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs index 26f7f37d1..2ae40049e 100644 --- a/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.CSOM.Standard/Properties/AssemblyInfo.cs @@ -32,4 +32,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs index fd79f42e1..d8d2f270d 100644 --- a/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.CSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs index 22ce64ad2..36798c040 100644 --- a/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.CSOM/Properties/AssemblyInfo.cs @@ -33,8 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -<<<<<<< HEAD -[assembly: AssemblyFileVersion("1.2.16298.0658")] -======= -[assembly: AssemblyFileVersion("1.2.16284.1257")] ->>>>>>> cabc215006c9caa819cf7fab856a3ec7dd1b707f +[assembly: AssemblyFileVersion("1.2.16298.0736")] \ No newline at end of file diff --git a/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs index fd0f858d8..442b9cf49 100644 --- a/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.O365/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs index 1782bf870..a2d193f07 100644 --- a/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.O365v16/Properties/AssemblyInfo.cs @@ -33,8 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -<<<<<<< HEAD -[assembly: AssemblyFileVersion("1.2.16298.0658")] -======= -[assembly: AssemblyFileVersion("1.2.16284.1257")] ->>>>>>> cabc215006c9caa819cf7fab856a3ec7dd1b707f +[assembly: AssemblyFileVersion("1.2.16298.0736")] \ No newline at end of file diff --git a/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs index cafa0f8e5..a7684bfec 100644 --- a/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.SSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs index ee1437632..38fa3b5fd 100644 --- a/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs index a44475ddd..98ac0b3d7 100644 --- a/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Containers/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs index 43e07241d..e4b025af2 100644 --- a/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.O365/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs index 0fb2ce76b..3318c3c11 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs index 1e4cac1cf..118918056 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs index 9dd38e44e..3f3c34d62 100644 --- a/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.Impl.Tests/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs index 8e0a84228..7493d05a0 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs index e517e227b..a5ee5c712 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs index 69ac51f90..b70aa270c 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs index 3af4445e9..62248c274 100644 --- a/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Regression/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.16284.1257")] +[assembly: AssemblyFileVersion("1.0.16298.0736")] diff --git a/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs index 82c9c79d9..5c6399771 100644 --- a/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.SSOM.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs index ebc870936..24660227c 100644 --- a/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.SSOM/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs b/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs index 937da6f4f..7f21ca2ac 100644 --- a/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs +++ b/SPMeta2/SPMeta2.Standard/Definitions/WebNavigationSettingsDefinition.cs @@ -1,5 +1,4 @@ -<<<<<<< HEAD -using System; +using System; using System.ComponentModel; using SPMeta2.Attributes; using SPMeta2.Attributes.Identity; @@ -43,59 +42,6 @@ public WebNavigationSettingsDefinition() public bool? DisplayShowHideRibbonAction { get; set; } [DataMember] -======= -using System; -using System.Runtime.Serialization; - -using SPMeta2.Attributes; -using SPMeta2.Attributes.Identity; -using SPMeta2.Attributes.Regression; -using SPMeta2.Definitions; -using SPMeta2.Utils; -using SPMeta2.Attributes.Capabilities; - -namespace SPMeta2.Standard.Definitions -{ - [SPObjectType(SPObjectModelType.SSOM, "Microsoft.SharePoint.Publishing.Navigation.WebNavigationSettings", "Microsoft.SharePoint.Publishing")] - [SPObjectType(SPObjectModelType.CSOM, "Microsoft.SharePoint.Client.Publishing.Navigation.WebNavigationSettings", "Microsoft.SharePoint.Client.Publishing")] - - [DefaultParentHost(typeof(WebDefinition))] - [DefaultRootHost(typeof(SiteDefinition))] - - [Serializable] - [DataContract] - [SingletonIdentity] - - [ParentHostCapability(typeof(WebDefinition))] - public class WebNavigationSettingsDefinition : DefinitionBase - { - #region constructors - - public WebNavigationSettingsDefinition() - { - CurrentNavigationTermSetLCID = 1033; - GlobalNavigationTermSetLCID = 1033; - } - - - #endregion - - #region properties - - [DataMember] - [ExpectValidation] - public bool? DisplayShowHideRibbonAction { get; set; } - - [DataMember] - [ExpectValidation] - public bool? AddNewPagesToNavigation { get; set; } - - [DataMember] - [ExpectValidation] - public bool? CreateFriendlyUrlsForNewPages { get; set; } - - [DataMember] ->>>>>>> cabc215006c9caa819cf7fab856a3ec7dd1b707f [ExpectValidation] public bool? AddNewPagesToNavigation { get; set; } @@ -217,4 +163,4 @@ public override string ToString() #endregion } -} +} \ No newline at end of file diff --git a/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs index 248fe24e9..ec1e24334 100644 --- a/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2.Standard/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs b/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs index 88e2fb112..ea94cd1f8 100644 --- a/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs +++ b/SPMeta2/SPMeta2/Properties/AssemblyInfo.cs @@ -32,4 +32,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.2.16284.1257")] +[assembly: AssemblyFileVersion("1.2.16298.0736")] diff --git a/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs b/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs index cbe2af92e..aecad8bb7 100644 --- a/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs +++ b/SPMeta2/SubPointSolutions.Docs/Properties/AssemblyInfo.cs @@ -33,4 +33,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.16284.1257")] +[assembly: AssemblyFileVersion("1.0.16298.0736")] From 2228fd64a45a908bc2a051fbe00a8fd0e48ec9b9 Mon Sep 17 00:00:00 2001 From: "support@subpointsolutions.com" Date: Mon, 24 Oct 2016 01:11:42 -0700 Subject: [PATCH 27/27] + WebNavigationSettingsDefinition - missed impl for AddNewPagesToNavigation/CreateFriendlyUrlsForNewPages props #906 --- .../WebNavigationSettingsDefinitionValidator.cs | 6 +++--- .../WebNavigationSettingsDefinitionValidator.cs | 12 +++++++----- .../WebNavigationSettingsScenariosTest.cs | 4 ++-- .../WebNavigationSettingsModelHandler.cs | 16 ++++++++-------- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs index 310b15c7f..78ab7d3a0 100644 --- a/SPMeta2/SPMeta2.Regression.CSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.CSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs @@ -209,7 +209,7 @@ public override void DeployModel(object modelHost, DefinitionBase model) var isGlobalNavIncludeTypesValid = false; - if (definition.CurrentNavigationShowSubsites.Value) + if (definition.CurrentNavigationShowPages.Value) { isGlobalNavIncludeTypesValid = ((currentNavIncludeTypesValue & 2) == 2) && (currentIncludeSubSitesValue); @@ -363,7 +363,7 @@ public override void DeployModel(object modelHost, DefinitionBase model) { assert.ShouldBeEqual((p, s, d) => { - var srcProp = s.GetExpressionValue(m => m.AddNewPagesToNavigation.Value); + var srcProp = s.GetExpressionValue(m => m.AddNewPagesToNavigation); return new PropertyValidationResult { @@ -392,7 +392,7 @@ public override void DeployModel(object modelHost, DefinitionBase model) { assert.ShouldBeEqual((p, s, d) => { - var srcProp = s.GetExpressionValue(m => m.CreateFriendlyUrlsForNewPages.Value); + var srcProp = s.GetExpressionValue(m => m.CreateFriendlyUrlsForNewPages); return new PropertyValidationResult { diff --git a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs index 24658808d..9b369c12e 100644 --- a/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs +++ b/SPMeta2/SPMeta2.Regression.SSOM.Standard/Validation/WebNavigationSettingsDefinitionValidator.cs @@ -268,11 +268,12 @@ public override void DeployModel(object modelHost, DefinitionBase model) if (definition.AddNewPagesToNavigation.HasValue) { - if (!string.IsNullOrEmpty(definition.GlobalNavigationSource) || !string.IsNullOrEmpty(definition.CurrentNavigationSource)) + if (!string.IsNullOrEmpty(definition.GlobalNavigationSource) + || !string.IsNullOrEmpty(definition.CurrentNavigationSource)) { assert.ShouldBeEqual((p, s, d) => { - var srcProp = s.GetExpressionValue(m => m.AddNewPagesToNavigation.Value); + var srcProp = s.GetExpressionValue(m => m.AddNewPagesToNavigation); return new PropertyValidationResult { @@ -294,14 +295,15 @@ public override void DeployModel(object modelHost, DefinitionBase model) assert.SkipProperty(d => d.AddNewPagesToNavigation, "AddNewPagesToNavigation is null"); } - + if (definition.CreateFriendlyUrlsForNewPages.HasValue) { - if (!string.IsNullOrEmpty(definition.GlobalNavigationSource) || !string.IsNullOrEmpty(definition.CurrentNavigationSource)) + if (!string.IsNullOrEmpty(definition.GlobalNavigationSource) + || !string.IsNullOrEmpty(definition.CurrentNavigationSource)) { assert.ShouldBeEqual((p, s, d) => { - var srcProp = s.GetExpressionValue(m => m.CreateFriendlyUrlsForNewPages.Value); + var srcProp = s.GetExpressionValue(m => m.CreateFriendlyUrlsForNewPages); return new PropertyValidationResult { diff --git a/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebNavigationSettingsScenariosTest.cs b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebNavigationSettingsScenariosTest.cs index de780a2e7..ee02b6e5b 100644 --- a/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebNavigationSettingsScenariosTest.cs +++ b/SPMeta2/SPMeta2.Regression.Tests/Impl/Scenarios/WebNavigationSettingsScenariosTest.cs @@ -550,9 +550,9 @@ public void CanDeploy_WebNavigationSettings_With_AddNewPages_And_FriendlyUrls() web.AddWebNavigationSettings(new WebNavigationSettingsDefinition() { AddNewPagesToNavigation = Rnd.Bool(), - CreateFriendlyUrlsForNewPages = Rnd.Bool() + CreateFriendlyUrlsForNewPages = Rnd.Bool(), - //GlobalNavigationSource = BuiltInStandardNavigationSources.PortalProvider, + GlobalNavigationSource = BuiltInStandardNavigationSources.PortalProvider, //GlobalNavigationShowSubsites = true, //GlobalNavigationShowPages = true, diff --git a/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs b/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs index 802f0c020..79c51b645 100644 --- a/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs +++ b/SPMeta2/SPMeta2.SSOM.Standard/ModelHandlers/WebNavigationSettingsModelHandler.cs @@ -146,16 +146,16 @@ private void DeployNavigationSettings(object modelHost, WebModelHost webModelHos } } } + } - if (navigationModel.AddNewPagesToNavigation.HasValue) - { - thisWebNavSettings.AddNewPagesToNavigation = navigationModel.AddNewPagesToNavigation.Value; - } + if (navigationModel.AddNewPagesToNavigation.HasValue) + { + thisWebNavSettings.AddNewPagesToNavigation = navigationModel.AddNewPagesToNavigation.Value; + } - if (navigationModel.CreateFriendlyUrlsForNewPages.HasValue) - { - thisWebNavSettings.CreateFriendlyUrlsForNewPages = navigationModel.CreateFriendlyUrlsForNewPages.Value; - } + if (navigationModel.CreateFriendlyUrlsForNewPages.HasValue) + { + thisWebNavSettings.CreateFriendlyUrlsForNewPages = navigationModel.CreateFriendlyUrlsForNewPages.Value; } if (navigationModel.DisplayShowHideRibbonAction.HasValue)

m5ncu==^?c-4129i1rb-I-pq} zcTMOTa{zhygDpGMi_stm7sr>PRd{Yxp6<%ofN!GsLaE%5+v1ca_O+uxgr(KdO&7 zj_qrZ=G%mA&51qs;6%<|HIcE`VDW~T3yZ(Jz3SOx2zWN9O1)omK`rO0ye1D70V_3lKH;DHx@l8iKhskkn`~j#( z^vyR?K9l{`8z~dXx!oH{TZ+$>{1ZBf?y}O~d@V7?w#E9)s=Y#3lFqi0J`{HpI6VAc zs0?l*ezH=XEe-9|H8TV0!M6I@ApGnW!?>Tp^!;*RfbkG@@6pE|~ zyzYH^mt_~dY?MW0DHr`T2Qr+ch;nHbsV9&VDKSR!XI&W1LhP7n_05Rfvs$N$}Q z+xjs55OQo;!iwQ%0A7IUz?bwZ@#Tm^4gzI|Z$_!W|1XGmCmPA%MCmUDt%5_WF|1vX ztLzp7Be)0l3P(!$#>+4nc+Jlt@AaY=VVn8u?zT!$sdC6AKem~Eh50k(v`|g-EC+w6 zajedXZii}E{!E&eAWgG0Cc|FZyd-{sWjw7I$7ih5kr)2pVpwlLeBO)BELh%6FUN7H z0!G}RpG6O!hM@2*EPfEhA68ZdeeKt2>utB~6|~JSMM4Sp1v=vFFo0G%=NioFx@%}Wc=es~U$H7ycw|pEh$4Wo0J5EHzgY3uf z-9RF`kV@s7p5tj3V*3GYK$`qs25IkUnwk5A7Kxv6l<^SCXbhlbjyO-z;+mJE;o(d1 zN9g!tX*zyt$&2ZDXviw%meBDU%#lw)xep6$e*)OT#VG<Zw+FX}v4Z0lQFWl5^qr0Z)AH@7mP4 zKhlJ!lmY)cE7H@dxE#F5&lZAO_-|xQSo0(J&^gDk65FEX>6$$t+69xCIu=x_Wwuxx zbQ>Q=llz;0M`Q@)3GE*xU1n)IzddK9%Y)mG=11BkmZyC2dB}=wlMYF`GwDQ#>)^xA z!mrrGHK0A-E%^iDGkV9M-QGwKCm zGtDO#F?gH*ULc_n-sXz|RXNiS^PcFP02Zp4j4)_!*hTL{NRY*q$dJai0q-U#>;>iH z{rzm+YaGjtK8UyGyFmwK?+8>ejVlOWPRKJbEWr;+I=Ri>{^VWV8E zluPvq?3=V34lBt6(fu51Sl@Z!S1}*OSb%+`SiGW~*-sxCDt9+FH@dD3x()m3X;k^y zW7tnoT8!lYya_@0Ei{iotDCn2p3$ze*~_O{YcI2UIA(0{p!2VbdCmK+C;rr`=vbQQ zI(<)9kIqYYe{omO1L!H{{%wDx?~=*PvyR)r*78b2})De>LF zIK9<;I7#m&^CQ#WpH83AWaI(ds^l+3J6RE7NOVqsK`5jj1^>Mk%=l#9jpH#~NJ!lo zO+~r?btvEm+a=r!1V(5(cSu`?!H$5Wn*P~@PQr~{ z%Y^Gh6~Hy_^w%L_Rq@)q4pIy3UZMehuvWkMO7`BSI4>l5FGYbx$rftVd zYdMYyQ1l73%5D)FyCu0=lBdNS&D&9=;(n=YNsQiisb$oqXkCUiu#f5}A5#nF8MfOI zAxj(gW0VGc0Z_UHGD`Tbs9Ccuna^2NG=s##A=2}CTUL=YvrMzT(1vkI{0WZ{eWy{zQI}JSx9{ZCO7`%^ywaNj*0%C9lEo^|TVcMp7DS z4@MpY06$ZYM9YMNFyc4a7i`05k`f)}l`VG!%}r$Sn*XS@OJ2Me<@}g**~V_(3IB>y zx96)A(~tSL=tTD+tdtA?7ap)tftY?N_)YXaavrAO;jiX9fc+pN4_B%x``~w8%>1k;gEZMMu+d1!qSfb=Xi%#2i z0n;SlPW;1kn>rIY-IwZ6PRIJ7gvN!RSJW+yE2QHn8(oMp|4YWZ%KlNADV_lAFR=6@ z6ZyuaKng@>0HS{9j=|gY1qt?-29I{hV$QS5tE}qDA~WHA%Bq4sI@STEDe@p3DAcSi zSZ(w~03f|8g4qHg&^drYUECk#ax7!EOCwIXPT|jPwaa=B3rsIE5YMy_p5&KK`(C6C z-w%EzyeDIAMv9*hN2&7Ohcxkm0*i~K3yPhHZrWgV9SaJSbF@0&&pIFBN=?(W>F3MR zlgtNwoBZtXUWAR?{n$H}7Cs4?qd(#w3MVn^k-9JtA0^LiNIoiSyB8zXPtnGB4bd+5 z0McL~vCS+b-1=<1NTvvM)P+Q;V<8c*mjC%Et7YM3N;}imswb+vZG$S#-Wku~rXfon zzYE^QfPb#wBP(URC~Q0{wE$wmlPF;qk0B%GOy= zd#tsFRKz;Kqui8ECyVjw^fw=5RVvA^5bvhr*-nnppK(mBcAD?SP+Q26+d!F6{vyZv zHRLfsNix=ZdRE3KXi$Eb%UOb~gHmC6hH?J*GPuvrQC~__#Y&m5tKi;){l*>@++W1u z>>2qLTHJ~sJ%q*`hF~v(d#NaLyIHRxm#m3D3d-(Lu^pOOi0wfvwi7PT$m)cr`EHD; zQh(X)FK3)nP6S|fi)kR6oQuY5XFD>ArL)U!w>t)hi&Z?EKVJnjbAgHT+6a+XnY#WQ zS(i**{d8Z!9-~QJEdO&AiqZHDJXF%>%(tSX@3iHgaz1m)%YbKCidLpuDIAsy6;jz|xNl<{PJcsY90WnlCquM)4+c%iwaIOIl7~QPCwRG@9oh>MVtK zJJz#M|1ZhYT9W2zh^E`6{!uT2DDB;_$3afY%wtntw3nH=3eZLIdVI=Cws>T9p>YMk z^hFHyb!ce%(X5e0H(2Y=ek^`1Fc^MqThtBxH|fgwgo3^x@d?G0p2D2058Ap$DMv(k z;`nNmgF7~G16iNb+zz1on@=I=4-*aUzH3qJ*xBx0J~92i51}GuLyRjn{s^ryTvKr2 zH?Kq1l9rQ8mDBhrQYs(RemU0ao>__iw`K2@<-+x7H>B&qVbm(*w^0hb#@>m*}R6`vqIR97i zFJ#z5o$21SLfFR`_CRO4AFUA9b0N}wuQT0QD}-%j*n^$v{$Pc$eHS6!WTvAX?_DA6 zvkU`&OSji~;_|Q&hD~>-+qy#70>hpOdR~ zd8sgVS%aOI3S;*)*ior4c29#Hl?r3`G}uw8Fm^@b(#|k;MPpxQ7`vizYiAg{qVb{5 zFm^@b3rUzT03nMF*z>zVKBf2DpVIN|PwDgar*wDwlg*FXpF)`JPoYVEl4t3@1^JU5 z_JBe4TEcbgXeSuZSYSS|p3vROQCoCY@f;kl6>lJ=Bzg2h@?g^h4wh4EMaLRuW%x-m z?PwzafkTPr55c5i*(sX7AM>4ZfZ5_xn4+@*MRPp?PwPY4JUQhzEZ$>W2e<$%%WCV6 z7#Lm2`NXJxB)&ZtN&HnY4DB_tin37MJ%9FIJ zaU_kkX@aql$R{kPEmwX9^E_6C!!a)0)P9x5i5l7!&9vyE+iBA@$pWHRqs^)P<@7pU z;$MUKWF1d9CSts|l6b7|en7cK&8FJn9dcx68w?GvkK2%ji-FNwQE$gsIf?aVD1%D; z+Yk>q>~uU-5anBS78|x_;3b3_-)ojhNX?p%(~|KhWgJGLj<(0V#nkb3#E;>;o+Rdn zByPTw>_BWF*rs-WNwPmdGT|c$Erja~J*QS}X7x5QvK$&@u_t?qq5Eca%q-jx9*2nDdSc0pM zYV$VOL7R`}AE(~`^aO-AF8Q*3t(N!tV*s4U_04U_f4#10STujOGY}rfV)0J?zXMN& zg>7~WFyy@H|Bbhy_{Q-LC=0q**p?4W)Zpec zvh7&KlPfw-6bx0w2!h56je-A&NtH{{Xj^P!4xdiVeZbbjMwSqc0$#Y^W~S!kL=1aI z{0Kg-@~HNB(z8;fyUiCpO7UDfzXk;hURnY}i*30pdNx{S%X_NVdXO~4|IPSczXX6X z#{!`pH6M11IH)$apdl+nRF+3H=aQt&R}!71vkOoGe+GYN=u_*Pz_BA%Df_KhQuAG7 zqSv6Q=5>zn_X}EOUPK$UNb%=Odbk+hSpULj*uo|hfrE#q+O3oE=Dl%j%x;|`#WKdb z^Pt^2l`nRS-}oGnm+GA4l%rw8EPv)7q%PmO&j#$E`(YQM>M0^S>>^O#bE$WD0CVeW zai$HvUg^bZ4BoHZMVxjS+R3Be;ws9Wxz~jy9F$Ht_nqUPe5LjX+>g2SCqst==V3fb z1=Ih)J>+9UHyacdp-AfE3;$QIz%g?CMN}>*F5-^{F3#K|Ns8^7rvKa*pwD_UAP>jT zH=B4-DbA=a@}Mf}SQOV&*q4S~XrG2zBazRfLIMd7gObQ^ovEBXG^4)WYbs{`nXD=KaR?2-<*n4K-u?dcPdQm4d zgsd}&>!gn!Ek2Ms)%{^E=t}~nPL>g%&H&D!SZ8n0cZhu%f{A z-eZT!hjdsO9aaXa`W0+^E^3FBgMReE8CS!;)DudY$w*JZa|ub}L|z}`;@~NqL_``zue%6$f*IU#G`N*M?GV5_ zY}%xP)2~es*KSjwBRg*&ct;S`95Ocy^;4qXk)em)ro_eGwEK+XeqVA8m5qh&p# z2_49Mm-VxfYklYVqV#Xc&)~O=SB;l% z4p@8mY2YL`$@ghXzE78L81(dBYf1UZBc#-kGsH)U7J}r57C@b@E?~ER41KkuZ;<0nwi5V zF;RGu{5@HaNgTI;3-T*zqcbOuZQ#*_cwpjUeeq_ez?=v@n3FU@K87DbX86?&XIN-Q zD>2bZU{#ZQf`L(7XCavAD2uX#YgNI0zgEimEE40#sd9zkw0%K%2w4d}tz^cDO;OIQV3qBRMkO^{Y|=fTm(lj!lJ z`JEN?_$rf`MiH=jzIyxP$@G6u8WPs(c_KgDlu)VCk**s#*7>tr96`8m$PQ0n!s>#I zsMb>us`Gbv83vKamXNCCXSXIy9wCp)G{!=jY)zG?Xn9O)N1W|RI-P47)}m1yKjU%v zm4#Vmsw`Z{NA2qHOcqs}vRfQ}bNX3X_&t1RnT`lNA}a_%M|XjeF^Wi)AoG$D8!ES_ zB!LI);kUjDX3tXQmRkS(0>_D#=gR%%1P4+RM@aN}a=0hs4FRmTx>KKUXtP5ALEkgn zZZXm28Wdh6a8DcfH=F0Yd2Te%r+0>H5#d?P+nPaXV}o|J8lJ)Lkrq*c@y16zYga28 z9-f0(g*_#k)vBiChIyWEo}0|`srnp#BU-Aj+A6I)JY5TA-(b&Ae9lw~nS6Z%tcm;F z>@D7G7Kau@v=KYv?##@0;OGaNiEs+h?M{DLX^nfI{6P$7hofIl)W-?>U}qC{uFt`- zd5?8KcOZqru6(NY+n7 zj`Y6vdumNHL__2pm#~Y(30;|axE`a5A1SCeH!jrR|9!2`e^MiC+G0J7#fg~ zA@o!B#u=L;jm_aLuHa=4__dyc6n%ZTw*I~l$=aFw?AAF*S(#FyNWX?ZiIz`h1|jO5 zVnXIHk4=p{@&QOClbO{B!DSUJV|WLUF_~F|5N9o9&fYR+Jw}xKAY;ijCP7~i zY=xLcZ%l9o++XiEH^|`jB#IP}xs3DVNxH#?x96E7cxI-Lht%3T0S_hBi6Mxd!TjJh zIA{&p+2-MM8Ha69YN5UX2B}v4&9^kV)uvQl$m9;lr2#P3Iago9%IvWLUb3r9rIV8x0hvpx~*bWAO?uv}Y zHn!=)8GQr6lQL&Uk#qWO=r?#YnSm2E9%t6j84NU{PFloTs@clHq?Vv}?b(OWMU|2A zx{>nQk@A|6^6HWDs`6lvDb=54x6Ve^+?&cn!Jt<;5DeXN_1x8nTjf>bk5$2HZ!rE? z9jx(I#UE>ewchIZV{Nd`TN8h*lT%QEH~p5NS_uXZ2Gwe?3V#QK)%d$AScAW-gSGg( zCRlf{eg1@DLgCp(i z0i=!LA}l6HT=(5VlbKChuwp>v{R9);39qXC;RJ?WT=%!k%|-duXZ;A0eSdkNzg+1r zSA*Umv&0Ar!`6)$6S((DWb0`iWNSsnE)V0hSw0xf#^7k zh6DGO@`n1LS$AwGA7g^}2#z@ztPeKKemxkj1RJpMrkswYM_giI<}cEOd@P!?qc*II z(GvW0XAk6V3A(3oU<@ziZv8Gzn(vZ=Rh;=!&|T{{z+>GyX?R6&Z1w<=gTsXI6mx0{ zHE*u<%DSUGf(A_nBe}}$T)5-bE-plJwcai8JN?G73}ULds#MqQwcZ)+f4qDK`PL%# zjX1Go=G*oRD_}7-5}hH5W?6c;r1TYXrmDItF6AHWRY9+^<{CWX${Pxj`*0g{Nk5aFE!8=lRqBk)N{eJQaiSGYO5u+VN><47GPaoAH|lWaEB=9#8}il5_pf;Hhy+6bALTFD=|( zUO2qQu|57`IeycCTwFM=N`XJFdE7b#zx*tG2JS5J%EApn0kR$gV_ce{C_m_tLB<@L z0!UN2?Buj`Mv!gya*%6xGpEvYPagrikRwf9fv3U_TEhobbjA&%EaWqtG1A z=X|8VpE^#Q!@H$tBNUem;yM6N)4;cC7PlT!Cx>K+fRshL=l~^?1|{<-OIX-;UL+66MRrWk%Jb}=T;(E>;@ zo|i6Q`ny;_k`dW91hDb~*;7zn5MG56Wyvo?42(aALeMi_yzu8~|LKRdWa|H7(1y`Q zYx)5L)-4d0^Yuy7JOEbC+ASs@fxzz%!N)VaK@Q-$l>rKUaHQi)tF`XwPge8wW0Le# zQcFq=K|e0eX=}93FKR7St#h-fbC7kKsvu34G4GiA;TP4^JZ}hJqx{7VB+YzSOH!E7 zgdylFi0tYuxFGJa3)6gu1bqqqWr;ZbFq{>w3JP05)bL^bp@fT}AT+=yyrdDras&hj-;og<4Ga>i}o00$w&~|K|5mWDFs=UFV zbmtpT>e(;BfUo2?jgwiU{$i!Di8_t!5U!U2D`RO;_*>SnwO#&BT$cp?`q%gVdOQ68 zYa(n+z*!_hFnW29L2-J*#tj3d!SDhZ{0zc)p5q0{?dfqEUnEKD(WD$u3U0jDo{|dT z`LE)KK0@?sF{q5?B^z^p@RLuu~P5oq&1RIiA5*BpN>y1=&kH`zCdT>EPZTl6& zj{p->4`3O3mU2bx?!b>T)+rKQhSxt1M674~u$fZp$K6gQK>Hc93u1Jc-ZS$N$YArP zVEV@}LO4oajqA=7DvW|`jHy)1rjIObMxp-9m=cxwgV3?M_TM;;y*!!TcpXX1%g4|S znyflcf6W}s@CPj8E=DJYoItu9Ju|lg#`PMGECOSkYgs2ue@O|(p5b->Jyn4eatImnqTjb$+@(-7 zZ4pKY)~Jkdfr>+DbA?fcPgo*xOwSm4h1&N*#(|XflfpRz64)=e; zmKVo!*o9yqu1HUT`BjzB2WC_9`&B?r7I@XBL-xDH;0P1PEpRk3k@2(e{MZ%>|9_TH zr$|V{?D?ZMUx%f$2$sbGiz`S;I}^B{)BR15^Z(6autpFn?=dg)aA$*+L6;%$=^pbk z&;2<3@mA00p;;xpLmuM8tDOF3tVUv=RWHOik^Q)oo*!ols&kM*bjwl1509U;7|{(v zb!)yr3b%*5FyJ+gyjXj04D`?5!EJUj4tNO_V>jA^-WJi;El?MxW0l)(xkSd|K4;zz z$7MKDTM91jgK43^sftXrcmDK4IG%}xH{x>enscY>P*uY^^AKjY2hldQc~GEYzIh7- zhYCEo+)}Fdk}c(MCKMkYPQ)C^P2;qiUld#YGxTQIA4FIJk}Od(X#c z6)T_-JnQG_G9KR6531@^p~Z!U6_`0t1|rvGn-RS%seQzTuaM5+PC^LTw3SS z@1-!L?a|t{XITR$JfBX2dIgTQEgQEEmEQA7IyV!3dq_47hzGPues=UQ0`2G_jS?KS z%lYlj3AgiqOLiGqUpwqs2DX%+At$6Yn&_31y%g+mJX=z#4x(*WNgQD3>KW3d0&m-v zj)9S}rL!#>U-4(R7{2d3*uM2Yg4+QoS6qkiJmry1&i_`Y- zekkt|PS)Upj33&qXR?ClA_v?Ge6oV`-dVpgC?3YL;Q&r|mvHg4c-Ds-JE&`M@0_`K z0W(JU&$P@#y|f8r)HOx%-ne%bW>v7w49H&W-o;D+CVL8L9I2LT{G4p8oaFDUn=rQ@_MudC zi(sKeG-F*N4{(e;;+ii-eJP(lj=0C-=5Lx*3cB>7Psc-{$ar6qnTYt%8)W++@y!sQgPS}l$v#tHq zDZ|?{H&D~{W*bs(wwbCI4u)8fN=n>YCGdjH+4pGOp^Y|D%mRA10q%Gj;0S>S(p=-U z2o&EFaQqBY%*MOg-?$|)%z^PQ>_B3>#lO+_s_^o58s>5M7?qGJ6wb~6!pUicRu54> zfK-|BE9{n3a{>$j`_cvMnH$_Qhdb13l|6IK7q)wrsH}<%Qr}AB!DV^u7Ds9G1#y=8 z38sp5tRkb<&DtTUvLM{lavhOLQ>aH8R05`2hWHMOm7oy4n@72EE9K3*SI_Gc(qufN zuxzL`SW5G+FjJ0{`xZ#rK_7M5(&lh5#5o0z7O-I-U8D5i`pSNITlyDCUtYL^>C3A3 zsjwdL9)(0=>Rk>%X}yillhS&%$Af@laPyOOz<(GI$^hKt;S;ijh<9W7%QHV`;F%78 z9lqaz|C1PtaX9%_n>WF+(u+aSsD$Ck*=nb<$2Af3E$}v!T}sCCDYxR&Zm}(6=jyXo zuJ!McPQ}>>vAdS&^y{a90+A@NEGOF3t-?0&0R1*;wI8Lc{tNUJeY`*-W2l&RAL%Y; z#YIY14;sVhl7->HB*c~4wp?y)_2r{8yr- zc^h{azX~r4&yz%y7k&bI>6N;eG5Q%|YkjAE01()%Bm|b;P~piUjT`Sng*UxSEUjYLmo5|NtYMg=(Wl@cN?bi?CHC5&7PwqVF zVWNHk_+Sp^r|<}mZ9f45M@+$DX_(QF} zq$LQrF#H(shUU*PgTmS)`YY5N_L5t`+8jpYrU73lLs$;Kgu->f2et$*@kNA|i&e}P ztf&(G7^RET-sZh1Cb|}X$W$~#<5bkLVUyUXm4q)52KpNi~ zJ115j#U%#@N4@~z__zjA-Ud_ovvK~aor_=d^_f%^jubxJcnq=;xsG;#JWsX@&8#|0 z5LuvGgCBwTQZAZ2<;H1WN&WrS;8Ghu@=)@izBcZDjAk1u;83z#9BIvm&|%4_)xcaM-3-u;ZH%8+Qsn?*8rVm#b;@ccE)XjXo~PxTfxi;7J^?+6d8&l;5${{l0Ed(BM?88lQ8nbAkf0=I~e&Gcu87Sr>Qi_mQ@`X(E zt4#4it$PK3Ad=VB1X54BZApopa7#^uJJpt!RM8nG1g3M~U<|vER;@TeZ&-Q&@CiT; zWO`R@XUm{%^=Sp2oW`Gx_<|kYhISM^Kij;Cq;Uc;x6ziu1}DAj0XQZbhv$aX{Ns3ntzO zeCOM~Tf|3Ycc#+qb^G1f@F21(O%&R`TO>`TJELj3bKxOL#d6yA%k*`L1Q}UQvaIf0 zcRqYeQeM%bPJutOc772lD_*0&gdgt0OZmtwyqFI-f4p9vnS}*;dJ8wm(_gqzp4o+$ z$uqa`az0xuu(LVcx#k%Op3v@M+Xw8@gn;#J39JRtJqWBO9UA0m%cNc1h48S!LCJc# zwCXo+muK4Ln|5VQyK<&od2LsBW}&sTecfIqMsag_~6z_en(6BJH#5|)ENn1^Zol1f;<0%9TbBEaQ4Hx{w)fBQT3MmJV1xhnGa?O5mZI@JSt0;uQ@Gfl2a3Umc^tZ<#p7|GlI? z>gS}RaECf#nh&5iOSznoPA+;FU%A#n5)`G{<|FvCz)wi8!gRHc@eg~=waBe}C^Zj+ zzn#81nIAgNhGU|&7ha9Z(eCuT#GvTk0oh97U)1ol&jCsQr8s@te}#m90pa0$#ft~W z=CXXRkITc_Mt*kqK_F?#{3lFO=eqV9iSs+wdpEHKI)`&TcNXv19gHtnh%7)qJI;|m z%e3#Y>vosdZS*ORRTcG|i9IcNfAnpjITL+H{(cvK!w;MOu@haUfoGjQ%{gvXq>6$5 z1-=XZjwZuRlNN7gD$?RoKONytP|3m@q!7yK2@N=vCUoTa@b3g9oDs@c4`B^FD140R zMTWtt-B~&wqwWanAZkiz&PVM!pJxYBl`|cI1I5OdScCdvOV=P+UOn+CtZ`35F9!`=wOLE`&MAoKk~=HmbK*(hf!pyqYZZQxSF;MBD9x_XX#+#AAPlN`YLwzfpjOWeM zt^TK4rC*@Cj)p4YV<>KCi$GUrdG+N#vzc0{6MYRzSu^f8nY2!=gmmG@k*vPKspV&} zL}ue4qW7C%=yeIRW(S97wD5(5FG+l@B;{-3THaJf{y^=O?g=VfgJP`Zc>4u9S@c4Y zG5cT)r`*g$U!Vf3=KnDUzHQpI+Re;y>kqfG`&xz=9eA@3$0dMIrt%+;`l+jPqPJt{ z6*uqQh!lsks8;B!z3!EM{x&*y$s8=kQnzXOdl?jBhEt3z2Mes78bRSTv=bNAyO&9%w2q!7K7<4xY2kSRcc*HpDiySaKg;ZigrWp*)k z5|T2k`5Y9x@Jzg!y&q_Ub?+yO6buit{j&eFphfU644ne>znCQOWwOxtIs5n(peW4l zOd=K6P_38W1Dy$}7$|J3xyYeU8` z?1T7ES^-UTk%y9BzfE``u`2c|<9_2()LhRro{I-=9N<=E!|%sj(`X_j#8y|n;LF|s zXxXvis#VF6iTa@c$K}4S`V07I+K3x|&0VO@!XKgvC_ny)kIcd!7+!L>i{kG**}_Tt+g$*Y*)h=tA(DA%QQ z5cQcro9yVqiL;dN%Vrz=7t7kVYK@$389%(wu+G2DTEjjfzOc#8<|8J#r7r_)eCh*iMplX?P#U#GBa>x=vNJjVjvU_D*mWorH214ltDoSkHjl z*&`@Ov-2+yF~9$s+NPbIf$JDJwR1;j=vsz`OGDQ%ba-j#YK9Ij4PC|1-ld@!VAl*S z4a7LRW`{Jv+eeCk;ik4x8`y4-w{K${&6ns9x?XP1)aH8o#^PwcL?2%o9Wr_th4V!= zt-_12Q5Agx_Z~%;Vlzm~A>Vy5`ei-)MFjDMw-CSj`quXA+uE;(<&|@pD`RV{w{a@R z)@iRu?$+M-Ic$854Y_;ygbHH-QVy;N!QW;V2tB{)v!E4s-+P&A+TF`1c4^PYKrQ8> zr{R%{o-Ti%fxozv7=N3$p^5oTi;|K1YGY4wbvF$zbNXgsX%^jpWO#7HYiM2bgG^t4 zj#DeoVgRHgn|~uwPi}l1<4mVXci)Fum;J zz;;?3&Ptr9lWm6xqBe2AF@4%js(z$@f0CVT;#1A;0j#|1;(iW56b(aZ0G7NwGm;Jc&j z_F6^e5Ka>^XD#N?N@d_{NQBkYQ8x!3HR)Z;w{61@-vTid?CC|SrTU3E)fiKslXu3t!N(A3huln@9rU7i;0t%k0!`hA2#S8wgZe~vqTZ&EWDsZcCR zIO*pro=o?iNPW$IOpE2rJ#R;HLnxAx(>|uox1wrarhh+ri@YDi-{w;}4Luuw%9$h2 zvm3Wu1Cj8T=vsVkv(;k7e8S0FyLt)>m}&n7MPx;2$VQ)Fafevkd$qWAjVEDt(s{9z zyB-4PLC#jLk?u3>v$T9KQX%j~%%tUehSMKkTD}KOStD({N<%53zzB?nH6o*+(UelK zy~U89U~EM%guntv2%4z5A8-PQHR$W#LwOrfo=go;d5~|&zDcoO&B_2M`1?)-A&(_$ zv#gT%*Ny~PA@Ndf4C2NV#`@i!Zu+B4?k&^9@P-o;*VqWv-{Y?L0~mV0!+ObIE&&MC zF?HUe2OctsO-D9fXQSu=G>3>QQmRw{t3HKis_$q+CO{ApwQ)SL5wrIw3oi}D7_T-(ebCP+(+}MI}}>u1dD4x zF0|Vs0BA+#cFWOQe=ub{2w@o1y!&ZsVtu}u+}^%G?VD8%2I&M~sM5K@2q z!EtZ4Pz<~s=dg-w2FGsJ^Z?deCd{>VAZ)A+KaXVB&s+iijnzWjsC&>J&ycdd6M$^Q zch&3atR-muD_?xXFT-umQE=N1cP;MQj4y%h^c7$`b{TF~Q026dsO65!ai*;n_mtqOZn*rsqAOrLi7;nvTMmZK2Az z-}GL@OEK(l-$_g}nqxexN$a=`l~joZQuGg~6teLnE>xG8)p3Mdki4lvb{G9Oq$6bx z+4?+K*aT7wZ-Ngd2)K_V(K$F3P~jPu!v&eyVzmUdf)kd|2hgZ0PrL{G!-&YR#syEz zD^Enh!ZQycUgZl~>$c-_r@jWLv!h=n)uo^jPUzvZX7uYMIt7jI1inH8gWvAo1vEnc zT_=zy?Y544W6YDDXkGPz`2DBWaYHeG`m%M^nU9}8p`9H+>IbRE;93BjTKEKZjpesm zPBf3)u{HLVd?Ob`ItNmI(^!<|IQEVx7uHaFt zNDy9SzudJ*ivryJlZ0b8V*v5c;=h+8@jW1~>yZ{S0R)m{17p+|<$4Jxw9`8my@A`_ zSfM*Oe7Dd4V1+2U_ab%!FwI_%JA6NnIR;MXzDky%g*o zb!?8Lw@Xuz1Da3*HEMreVx2TR$e^b z0MR>Hc@^O%6MJTcMu&Fhsxi5)n;Y6nU4ZN#mNPkc*o0D5HV|PvGB~$iBRoX7blqaM zt9ElHk<}bDr(DF9!KS}~`t_Uy{0V_yE;#~`QwY(K?b8o=KXv*6_B1%;AMxA+{7h+0 z(U3_JiiJgH?nf0&5i_gZ{PDIG4RtQVLCF7@UBMnY8g$O~y~5=E4(` z@scN|)>t$2W%|56KYTM`Xt9bcs4>XUn@{t5>~IXd{6?OKV5Aq0peu|RC_te4`$X1C z^y`w)oY2G#IXrv7dFBGN=>!>DEXb^2R~aFK>3B9nRBJBo1;x@yFF=$b;9<=3LIxd_S{Xpu%7-^M2U8tAMN>8AM z0WepTW}%0*uCDX2ua5Qa6p(j!tnXWG)lOLnR>z|4>PZQ1LL)?7g5_U+ zFDoPe5F9y*DI6>IFxVjv;WiSLBkgKYoNuZ{*X&3A@zBwj!7Pj(PyTu=MZ&TpdI2)R zJR%krQ?{#)^%TH#@(M83L$oV_2%AmpGXqZ!@TA3Zvo=z>*Obn2u>oaoV%crNgaZ|x zWxx`QX8`0#!*}qa@{26)kS8&^ea$27FTy5dzU>5S91Gb~v!FKe*& zIOq&->yrsv1kuu5eg|BzkMel(2iufNI2q$I9quOK)Kh&9X-@?XRgah%%Q|}DUzZ(@ z5fPYL^YG02awG$-%F;m*sCa6xEi(1ZnCgBWVk^FS zfH8pMZ~3;S5CsVP_%PNG8P&T$$$&KkuDV6Sy8!{?Pi;Uofh6tKol+e5g+t#ahlLn()?0=joDIQ%i#|ossS@tGP-{8$Z)bOT5;o`zrAlz zw2qryP6MRleW(+6qd|UQpE^Qsdeb7*j;SDwhx}f`fIXDQ0Uh=>9uIUNZY)Y{>m=*A zZOh@KJ|LO%oNx*)@3?DjDPImxK#GJfI~Lc=xb7|1)9C;*W3sMjeKE(^lOc1mslK*8 zX=)L=Z?bxW=FdL*I4fHxKXIitI6S{-ok=*_;~O#}YxGk1E;N3Wa9WKGOQ2f7#!)C7 zzUXTPCz?ffWKC|FZgHM#BS4jTb?4)$537>vzY%lx$EYuYg-}x6_wXLqrgF(LUi)qU z3|{-Ec#zkwfqX*$S7!-rqu25#QqL`$Q_2of4yXRNPbxnPp&|ZrAA|q-U4Ma*2Je70 z2yvQb4t}&o{;s9TLzX5F^{pn=dyooSFk2uoHV>B=v)ROa05O=7C=WM3A~DCMII^2)1RY}%i~9r_%|?KvPTbL@>o4n4gAa?j-_R~{k~jZ zKHR}d3sf@muv#3tT|&FPadkmi&&Y*Cizwq;t^ zeeLyF+b-?X0J#i0ID-FayR-o0$ z++H<4RTlExoXq=6%S+A*;vAqRDo^F)&Q5>{-H0CN!f8Mplnc*6DS~O9F3eZMO)T}X z&f%SzZ9%Es)z$C=PI;v60*Bs zpygO~<&59i!mpMdg*!4>Xw0H-{k9>S(bn)9%J%WNj2@5ccIAAW2T4du`Ww_))OR-< z`uNiGrq`j!<)(Lf-c;6QI8%yq+-eJVp;dcM{H|?V`j>5Z1p=3}p*y3;+y2KJ5$mxA z24c7`vT9ey?@OWAZ=N?DHc>dsEJL`-L(FvnG50RYF5iEymgS2h6lubDj zWiJb-witRn-?|L#-ORa5+d&vHeW5c9mBZW;r(#7e9i|ujvaiqqfE*7Y`v`Xg~xQg`aTe%Y7 zk5ouOqvQF&pW8oi*6N$UUb}G1Okbt(K@7OVK_8|Jxgr&>gN=JMY!$P_q2Yy?$kZr7 z-QZ(FL-g#yO`|9bQ=4j_+?-hB;9QfO1iBsyrv31^j2j{6j4o@3XlJnGz93;q;>e-jATnpNCBYVB30b@UH+ydaCRbIh4WB-z>eSrH>8h^k?sU=}$Z*nC zm5_uX14BRo83h?k7%qqiGRVPG9hJ1*M#ULWR74}{HC}O^XYW-(MVwF^aUzO}h;a2f z&-%abTKf!DT?y#teV+gSpRb;z&pCVEYp=cb+H0-7b|ij-nYG@5Iq2or{n)F(A2hP6 zSD@AH@IJr`r@mt8NqF?V2&g0hVk2#Umx0ru8X27(@Emjo5~e)|9SIJOKh8PmSgkGi zpI#rMaEjWa^^vki7!zAZ2~TCO=BB`ry`=hU*;6TtFx{MfL5R-u z*X!0i**f>atdqaw%)uE#NxI{rGY3f==(YTqPeZxB6s%VOcOD__eiX`S(St!UC2-C& zvsdbF3^p4boJ zK?5Q@VhbW1h|32zGqBLv2G+9DyikpY^8T4^ex9MGMbYOmrtLH%suuH|&#`>C85L6^ zJYriS9vcY0$b!qAo26h}F&tYJ+5Yh;9VP*EWRVu0Kac2`7M@4=SV!M@GV&StpT@^1 z{Az?p_{jY~_Q}>G6FMmbE-^OBbp8`fD>=E~7Cenr(F@Q_@mWDVD%=uzcB`3~+GD?4 z&xj4Z`lJH4u&ES&4DB^shse8%d8cqaJlyi0m(2QK>49JlZaq&odGHUL=U-e^663mK zEm_(R*KOIr{ZC5P=Wip>^xPErirdiVW6;jT_Ctud+J103Q3DYAdyBt}6^MLOZMsSC znvrj@2SAy{Y96e5mvxRYa4=#`+JhL~CiE?kOBnMh*n@lxurt-syhvqjm4cduGzv!F z3N%kygNzlXMe&&>+V`4(NXuwysztTNquwN8X=4ycuKIP6@?lGFEJE_2si{8c9!acR zOs{AW(yv#>B1B4#O{TUq)GS0o#VW!8uDcTKxw=8Ow@Szhscpz<*3#)n_quXm|KlUw z>oo)Wzw6=aUa1ej&QE?3t%Sr&j$(m<^Unn;DgTvDr*t!8$Y*al7)P1%GWB#E_tY(P z|5(nMKG{61!eE;z7^4@g8KK7}kqsaCF~nU5;UYhM5p7A3whm$CjhEb$XV+sxVy zU61;c9oZ%eEk2d^Ff2#(38j#%>)<+YZGhXj{-)*`;P0EKzq4)_3(yF7 z+U$@sWa~yX(;Pxz946b;436?s;&Xi}q0}wzdP(Qk?mF>`xLA3R~r9 zE#$Ft)<;mzqcA>$+1jatZtYZOFnbETA=6nX&khQFRb)SFlQ*$@`K3%QkBFOc2$#5< z3hiOXwZSfV@L2>WEssMh;6;1?Tz=3!1?*7XznAg_H%T-UCE^)6W`u_X8OA)7hK6d6 z$-No9l~H9P{aAzNyJ06h=w>F)$JUXaP|+Fp6e6VbW-y1|xi(KzQqmypq8&+A>|@eA zN}|*5%cr2w_QF9BTq>+lmB*^w1}hWx1$($ZV#yGlqRU-TFAp;|){m~IeZa>4VV^*J z;JO8RB|kelH<|I{xMCa!|F9COF!?3IkK^3)n`okK%RxZj=g_+0Gl3N%Uf%dAB%7b4 zoDbg-C29Hd<5#51gMOohVw*T%N@NpF!TcbQ7R`31CN#S zFGc?=*}%c0UaK_<>R^pBF!59;vZ$=$bC|s^su~^Y=KG>^sFx6&J#i6Fn8c-dLJd`T zt_LkU{-NQSMY8#w?}Fzs^W(eWnG4sWH+~Jm)t09p!O>WOgTwIW{}kGlE@)3w{STth zoPP#vt0M@16cCnEOECD5p^ZlaOiPAC0g+-2hwMZinT!Q!+)u%}%^wlcnona~PS_j# zjzE7^-EnAy8N}2T22%bMK1xvxai(k+T?6epQ7U#^)wwhTSJ`cejw7{|#lbtJ> zFJa!f;>!%_eL$@OF>X<2%nBZd)lXKAIq6u*x+mHp|8l`D;!4{0n$d&56_ghu<+tIX zG%KCI^8?mH_Zb>ju;|L;M1fUGS1x6!?vCa3sLdCx-aoe(TJtxetGVjn&|qqt2Qi6p z!eO-Lhht?bH^GElijiKSn)ivrR{vt3igebW&j)0hyVdD3-m381@KTJjmbZBQ8KyR_ zgJ2%_R$aAV6!%~SSO+%IS_{Ry9V$#y6*Lbtg>GV@C2epO768<+(tj>N1N#qLgd|zh zYW>BVF93UHdONuJ4DxD9D6|Ec%FW0|fOXJDfQ$9|f3=MOL9urm0e?H{jQ0&T?a{51(avtiL0zqm?BS)=(DZTV zVc6t;_V79wrpHlUs{Cn{N&A9*2h0&~irN3s)Raad`N4VHpf69FQ8hw~Q z6>U1DZ<~TAvnot?95*PhQdQ6{o zCH5L@6_jJCHto}1qpOBqT3y2^z-H;~m^Pr*@4!RpaUVO3r=zQecEofcZHFt+QjTicG60qssUXaV;xtoNNq}Q6MCtJa?mB%{xxik@?y#UtL9&;!Lnz=ax6ck zqvTSab3Y&e)q`C6^IzyTwEuhr>%gMUevAQ`*^lEPd+3!>ev{}RBr>lD<2B{D>=Vo) ze0-uelycW19m-1cdJ@i}`h~MxIg5P=>fXxvTA#gz&6;5qZ5+G44jt65Zl`EPaf)Va zDLy~72rUV?9@(~SBVJ_uT_{7% zcVXI!cX7cugpJlN`0WiIEJJ6)JNO{kgg$ZIefH#6P`{Ed|5Zp&b=s>iAtDi^LG1&H z+R}D`Q4dU1ua>h8KiaCe5H+L7_(#5Qv-vXZvnSt=07ra?N~O_++gB~b&$UrGj`TAs z?qRi&`Hze8`>#V+Cni@9+xq51!ubu7f#pgDwD^ZzZj7G^-RL)u*GKakxFbK?-;H)C zjYxPMp#_@>@cuq#C7z&?I+jLdY26zU-iAfGB-(@zvv~1pJfTG~-85;K!GDu9qi;OR zNXJKgby_*6^L^&4iC&BLm1hwLwdzBV4K@&4fwPVEJg5--paMLj@1|1oY~mmLR59vjNqVM1HF{xZFDEtbRDyN8j~U zwB4-R#0}crot>=P5lvTp7pcFTb>@p`xr825Uk#f_PaVOC1FaHWRX!T+G(%E%HMeSK}(Gps)t zgC{PmOP|I2l#a!qwc^13>rAXWnqi%~&b*sV0}*_$Hc@a9#-H*t{x#o&sOA#mUy~JK zjadNS$_&n#tk`%-6C{5;rzR>=u02ugDnDrlyJyxX>5e0g&UDUXdbJUgL@$1aymb*V4b)Xuk0gj6`*vt&XxH~oWqE-NXSZO z_&MT#91Ut$agfKSoVRljviqMv7*E16#l%8QvI^hK8GVo1IXHWdEAEt{jHR)%+LdN- zGinop(d;hp?tkF|B{#L=NImRteu^-RQjy}->n<7J+S$Vo=*se6l`FbDcqk_9lP~r( z`C{**FP1zhMkvTUGG?ju#3( z3C+}iX>LU$cmXUy9=aMdw=D86gmzl8z*hw)d>VQ&K- z8Xkse|5+Y}#rEh#vmmxNc#g-FmHyT@a4xW_CNS-hn9dn|vniApc38 z^?e+wjL*kBp7mo0EZPsrvq}-JDFSpVu|cd$n|E^I6Mm+@Ki(RM)a(~Djr!v~kF+ZC z$4kE=#viXFLSH#n@g8u7p?&@F-o{R`J>6;h`Qv37QFwaqrs3+3HxmnP?U^sK&P-=T z1$@teASo+k%|K7&7sp!<5uZuNr|$VMGiDC3|Ns@xFpO>ceFw)fLr|HwyYEl#XvY%;720Qs%L9WeCK7#&XNosA^{;Bj| z?oD6MbPi2rU_Ty%^m^CmTiRr4Y4kD4Eza5s-bdAVq|_|oW5j&$2rNuSx2c8eB^Y`$ z*!5iJub9dPl59_({_U4Efa`g@=11d=%S-A>5`lGmE+tCSS(8e^dR%Bg^kWq5^uP0`zk3%&y>OdJlvVfF}}#61m+FvQYXkM&W%m1gP}2$~kr1HXpm6`!tZXw*x z`i1!doaJC`WpV_^7a&BfT6YKiWb2){7ZA1+HUEcb6tV5v3V;aXndX8VoOSP-=I3s) z8bjo|2aN5CEjH|rm%Iyob_koVvO8Tw>Y$7fq&vUveve49F4-pMl9ZuwaB2mM3eFL+ z#c-#GS=zxYO<_o!lJujgD(g(NDXLQHq?||FR!Ai*G2y}}A;%;xZ(=x=Zjk9Fm@XQ- zBwguYrmH{9bc<5y%B;60?d$FD#CR%QgXs?MZQq4577Cc@1xO+%0)qXM@-py>f;$Q$ zJcIDt;MpHRBUvuGl`IVl_T+d)?>e&tdw{1cFoI9NXsDLqSd(sxIko&FEk>?`7-m%G8 zIosbYEJT}LI%l+e+dNkz40K?zhUa!^IOxHDqjk(+h(XjUJ?}vnUo2y*>3Lusru@6$ z04{hgmW0O@Wpv;nWZnG=<4k-{cm@u|n-9S0@p<@T9E#6;8J)%g`Abw9Eg)Q4ddy@gdYpo#j3Ie<^$m3i+u+{_ zQO)!%15{(wgUt}$Oz*%}6rQM(4@gKVVFw*E7krIeyB^J=L=uiG&w&_7?hqx7%yoUD zeY)Sk8A-pN93^X!cf1tsXh@M@2pe{CndWYlm(3x~iNqB-1ysTpIeHuaiAC%1AEGIF z@_iEjIg%~>C)L5dvGk8V75-NK(&744m_3_+zxE{l{epyiTmIfBf8T+w+SjZ>AN6_{ zp{1Ntj`bXrcp2eV${Az-34|Pr|9s{mTYr+}BK~t|*a&_%{cr#k^19lBJXecbPIwO% zZ=J>FlJE;7aA@DGhlK~(fJ3?);E4Pv-2bwHD_#E)C?DVzTK#4`Pg3|C9YKbb^GFo! z2g&>Ks2UqVnHlHpf%v}(|F_`(G5CKX{x?slO@*5;CQRPC#KzydhWPgqkAF`^lcvH? zg^WE;(xm@Z+Kk;O>C=DDm5$(WNE(t{Hz<3&Jcc7JsyO3mvCn7p-%f>-tK$DC9p9Ua zC$ufxYe}fUo0rY-x+P=yC z;#qM&{wj=9KkJJABhov;B9>X)dompOMQ$+ZTQA*KEjBOE z?@QOf%$g+^wcrhJm&&{9l8nsc6_H(XsYbMSOEQD4-Tn_#liHho5s?;nvxq4m%eXb7D*@#_Ut{-rp<1fTC!yVY1Y&xfj zfc)7LN3P4-6KAbmWlubgZ#&jb*b@ivZR6Tud!o5|p*^t%5;h2=T?m=sTg~WOvKE?X zT`BDV$5F(>-uQ1U?5E+6S=fU~woeUEOF5xF=d}v98=Q%78&1;(0f_cs6wo<_JlVvd zLO;rlN&~07>bbAp)Lhd)Wp1LldSMO?D`DDU8&b_6v9KN!hoZ$|jk>&4UvsOepfI*3 zXKN)(RHB)MM>F{2itOoe8`}rqz?KqO`10C`?wtqOM>S_-${!o?i?;ArW*u3)?P$_j z(%kwCV9O9ul6;4Xg=v1O7(1MB#j?QNR_@(?$5X-8L_L! zWg$+d4vK(bm34Omp8Um{m9LP?$;^IL9x2VrHyF^RS@}9bdTD6QA68uL(W`t-a?gGf zkG<+uSl-_BDy%)ytK5b6sfVvuVV$a1X|QQfj*My(Wv%MbtBfEj)~m20)vHJ_^(xE? zy^1tJ@~8DG5(&LZx_k)GNt5!{#&M492h_S2)# z55aHIh9_gb`)|i2iEiXnI|1q~pbTMokoWUePTtPxL9wqo0bI-}8iCvxF6i`f5ZJSg zN~U-doAx?cTQpwu0Wh&(4}|(xj5dI^!QCEff~!3|=y#DF5M2OYj4l8MQtfPl}&jhG~yY2Km4($e7R^2VdPq&K==k z7R?1qaFxrkAXmOCm+ zE~o&g>%xYUb(tuw(R|E(3s_K>zu=|L<$@!ZCBdOK&p2qwdM1=>Dh@JO+tDs3*aL5i z!H4k&8L+ft421#Yu8-G6^*kCHm|WSE&(^V=2=kU#oGswg5s!4C{{t~!8{Ur5@xO|R zw37{$IIbl8MVnHNJ5WIAh%<4(wqg_aSQpQ7w({L9Zwm+DT+^A@wEkX}?+7pQ6poAI zujIhE*B*w=C53E*I2$HQ;#XcHGB&Vy>mST@Fd%wYhb{V+2T5b%ys&N=z$H?C8O>i| zind~J#S4G^)^KC-6XYS5uAj{?6hCe8Q{*3cISPQ-*88}vD zje@?JVZkJLF=-2D34eeS8z^v(bu3s?pT$7LvwTi?{^IrcyHR^|Z0E&ct^OX8pyhY- zfqP^2FbCIP8u31jaEI*jPmUGo1Gc|6gHx2AJ&onuEP9W{|+}ztt0GdKE+O+7tFOrz06S7--zbmaB27s6e(2|o6iVuXZi4! z`eC#v0G7bM=2Cn6<5+nuyjv>|S^4>_ym_*{{d4SMEiC+xbcbI;P)f~p_Vyz&3W&Sm zB#GmfiK~Zek=_=6e%j4nU|#M3mi``3J!b*yM9aIxYCM1#M+8Tw z=7K*U*1s_iTS0r8?!&}+81{m}O$dXXV6Y3%U<)j_s@ZWd+!Efu-q}W*EgXQ>6l${N zxg&+()yNQij%qp4=NOLsiLICCF2XrK^P1RsP37nA!NM%fY!w_4a-G^dJU<7YSsL1| zQRcTJ#VxAQ*$`;IRAu7eNmCztH<_5YBx@E@U@l*93-bdz)D zX!coV35fJPq={Yp*o*{$<~r6%$oF)C0mFiy1D&CvIMfYKLlJsrbd7!_XGXE=w1X!g zWy!7Q0<3$*a<0A>N4Nc>WV$Im&sg6?*|R7+ybNWjvzDTqxhQo`W~S!Fg^5j45U0-Y z`UUwy@Ki(u$KlV4=5dg~WTbcr~3P;hDTFAR5gnGvPL?9RD2{IFz_q;%F%QHm#wjMz*?kOlnx-ZA5RCIh7^m_ z0bInEqyxCHOcaukzg2g#3$}lxP#&XC0?fj*QIt2P3*#~)n;5U_^Ca_>m?9m&55B!ZYi`sM}{{3sTT=dtE_f_WZio+p{- z@#c9VpJ4}$)7GRALB@tW7PkK z2KkW|%Grr>I)4QSOynQPJnU%{!`Dgm3FmMa8U>OP={c%Zs{x)VLN%16_TDV>nJjZT zmUL5QldJnbU8XHEwr9ot?d(8H_ElW0i-Aq+yfzZ=yW!C}8O;McY=OtK<9ZaXy9Z2V zcllmgxB+UCaZZYjphwR&Xxu z!Z2)nHb%~#Aq4=jF8vx*W;2IegM#&VC$&S|Y#gV2K&nIt-WsxDsZMwk^@-MNyoul< z)FHiN)pY$dr`Rar4LY>p*-RKP7x&CfG1n|Q<3)uWheP=nFKZ^Ga^d;n# zgTqnhL;+ip2iQ5mb+7E7ilrHD$-GK%I^OU&0}s8nuGk%juQN5tWA(9BAKUbCmOjqL zL;Y5jHt+zvsdyaq9`c){-jqg?KKMrx1tq+fl}A&baJ4^{`t-c=qSWV*Hz;aKxap_z z(p#uXOWvSYt$ITmSQYK;L57Q-Y~wg zMB(f@lhnPse-$VTN~#6dFr?u%T8ogX5xkwLP6bV>j(8*fvze;cywEGjWeEQ9xTON$ zr>8M()En)>G;b75d63-T4(1-;^H_Wzj9RqL@jb_e&jtitA(i3z1#GUsffRR$_tbAp zN|t5SF>h=~by4^hrVQ`EUvH7_a!y2AGwS2;m5NVbm*}rscwT}3!}uTlR$=JQMuMv` zw<&dT4IPZaUx09GNl70`Z&u>{Cjh4HyH)bO)SI1#%_`o!@BuUfYBV3iyXoE3Yl@DNmNdcKyFCSF^f_dLsij0;dse%y~e0wK=1BA^wN>Ka2kxxKvE; z#Gg|5CiJq{eCp&a^7R4vx@3}LR|-ERUuT@-00hP6Q6_?#_+s-wQ^Z#! z*$NX!U=^Dq6MjkHR%}+7Uqj)uu=8}#j&k1ipMoc@y2f8#q!{7}#P8Z)q~yI|~xk_IFtHl8wqeXhFPD`3>~Dob?kRhQsnp)&V<`D~fayqTrJpEn zwP%=d>sjMl$F^dPmu3B6lviK-q|_o`X>Kr18@R;N9EVH1atj}_;8}=G*qYNNU*1i* zTZ`sQ?k#)q;$YGl_5${xTSw0xI}38!{KS^6jcpTK&ejxXZQTk*75YFvk3Qiaxg$2o zRiNQ7c}I|R>-oahP!I(*mM}K{S@?jN7F(^|3(Xf00-LMDjsFMfo-JTAeY^wl8W2iP zlW)`AUn7C>2Jz88-XJt@02K?{B7E^Sv?XfS*?1TFVq0zN_^0;s5s|gFp-mhuq~pl)jxS7Hlx(W11g3Kz`GF^Y~gIps8LS)OE+YHSyBXIXEg;`_)HQ3Og1| z3-sBxCQV_n9F=j{asCbPvnQ#znEg9mWxs+C`9V%Fz!I20753LY=_D`Lxfdhn3)$}( zmfVKzEi3Xx=p-Ds%34%1I8hTZ7_?cer(Lo;uZ1p4D%Buk0wZPFGpra^#H`B{yB#1X zhra;9$cqR^iiL+vn2{~|9nHu@5JRVzx^FtsTK^2IkAGL&I@|Pl?lBpVnlm7!+WC9b zGk042`3HWU9)JFkpJ&9Mf8ytv@#mlU`PlgLFZk56EN?;JVn)Nv77M*QZw%bzVfKmQ^i76!*5`b+!*ji#RCABaoYM9w5-EkRk= zkalms9o!IzJ%-aF6f{=D;Oan0&DO^%z$7^fqY=z*k5DJ-m{!`E+ zDH9b(eVHFEWBPc+Un@A;0kgmTDG>Y$tNd%=Qkqq^Axys%DN44J^RdT;-Vt|SKLGv) zZY*U!3bRwO{R_BhfIKg!dlxWGg$^_UXb|b~PeB2{f(vN{^gA=87bS>6c4p%@H-5|E zt<%EturrUhIVKL@cMP_scWlL;<1}I)x>wYQyZ09HYep>HHb2MWWA_rV_V;^@DIQEalX0Fnx|;kLeD(mtm)MhYg&7u+zK47Bg%OwHFCm zoWZd5-C^4qc3^kd4GcS|JM04tJGeV+Bg1;?_y)s%OchE}?|B%W-mo<%BJAGobm#U7 zyP-Rb6E+#?kh4N7VuVbCkjS43Bg%(F^i&wpJ0w!4!idTt5jYjbeuV5%DvWIo+4>|b znfoDUd@3R)BO!@LDk8>>kf@SG2slFyUMh@37M{@^#vu#0cZYGv!W+87IAq}my2IYY zuJ(ZLW`^~&h3FU(F;i_JI)+3{4I?QPJ(@`DQejj9ittXuguDu>>|1d@P~*;wc!Q2^QIAq4B%}L9*&<8@g}Yn%xgn~*+g&oFK$CuD-3G{b#4*V&2xVXV{(K(@b%-q~IAH?tNa&ekVPFpyESF1OowfNUgKZ1z(lw zkm=90=#M?aZUk>bhk{QaeTB#DkHEO)J1+v~x5M~VW8+UevH$*SmGlf}Nm|P@+o2h- z+l!sx``8VJ&qFz?BrJv3^W6n+h~2XC?T^9pC2YIcDu|j|vma=SZG$p0v}|bY=lbVj zQlU?5~Das&i>4i z@WerK>}QTdCJvG_KyxH0agZDcnj`UugXDD3Tnk)F9CX9 z!rfv?##0$&M_mH0r1uS12@Z7c?|tg`diMPOOrNl)YnYqZXvuy8^LbW^6}dOW9oF@- zmtbB0=QKraZIr(^8%-QJ(F;X|b%PZ~IlMz~4|;>*4q3T!!3r#5twB52`4y)xXF>B& zA<%Ac0g|aTyVU~QJ9dX&ZD5*kuf_f3h#Un@SZJUebg=OY?-ebT1i3&lh*}&t<6>? zqz0g%zJ>hA%zAueXNT~Rd6BXe6p@ICI_myQb==vXc)#qw41qM1zfmG78^fJj)=PmC zjwp|cve|>MwFB*{i|ZL`)l6n1L>r(eCr}kx-0&HE;F1?nzTSe-rqo@}5c;QL#|N9E ztm^FiM=?XLCRfj#g7^C2FJ#_aJvfOmxOmBxsi1?tH2&nE!zXlzM|&(>@JB2;`{5n8 zIB9yskvsO>xnT-*gr1Ch`RV)7nqW7m3yyFT)`fiVe)OW*K+1ZY5|`af{}&f60L>AHWS<+!y{+CewVSVmvelu=0Ea?X!T7o z4Mn%(DO{&5+@H=SUoE;76#v6dc^V*EFRS7rN`51EW@LKQ* zzTn=g>WX@G<%Uy`(_7)K+*QRzPEu^utKmvAFDbn>jF=vH3^fl$l3dh)*6K{FX;S$= zVg=9uSA+ZT2E3>SKgEmU&|3&M+<3O}D;O7VC~07|22Jq>P77b0s(XHFhC#jDxrE~c zy>f6VUgl1YtA>Lh1Re+=t!SPTMV}N$FSZc|n^sp8#(2LR@30ko1sc+9Md?qB(~rjK zsZciQ1s~BOnJsjx4xp(jOyGM5lkwkuaTx!oa4+TpBK%aR*9XQJ4px#!Ct_N5x*p8}(_cQymlXRb5o8 zj@PP-Q2=|p5oQrMYb@_d#HKcUltEJ|5W_emO~fX=C21lCn~Fdw*fW`N(onFa-Xhp^ zh?G^8(#3%RmqxWvGaS;ypH3`YARZ@=K}NURiZ znMQfb;vA%{9)g)uDeQsXcx$mYo}!b>O|Io8m$w*~fCx5tixEV+93hkoMA-{Mfrv)- z2R{RTfD~9SwiEjUyjnOOVnIJiO_=M-l1qgH*5|N{w#x__W#O*boe5-x!eBG!4fjr13#d|9M)$G_7AX`fA?^yer4BC5z5}et| zV%`NaoZ2Le&qw-Kn6)uImdW@`e?^7*n{_d967wv$%C0Gn<}^@JHsO+!#K|Po++q*+ zbJTUCsf(~TN^u>hccVM-j<*F1A_u8kXG9HQBdJt&BI{G&|O^_w^zm0RSN0q79xt;D^ndja2r+AM^RT!DF`gq zK+Mhk@-=fm9i#{JT65A9b$Z#>3$5e79#1tidj5~P$7f-_zH#I}8pidYLWP6-QJ+_+>?y<42W83_zX5O`RJem30o)hpA`17v zvYHp%)tN%EY1fMGru#u6bLumMC@B|&Hb;2tNe;$#API_KyS)k)U@$(KcHJJYEWUX3 zEcjonp}_&?Psndu|7ksLd_GT_9!buxOHDvG{iEcko|*v(MQhc=DMUEo<&U&fe;;`) zml>&xg+ehSU`y7hj55!pof!+`tLMbJXf*2$<9ai}l^kO^B{E1$%&Qp%JuTdWrw9g4 z3_1QAkkSN3ZIA|K;qI0z5o{Zrtwla>Ze|_1{$519_D7s`>bx zs#?|&2tf=_>jdvb!7I|V%}@p0xFuvHPQjKatw`D-Zr0t_x$_7aJnAor0%4zprGo@4 zg`}W#aCN1DnqaTx=h`)z;eCmNsK#LeQ0`?&zYjC`khzmsC`#=0dBFEo=-5=|POh68 zIEp~db8PZ;mYcN>4tk=p5;^M4%q`_7`)FAo$c%vY=B>|R)4j{U`d2Xqbe}J(%ZZoH z12iSa|IBf%a{jtz{&>-Gl?B- zvAv1r!|1qOJ=iQI^u3fUO<=jX&ayI?$9`oOlq0Vx ze;1?-=|HJ(CFyK9ij@`9TAUd9DLUJEB6#|^rw1x0yi|F}1N(H=?R*`%{1L1f)v|2s z;DzIDEa=~?j47`S_+9C9YKNnl`3qV6?ewGz12Wb zj^NH%|CTRE^;tH`-mv0Ny$}8jMYU6-1p>i&v+3BqV^c3n&@8Ay;UMngD^>`t5D~aBiG);C2*s+5hqV}dm9_x zO8l)(c~hN_Bab~pF?c%{zVCO|mCbB;Cr*;nQnN zdUbs>?{vN-Z{B)uU9cLj?a7DM51)K-p>bFEr|=yh{W>sc>2h%V$6AZ@&q{@p zSLe}ySA#dBR^bxp7mGGT*{**%Ug06($#_hk3$0{1p9^4?>E@x4Ist)@uVloQ{wDHu zs{do+$iS^0(!k9`U_i}*5JyizuK}b>8kx!Fq_Q%uA&$-6)U024O04_xi)=h)bqS7x zie|P3)Db<+U{4y2AnkEK0yO6R0`w`jOy9gXr{%QpB6u%4Ro%wG5) z%8qif`Ic&2*;HulDg}Xm8dj6jOP!QgSNrMLW08BPGBqnjpSnkS1lqFieDL6qs!%%* z0SPx;8UgoX{OH*qXrHUvXIuQaqbg%BI?HAlJsW|kBOmQMI7a;0qAQziFo9^yW=Hs1 zpB+uI5JzMDnUSP3l4^#DI-+6YSQNBK_|VWoqPkMylDSW~)E0%qu)=yB=aT3J?P?FPGG6de3J{+QR-rfI05V_!Jmh>3>F|Vg3uctHrE3pzKh33Q^L|372 zV4>g~1S)c%;*13kzsLlNlkiqsU*(>vy?2ytM9+RC4Zviw@u0T|Lr}~qacGgud zt~3(%3h2ge%+XBn-@wxU87fR#1bb}ACsMF(dV_e&>%T+e8iz@I%)nq?r=?<^x;NW021^pi6G zZ-Dat2m2HJ2@;8-yB#OK?e>|At|jBat8D6F{x9~GyS;MbPDY8aP!7%@Xe2yG<3{g< zv0ZoESolPZ^H0E<-&wi_MrZCci@@!9sLDSTA!2OwG^ERS_G1DSf&<6zM40BOVfjNF zi`B}8Z=!#Yor`#%PME5h&aW2$ZE@p$@J0YPcooGFu1a@ubdP%ootAj{T|s#vCM(YA zo4QX#Wx+CR4B_Ur5I*v+Shot=g4mBPuK>6ebZaFIpGx7EkwzP&77e)OC{j60L@Eb* zufnB3pkgHl^0cp^mz4sp0y5eI`ZegMJt(xH6i_L~65XU%`sf%6ZMY4bz>v1Q@btf7 z4$6l%x!Jf=ZxBp$+wH|;nh`~ZlR#Ku`L@gWG&*D zPjo1?V&|IxTnP>%e@rylj0CMCVI;NyFXdc58+?Os#lU64zoD<-E?_WI+yQ?Q%aEcF z>@Rx7 zOD*S0J?M@w!OK!}B}|V5DFp$rM)^mer1nDF@$%SN2_j%mQ9!aaXlnaTAVNup7!wRK z-m=Pg_tbIsRQOBO0BmHZW;v$t7tziWJP#too$`uP16w!>=UJsoBR|2fvFNE}qEp9X_0V#=lFy zzl}$xHte5(XO)h#-S9kA2Wj-d2-zXN!axdGwEr#qiS27&V3lu(V46UsU!O^H!JNy_ zZp#~*Y$YSy=bhnnPC%kJxr}L64=$h8TMgbItlDf$4<^mCxPAR2!(m+B(OUj z!89+O1a_y}zh62D?A~MVhjg7bsJEOaelkYtOzQI~~UTjWbFh}_Wa9i@TXPPKd z_xgMbevcVH{SvryRk(1k$)D5CV|ix^Xyi2!Ol)ioK|JArZdh+df9)9}7Ix-*v~_KS z`JsV}ZJmsCFW{X72^Ko7BYHbcW&mnYbehFHoK9<>hpm-|&hImQ6_F==3)?5lsi3^m zIx4Dni2?Q=0^6S9gm8nkn5nu(7b6QY4u|H0#Y~*Je%I@Aqn8?c4xeLSrhwy`+ z<0&!(>i3sn&EXFN|3icaKOzNjf(Q8iGkyOa-|yD<@9_P*`o4$n-`DqV@%`KS{!_l+ zukSzL`#t*p6TaW4?_7$NS~)W$WV1reoEcKHSs`i8%xb>#kL}E~@n{X{Gr`d2Ky8*W zNI=3Scc9M-iF0O1-ZVf6oijrsCwMw5 z=g}7l>`up?%}XbNw7tFpu%Dz{tz9;#%l1!2h`U-57ko5aE!pjf@UI{&ck(@9oK;Kz z2h45oyTTBBz7HZ}|5M;%AjL=cRkt>s(jUJfJ1vK{3(Vu_R3Q&Y-0F%aguCL?GRt@% zAhS$|vruW0geU6?M|>WfW}?*Jv(spl5B3p?VB7}RKu{s{l1 z%`w(Wo6ka$NrO+?X2!>D9*f&d5{$L$WoUCJ-LyUXXqpt2;LeIZw79!%@f6!j+Zg{Z zYMT`GkF+hG+%!2XI7?qaZoi0nv7n zCc!_JEtrdW?8LHi@Dzf63kSecC}K0Aq~R7)`s4Uqi=6Fu0gkO@&NQDm{4m36wE6B# zT>NaDpEO_|Ji0*v8l`t#y#sSW+!YnYpJ^!M zE=25#oEtv#_m;VU$;6AdQM1-!|7krBbtwGjQ8e z5ijYu6cA;v|3t3E(&a;)8)Fl}^?}#fxEr2>-q_fXf=Cp_iFTFZ4~QtlYO-KQqKai* zq6!*7(!A0un5JYKkeS5tim&ZOUg722Ly&Rg6fCUvZd41qp{;Zvu?Dp2TmGap|3(VJpvK(Rif(3Qe6|S15qLN&syQSk9qM; zJ_@pzX+&LWrwbc1Z{K3A{Z6bV1>E$%=SzG>)MKJp>z#octjkW%F%)LXYwOoo1 zo{Mx?lWYruP77)y@b5#Y*6b*j=%9fk z@R*V23PXxl{1G&3H}HZsiMTnhl&i0~!#4JKqllYw1Xp}kwDBeAu-I(W#4xX%s#mUS zT~{z>F{#P`-FTvR)uz{Ec`(w98@&D#<}m-gm?rsxSi00Y{OAOtZL;Sa+T>-Wdf&8< z z0`g+G6IH?|I_vE6i9R?O$#hwt{vo>V@K)FQ#p2*^3(LsEI0`gi= z!o1G8LK{})n=mRZSpV@E9F8G2ulEs$L{A|CcSg?>xU1d%1=i?{j*SgZgHzv(=v_2Q z-A~HTF959H2UtTa`5{z8@p(qX=T0m>&j@=nym}~WX0rxRdX8L?@O(XbiW|XG!t<@Q za#p41^y~H#z)q#hJ8)1qm(K+2kOMy7C>a-lx{-|IPBW3H<3W)+9*Io7bocwv1qf-4 zOx+C|Igziv9c|wsV@d@u5{OKFjcQu*DpSuJnL5ah>Q+)RbubkO14l3ph9DWng6$Qc z5a1|^Aib>n=I??-DeHQM6BHQ5iV>ujt3}%@&T@n(KFbqC^CvWK2j#FoiNCN_VNp0K z&suO&UJB{5?nTl=?0Ato5mh~3yFv0wA6yFcpr9=nrYR*T4!@Czi5h>Di)wIBOC)qGCWqh;;!#^Wc&8c?|L4$YT%1W%V zWfKJ6 z{k=w7r54nn90%~OE_ICuMauMdt_y3nIb=>sPE$5s589|II{SEUtvVVF26m&%LHux1 zZ(B779w8aX>ZpS&dSH-(&iS_>yMwQ?|6cPph*NlZZ-M`Qd{?1Bcj2Gl>&ZJ@1AGEs zUM{!!6QG;kC@yXq4erEXHr6i)7nRv|@Ogqvc=6w7ip`_gh5moV1(p3znV5?Id4^V4 z)k6OZd|$}-1^yTLzJTu)|JGERPo~m*I!fc;hBv0I`=4Q0UEgny-u=(w4NZMz6Or)X zzLCp^HzqO`e$PFhCnm+#e+p|K0$$M@aAR-4O}zmx?G3oTH{eyh0oU{fys$UmO2SRk7wV#JwxzSKZ}9!79op{OoXG57HlJ5UO)6}e}$l+ zf+Hk%FcSx(u@zwdl6*yA8~4UHeuiKhSFqu`7i{CbU>l$70o(Xo57@@%dcZb5*8{fk zxgM~M&-H+9e69y<<8$3$LrZVy3&(No>WDY)e;J*1GI{Ab@paI@ligp8>x2);;28eG z0#4wM3PI?|suzB_3*P}5wexs{we&)3jQj-dxfxh<#ejE+ygy^0_<{lN2bj1>nt@gS zka@@F!~b=yUGbWb@|!$7dnA`{!)jm+v4wwP4YrAMd|^2xu5POCjsp{L1XoJ(AC5)& zIDg$~vh9U~nPFTz0faFNEWXzbWm{u|;1jv)m$hMCDLjoS{(=Q#hbb7`#TK>_H`}qb zQjaZnuD=rqX8T-RpzE}8<;@HmLaisCvJ;TAxm|FWVPU;|krvFo*iX>*56B)0LsG=0 zX*HaZR;B`QSmU za`U)asd;oxmW$TroU9bB^;!qk!qhS%=ctWvt)L0ZIJR8clUsp5c*#QzlMi?XdQX8? zmlXt~p_G!e+}y^;L%Nr1FDSIi;o8A?Kf%rEfX~sYSwkzV1-hr)VXc0%mHo5e-g~XW ze_92_Po~@VkK=zDl6(;Gvx9rknAY+7lr;%H_YHu!#6wacOO0N(BwjpPwOm7&A21UG z<-Fq`1rTa4+MiZln6mQ^N%>T#Vsqj8A4Df{kJ6h!j5W zOSHuNtiFqRoWvip&_-JrG6lH$vF806A7;Jk8qW<*!|{glo(e9=0zh+WsFIKTVPSu< zaQ$16*zX)j{yTo4p4`e^iwZr>Rk6uQ0l)YFk zxmXD6!8O4Xh^Mg98kQ7xbU_A$_;6QK)<6;Qtq6b5BE+2>B_m50V5V_HLg#WS1Ib&b zZnOHxK~(yFf4yXNTeal`QspH^tjNo#_7@QJLUBkPaKQWAK1&2k8Xy{6C2gPH-bacj<=J30{Mb)}c=D zN<0PYOUpd%@HrW1Ky)85h_Aum4QK*@g*VwxKsL>)H+>#Q z_okGV?zDzuo3!^@3qKjzr`>NYgdOL@UB`)Ip8}4-sg{nji1U@V&uw@=0Eoa-Nr*M&~D z<-yt9Rw^toU$}o;_t^r!8W zEkTfy@Ago^2}<$jMywV@-+Zt?!dm<1=dJ^{rzm_n?A486ZNN)b^#zvySM)m{?1vmx zcgU5`HCx~=75mc!DCxO<(yvE9I~W`8HjCu(z*3=PAhbl2nOayq-SI@?J2%pX}SU=-Vyq zTkuPOsIeN_=EKmMsZ9NV__eXEeJb&aY-T1cswm~=erRI}ru&<6-aifw8H!vP?`NlE zWprB&91ub{@M1+JJbEZ*p86CQe4VSIs4hi!W`Rpxb%Iq^p8hPWc%fC%_j$u40qoC9 z@dih1X6;n-h-#*JKJY|%OPVH?a=4BeRVg*dHfw;iM3UX1zbQGaZTuYl2r}1xevT+x z{z%dtlrJ>&MkLRuh!!IT5v_4mM5QU|n~j@ZmYx{R;l{HEbISgLf)Xz&zH`JFuIY z9)|dzLlx*~dHuJWx{3xbRGT# z4QynIh0(YWWQ8}FK!TYacZTDR*D9Gg-2JD7Sv*r=DfSY>oKPRI`l*rw1=bw8vm_@;3Xs~ zrxb$g@$^4}KSHpSv06*UN{QC^dN2X}Al33MuJpSFC2=#J>~0h03Y(4Fg>dmC(@Qb6 z;yqcxn?JXzkmElcY2XkFXW<*$b``OGxfqj4R(SGrSjk^2M8F6uIlQeS6?=IoLm6yR zA7y;K47Um7x{csGo5#8m@w-`_t&J(!85wEKOX|>%R{h=b--25np+_%+O!hHHl7zq8iect1y^m^5<~+ zT~4%}2=K`HA%^@8?1LYNa6$1K@q&VTh-Kqmwg$(d`MJ_sank&8K~v%%_xm+`J&STG zCwMt14b5G!qx9E+u81D*m52wa_d4gGF*`}U!>6F$o!p)X1(Xrl`AB>&+Ickoj_*7M zems@qHsi>ATpV5?&n00f&xt~K zoxT*q_sh%9V^L4H{>#V^N!K4lyFX8u^KK%TNJ4`x5Ij4AsRRj_;~=u{Uqac2eV44| zEOagu<+RHB6gf`C@HTGq5|Cu!ZG^Z2Z-WX~QVM&jxuIO)nkxB{4}%id*B<5s7Xz+j zL0hYkvP^y*iGar6KzJ(YnjvDAti$=}4HXFobRDR)s~k|*CMIuiz_t9<5zlj;^^|Yy zo97{{IG4ZB4Xb?uCgC|;Yk1Lo93$@p?$r8XTxJcNQYK;t*F@|fc|{m6!qx!27esHA zp=`>8wNWnr!eT&7h~(1o&+dg&%(t_!X3X)XSioB5!BWdxXL*lB`INaFdh)(u&?SFO z$)T|Wke@N4eH8G`ydIal9-q9Pki4GAS5p+^cNyzglvELU8Lw7utbrYvBeyKu@^@|g z-Pl%aE`lm@Gm_!9Mm|WD#0(8e4$P=E_ZZ)&gHikJnUheT<3A3_4IpqGO~tX@j(e|z}Pt0k~*@jX@l0WT@paHq1c3+PVkzhgr!W*|2O1s4NMs%{9$+@#;EfO1nxk6 zwzU~;kusH~W5HU^WWRDs;dkQfro?ZlZ1hDa=Swl(D9)6cp^^BUPd4~7T+O&%DVNRb zvCB9qhk=Z;K0A>G( z&tE3Yw10y*R^?2As4$B&rBp_1Ej14}t!1s{sDil8Nt`P*tuRx3&@=}UF&1ZP{;1$H zapz*xedj!woQxYxWQ1a%_|L^~C@9uOJ@g|`G*Ui);kgj7aQzviH~qcG)cRKGZ^i6okUg{WjqNb@>&t&B6eUC-@C-*MY> zb_91qXGcAF0nEnm{HE61Q)^ERlq{aillxxwdT_qipZC?9z(>Yk47%w2uijMfvZ(L+ zL6d|`a`G*qOcim*?z(rFMgsb5Braa0%_17kVdX_p!vue{ZBpjm+SXlgDLg$cA=S35^*EIG?Pz>4V@A%V<+YA& zDFY+*G&+^dnAahh+7H+cw(NSi4dPg162X2m`ig9X-F4s27i8Kh-aCTF@RH;?&cqf` zVVR5Di?}*WzM;@kUs!6FuRDj$4G8vvV=zjkp@E6j*BnOX?{6HmVOLD{(}@QgQ@H5E zpC&-<2HfJ3*58PJ!fTV4f!&$7P_BVDYULq5L0QnFHROhFl7RZe>eqlZf+DV1a{30B zVT_c!?veulD1F;j83shwd70t$HGrkCbywK@Eu2bGZ_*k@DhUImc8R?+jnyLvp`3NM z8@}Ugw6Pb5!5DPoFuT>RYJYRdafJk}zce4MUmlM=Xo>nU>xt(r)h_BZIMAKBt0^1u)!bhv!I7ekTi2` zZ!@VU{|5kQTG`qg0F%b|9}d8bxbuI<8DzN^*B){hA2PxJ>&E$NjQ4!r__BTR#wSPY zxj01<6V6SLunm~FIEDGUMI_;YkL%9SEo zt=R-cR`imBm||^wH*@zPpx9N-r&4C3$H@7VC}$jUVHA>7zF#JKH{>#=Lx;qPQzQ2FOX1{r#1W@?`K)$ZOjZo4WX7H+(xP@rS^;lybwXi*9aYtKnIZ5-P~z@al!QxYT?E5Ey}- z47M(2po#J>W7VA#o&mGvk?{OuB{!HLYtKhNYjrC*+%j5H<1;*26{I2EZ~ z|4K#^p8sUqMe1nU4(X`0okGcZZGVbH&TISmCJ#lH^YT2Mk^S0Esix~cnbF+qUjhij zW2m{W$`M1V5;oVe6Yy`tSU|@k(mIX{B)!*c#Hfg+SKBjRA~O;HzUk;`8iJ{vfFU_= zb%UFMC)Lb`pJDhQtK)7Xxn!xD9m>kxMpvr#8 z4Jx33x1da^+J6H2I76A^u~^*)xL6 zuFk`Y*lz|%jELDy%nrsdKw>Dh45bHuFVT>dZX}rli#~21kjG%Fkq|tvOlQ4#T za;z0-9bs56HpguD`pLil9q0O-=w&UOC&+C;Hnzn-Z~*v+&O>(&y?N~9-f_4%rPL5x zZqOtO@@x~(m>QPyv(_@SiF6K?id>B<)dgA7C2v~XFY6c|!AV}g5f-wFdV#FWBnD~RJ6n_v;;twK_en_8et|iv@ zi8~ZFz+hCg2BoI2M5LVGo`K-0wb0FrBv$;aZ!I>-5I+~wVk<7d=JaUaNdX(j;72GA zHjMD6ic2_QHwHD!G~eh}gdH~Bz8>A)_z|QvI@yx4O@vYf=r2mhE)+p$SEO_Fy5lX z{!%w^5Br-Dp9L)kiV3QgC@EBXNXp3+ti|TRDy1o@UIiD$HXG_rfC6T0a9#?qv@(rK z6ZgLgT<pWQ|lsA7Q(ibCR=aIA5eFq#w05Z-KeabF>=eNAO4a@*e`8+AcTz{A1t&8sw`Oqvm2*L#eEbsOi59APc|nKWM`vq^%0K z@0wPwCCk&(VEU2KBF&t{rNzRJMRmTHjFi-=2-Mmi?TEv0;RSIkI0@B-UuUpXta!zw z-%2MX%FRzoq+`+_r;{>pep2Ecll~^1l!5b;5^Y<{+|XJawV$L#=KsqHrKGWLSd7!? zj1=*3ySJm9vGeQUgpJd8^;Tl$0fsXYGx)o+QJm!2d+)6eU?P|x1Z z1Jy8hZ3~ACH}KY>m?)3iiOyN*;)3`9&~5fBYQBXKtQ=Hf7p}{Q@Pgz zA8qMkm)|;@Yrg!VNa((dE-ck|m73p-GGO16u_&j-8WWutcho%;%4Z|YM>q+DH}B$) zO5e2_S@g=yWyT+mSj@u#ZMf(+hEfEqOLG{){PjK#UZ7{h{)Xq!SM;qcI$*9oV2-d3 z2aLlBWm1cDJ ztaLIbHI(zN3>Sr3a>V?BSTQBGk%TsO$nN=3R>2>b^2kq<&7Fm`l7W+h<&dLBx4h0}1=3n_25P z2X_deO|@dm{M5gfd^*jYrhq8XX@!lGNb3d|G!|ri zE!V0zSRuV0n%8R+)7Wx1x}|2}@W+&xhgXYDzj5uq(e?zs0C0)H;TRgJa5vfu8yL2? zq?Xk1TDE~4CX8~+X&Z7{wR=|}M3y>CfR50zjA9#iKdEw*| zh&;KX?NDH}OX0meL28YE-COo{VW@ z5UWD~YBhZA1b|vqpt`|N5z!j)hTsWdC|JvnQfN;`&4ZiTD869g(bjWP@egR0x5h!7 zw*$a%47gPtwkidYGu>z%e@}Eib?1P0{eU^EdWSvw6MKQCVV;No`+wMb4=Bm1YJd3ltsFX3S9Mi~=`h2DOIP(o zLJx7sIj0GPamb^1$6Eu)v|Wyh8PL&Z_>ZVKVt9xc(f2Su5fz>&CJcWWQ4~=zVL}x6 ze!snMuIhpJc;8#=TkET}ZrywK*=L`9_Sxs0eKJD0hxBpefW@lW4GofAFFYGgx51^c z$}Z#N=R;Ds8&`MI<0u82BU*fObOe_SJSAh!2&>_#u4F4k~G$*m;R&E0OV5C*#KYn6c>=fnjd zj2mR#-Tq~@u0M;FfMs0*iJAeMKq`7p56+<5Sb;L;RK0q^Tc7iFlEB&dE{R^;ty!+t zm*XCi>drE1tdbjR$&0n$IcP5g!Hj?#qzY}Uma3%zXyezQ09_ouzzV6pGmVnw?Zrm_ z)kX>JBdX2U8Jh6)sKDk8ur=i$Fs$x9{m!? zkIbP*m10KDHP9@TwRF3CyPZ2Aft)9R?CKAKLRJ=!Prm`5*vwGDvLn>?vOZCj3X4&z z>O774$g7pi$c^#yMp_k8C$xtXm`(2ThvnIYXx}?QTAGx0&Kl8QuycBH|>Jio^wQ-Nw}6 zXrdw;Q1jrW;JlH%6g*yXSh9q=+d2aUi-%lJ6+OtAfRq+Xx$?G1F4m&8q_hM@Yl#*u zw}XRiFLI=fEY|PC5nf=4H3siKsh_Kf#DZy5L;3PzoSmi#EcYN0J$mq1PPVBsDQ>J& zKSF8l9Hmn47V15z>hk_v_Mn?s#Yv5~ns*l>=UstbL|0g#Xq0rcUUu{LspR@%n|D`F zF<4({|8A)#i4CMX<_(p|mF59$ zLN@f4aS{u5^p2y(#ih2TF^PEPU8PZyD~(o{-Ime))ALL78^@OB$M;V!U|Pz1Rm%(O zkn#x|8a@5abt@7MAu>^7ohK$vGU}Ic^J(Q58HGLz51Y*M5H-Zgf42 zFS&4xGh%(YoQ-I_18*ve*T*FMSg0251qbgid>cH`1R5X2I}E=acvs_TpuX_nTuXmH zaDR<@DP+N8#4O$DbuIK?(?~IE7}euGVrlg;wC5V6Ghu^N_EjIQX1eZKT&9kXf`k+n z37z$Zo_Q@!T6Qi5`{f}!tUfDY4c^L6<#1pKET%_M*SK3{r{+6XFZNu@klMZO=^$ne z$0in>r+gf?rxdDjmN9XqXG77gKc@e4`1}phkKIqf7P_DhvvEn#hiPDh^S2bo(uDnL zz8C9TdUMh>QvbkheHa=s$t89YaH>ZGOr@oNH(4pV?yR_rb*a6ka(ui!!*@$Igo zDrEG5Z#V7{k{FN%O{W>M8{I_W#c_nkkoS)wow`p5JA@=Vb%#*Fxj#szlxOssahQO= zQON2?K^Ks}Q%FGEDfAZ0-zkLi8KsFN8x3aV5w(B!~NY*fTaUtCo; zh)j3SXfCDQ?N-w_0lztqjY`(#8aV&xHOSg;v1?{4*5sNz7)@_}z#8Kuk@G#ICA|pt zjO6BsdbX6W$rsil=j~zO*^~U^wrE(8q1a1>s&zcQBq_Vc%0=f-NFq&1G(6kN-A;LL zIJ?z}^l&WufQ6{iv}Wvqk;wDXP6yGxz^G=I!+rp1E%&3xFwSf3Mpx!b{jKxSn|>os zGJx}Nnp4W#P*SeDL#GVW?-z!$ex6*38rul=4CU)ZqayeVL`CH)i=M3YX(B+*Sk3=${LG^Nm9T%$y=YY&5SOw} zAr$2Y7li#gKjEu~3^bCmp{(59-z~f%uVk;8=f<)AM%`0K6K1@1JHpGy$M6A5F_o~s zg|8HjNyYXB>)Y}T*3#B@@Y$2L{}XJCt;+SJ#|v^AL=Si3b7Tu~$pI(m@-+^{=mtlF z+5d~5jaCTl?3Hus3Oa;daE|v`Lx1i>7{AYv-ur!e*j|>Q_1o>Mb))8{WxTMeh@7|; zDOi0fESv04lUOSOhR?;ZfygGTIk(=_qPc!lxyuRjk zW8RHMMs3C)8$*Bb;6F63IJ(P)lh$+pvCsMtY{fr9|DIutNcyZizcA?M?C_yXwqdn#BdGfKp8Cb#gC@q zP@znYf1y-5U@amGXioFk?FiY5b~`IUFK+cAz^Rl6D&=Zu7(r!OMV8c@E1-9!n%8wN zRkeq^SN-|uun5B(A@H#CeFh%(0&DC;u}&{e{TmAPcn5F{?ufJZ zG6Wp)0wO9&<8^5E_tI`AdQ52c7izO#Ezfg%V(6CPB&*SQPi!7~wmiP9Jf=L1g(R>S zB;fW*Bl1NLaR3I?JU!3~-9K~~IU@uC<4cUaX%1$&8F0XxP*KY*uE^knzX1;*hR&hd zYZ_Auh9@+?(;3d?YtRWLmw4Tb7kjPq>lY+T^TTu&;YQ9yAyrv`exw{k)rV_7OAEB) zik2KlYAjNz@kY)?9i&j?EMtIKY51$@AHuuA8UF_c&g*JV7?6f;IT?zq6H;O+*k zUvBTJ-0h7c{Z!o1hX&UDx_SunezXuYxd_ljTdrj0% zf&H1c0Q?y0CMoTCIems_tMHH*w+E979ki0k>Om`LRCv%z&Z?p0yKN-SU6j*fHlS9| zcqg4;qVD%-6dL2$%CE+d3>2YRN;$8kGP?)Q4_?pJgfz9P+%K4};kag*e^XnvY@q*A zPNO|HjEzR$7O%c;PZJ?b*BkKulb=a%*)-Ba5R9l0JU>|)op z>bxA$@d)q|Hhty>ot^3&>VdZ9hMoJ>X&sA5DjrFQ$>>@`F;vr<1 zkRe_hk!_rx)wU^BKLJ)1+a~J@+J=;=gO4dp;a07+JQnF({w=S=6Lwj08O#hEusE@M z9vZETvl(QAsVI<=w&&L5B#&6@FrI&uaRA2i_m?u;IsHuEyPtFVF7VTLV#oB=Rz0T# zen=D8K3{Q^ap3l6P9IJcG5)%T{NusVLH^-fpiHj$IIM9!WaGz_ITpZc*~>PzWbJ>_ zRA=vggi|}OWcesz{O^!`fQjnI#k8L!8c(n~7=t)6`kt*1`9A+Er*C0Hg zl9fLNp}g}|67r`B-Sa4`#^@?fx6d&0=Xu|+F!p-C_uV;Ys~5Axt~-6{_r z)Ft|S^1cy$9>~V^6q|)7xpqXy?!t3QLF|lsJ)Dp4A#NV?t#Na%TH?Mf8h1G>6Vy{x zr??;b9dc%&v!DO@3_P%2X7&H~Ie5@1lc_4s9qe)53ab7j8%`WV3cWNuF-LgT2hW@a zTtBsv`Hv!wQT(KqcPLbH8Lw=6COI+<7%?+&wsXh+OhyLhaL`9B+d9u3lKWXWDUcD< z!R7t`oP$P6tp8$tZ+EQ~FCTzSvYfg;fCK5+p5RUd{0I6j8vIRn2CT<xD zx1nN5>oD-LntN~*Z}r*u#AucrsTd0*7C7dFrmsbkWr|E@f;P(({=QK5t8() zfp$(}!_(RwJOSCTwc|YTi^9oM_>uHuP9GikOc00`< z{s5)RT?3hv9_8x)L?E4g3m?slNu09}@J0kH#rRw#4%_c`z6b=j&zjEajgJNAtONZ} zQnaRmL*=%fM zUyEokVd$Q1$gu@I+mI_dg>>E(?;iI1{EoR4nIVW$Ny~7JTCJjQ?mS?*p*m(_et*H$e%2#3?LUrZABd*S zL^`$4zIqv*t@kpmJf8A^Cr}G>833=q(X?`)MV2yiqQy(AJA{IBH967ZUe_QKE!{fL z!s`KWpI5qpOA9mU4pS{6GfuNiCfcT1a1~%GiN(&inC&N!A?8>jQ!C}1uh%evIiuA0 z4DK!}IGYbeIo9>Q<(14b8+z_r^^$j==XMmd&~IFfOFH zYPmDL#_JAgzKbScb4cr*o?2j0@6A4vH&-)?vgFlo2OBwm9P9-~{wlA2d!=#Ww~T(Z z6Q4FF#=G3Ly8kp@bVZj7Z`afR4uoydzan5lbldQXUa?+x4NSD2UD%{(e*i;YjjFTv zVJK6&2kr>8m0Gae&h)(<_I@Pnr%+(s&P|vmC-g}Z{mQq1X6C;@(<{f^`Lh2Jx>v+B zHX8fCt$p7}SSC#C-T)+7UnS(cd;3<7=ndzc-ov?CKuT9Z9Bz^I;v$_M+(WBlVED%Q zqB;f^jv@GFTrY()C35{IWWc3SYUU*C2SdZe%)zowv)H;93WIe~yb%vI-ac5FoRv$A z)Y$65j`N>0V`RAt)>9#{*qe92=IXTcflHsxL3+GekL?Y2XCJ?zeZ2$sX&mITZAw43 zF|P0G8>a^JtM*0^ywfLW+CKrKyp_s1!jFXModBIQ(%W1GZh5w?T)8Tj{X7j!|FR!# z|I$VQ=QGFqrKH34lNr#dxMvcZ_RWaUegpm*SITl8v;_)#BR%pst2l%sS2C~Sv4ogX zgI6XSKet$h;*WgN^lK6CG_l+bm#@SLo6=Rmadby|$#bdSKn^ww2e5~f1H$yK<^6cT zVF{;QOQblcI#>kdO#tK^i8bfmzk+R_>|>UAh}oC?XlIY|qQwDKkYqVuDdVCN2qllT zL8oEjPgF;iK^2u5^c~Qb;QA)4y6Cq50d>>WPn?^~3l&+olt-P~>+EwhYQtXPq0Dn^ z`&6CY4|VF(juI9ep`%oCJ4yvC2P$mSRZmhL#AZ9#81v_rKWfbXmRENj*;P8LtDkFv zaEf!+`Hr`?+*Pt?`QlhTcMW7&eu9P;$FzB?UBc%QM_0Qfa9BwDYM0+5X0O+sYIoc?8$Uo>*89FRm`z*ShSTu-{A7DE1dID!^qf;d7KD3thNo zMi#p8!&~T*^cK1#dQwSmp$oosp^KWRTg##>+Qe7VdIU_$ z{;(6;Xe5sDXs|nR;48X3ij`TRn3xqBm=Hi6IV)t78c9mY${5x8ZFEQGpqr2_(1>bp zA}mA++lJva-ax7mxx^D1mCJ+|Rn#V)A%om+7v5J&ZsRa=9fwg)gqd;@1=&wb^+J9Z z0gl(j^hR}hC>WG|>*|rvt!aOQrKuke|ju8RrU!MPLfDPl30KlyTk@crs0b=X%yhGtT#YZ%bOQP*`(@ zDQW=eX&*^IkqEqNhodrmuJ=1zzoGhxtg&1{ey{}|Rh^99Fa2A=jQ4&1zaDLVvh=Mm^U09w$US*83jM_dL+h zusry>EPYDLSnldF$A8}gT{h(iPo^jCiBr7 z8<9-XJs^Q3B_9&TE3goOKh5h)k=Ocl8NTkrVhYnb3{tfIiMr+*I*-3jfPVyV@qJj7 z5ca3@`0E6y{+N&t`_p;+bpjOs7Nct&nDDgf3?xLgN<0pq%L99ibtuA#hHz#x)e%wT#Z=&HBCyt3e(t|4>T&j5 z9$4exmfu*2$9Sb6HrQtuUhOduT@b}mRxGw(>aOm0dzuFbClkcQm$0{n&&gz?WFMiK?%&l>v{em<~b;rCY3QASCz82t29uP zl8p~*h=U@1&5QOBh9ynHuoQV=R&$wGGai+5j>j}cQk@GtM`Nowo(ploq9+ttw(v11 z1qB~NQabQ4EJXqzBT^3VG0%As$l+tu`LuqFIZx_`mx$ZTQK`7c*JJx^b$r=7F$Z}G z6aiak^d8?VHtMHEt>P1c2Wza9<+S5b zdqFZOJlucC`HCfYR^mAr4_52RCCcpNZpL#Zo|oad9?#qHyw`m`g7+PG?!v>}bN?65 z!+0LU^Aw&mRHO$_70(zR-d{Y8hi8nOgy$?goLjyW&-7;eH7T6#=_~n(aYQW0n&u>b zbGLwH8v1ehL@6?w!%&CrY3?*_HsteQep2hYr&scm`qDkUgr7}(;sDJNeqSZvK7PKH z;M8=I-#6*^<6yk`9zppnKffWLKjWv%(*69VQgu&rwzP@SCwzX9pMCOqJ3q(e^A>&{ zCZF%-=Nb3}A8+RO0UF_}`8`9F`b(SdmiN`o56RnZ-YV})C%8hl`Dt;ipWreZ*KyJW zHfDH^HO>14W4if$c`tAN4R2ifv84HgevCDr7N6=Ix{+!O;ktwx#=6dc?&xR*ra_)$ z;m3?nO~wf^M+2n6Lw*IGuwbs>e9Xtq4(=>tpimBp(vpsoQhMq~1N09dx%JKX7+@>! z^G$LrL=e>#qrBWRx9av_5BT6w6A&0x7lym^ec1ou!?TR|EOH-o3JpGo;W^WNF2$SA z)$T*#^WkcFJ|A$OkK-MFJ_Glc@!XB)+jwN@J$Hrt9FFFFsNc$k=^ya>d;0x#d}I0Y z6;M~?_vh7hjk-RnuJ@qJ)ZC_^cPdCKT^IB^1vS_KQ&1iIf|`eh+*riYJT2s25BKvz z?&INpokUPSwD~h(tiE6Km-;cqGidAEsu=4%5LFm=lm>b*H5ByFFiR%cEq%0lSB=|~xHjUb9;CPnwD~ZD zOL)fca1ietJg6B_2n}O9p4Z~piHDhTFP>>uJUMA@x~Kmj-(N@5gQJBWf&=`m?88Al zeR3?bh1rOFJv)}O{||(-zKoU3<>rIH?wRC4s%Um zt3F2t&0T7WjRUcpu;3hd4oJzs0nRj~oEk2#w{l zennJgBX}>t zyN37v&;Y`}npF7D@D9U2m^O?pz!-!*9#`pC5@Fz{?q_mKe zO*W2`(k|j!Hnc92(i%=mLpUkz-lQ~blhUe9N+UKY?boCK)V-{Zm;Mm+xMdpsEl z;rs`j&a1D8AivK?j(RxX0iN^bDDny)IqKp3Cn>)-ioDcEj(RvhB=RSs$jf}>sE6}Q zBHtNBhEBUZps0s~tqNP5#yZpOx`~)p`p8ia=MW+v8AV>@BS$@)Gl~5CsGJ)qkBz8@ zvzf@L4G}rledMTzvz^EKyA9_)D1RnCU4$b_{4*VBv+&HFUg%H)-}@UFRe(NM@y(yKpB-%|Ju~(lUDP|O zBF<*4;#hHe5b{e~15{3gC#@RZ8I}!u0DgLGznQMuLvSsY`O&1m2g3}Am>!YHJhyKb zgy-u9F~-n*ngu0VPJXc}45yvOU-LxtJzTAyfx2HL&|6&ToGlg z*O)Qkht;+9vipr!0-)xFLl8m@F6ddlS;10GI#OW=213*)-8>E01tMfTSf+VCU`4{R z0c;&$I6$fSJ(|$5dA_RhITqq`6Zq`@-{3ROOU=%KX=}pgC2za}y!3zIdUhnrjH5ijEWiw%X9%oLlFr`MQzk%;F-EuhzUyBBpr%TDLCoS6>GibQZLyDL2}Ex1SBg?MRM>qES> zoDIkvX<4UUozk*iy*j03L%UaymXz2Whp_&Y9LuL~xID3n-B-L<^f?pjpl}Z?_Y^MS zUPD~XB!I9Ek6d2N4JWLl+2Z#>hnoEm7Vcd=9igoX!xenZ4p5Fw4C3Ys8Jx9( zcSiITb-Vn$%ig)a0q5~y0kxs`B5nUMEE4UrJ>Y-s#+P#(CP{18qy6c^bXu(D?QRWRNhMA_6UV{ zxfD1}P70iuCI!yulfsem9%&sdZ>4Z&gu*>810!dpNg zNFOJcyz~{C;grvWQvO%OGw7vUCcT()Y#;}9rP{MTjKSG2Vyp{cERJAs8jKk0Lm1!h z4|B#jWRH5PY;LJa{H_$7t}VkpKb%A-EzX%!3Y;RR6gVU9QQ$Q9kQc%^1iT=G%z!h* z%^}QhK|VoRIUi2iqnHZyXmJuTpv8Gb(&AhqX+4O3n}>NO;tBJ;G3LHyESzG_q z5X1aWq&VP;lkwzgEW{P(*L@6`R3}%QP4{SW?lQ=EPG@>Pufcbi&tJ#fFNtw;L(JU; z&GF-I{RuOf3%UJUPwg*bojXpA3?xo?Z%-xG5`9CIf(L?vB`xxX+Kjqf8%qwdtQ zsGHqcS0XD|_SuyUyV;HPW!bu3Q!1DojR|D&q?=PWgfPB??qm@5Db+m*%kh@L=jo6S z2Uh|g3}{iZ5{4rwflpV+hr=deo;flScC)J+cC(uscC(8ccC&jMcC*VGcC))0aPr1b ziWed`0-ra8e7Hi*_mL%PNY`>oJQr{y?q978m6aCP(s`I%#TL-ul+UxnMxMQ1tqXK6ZC-pb!4frd$l+an>aaznf>6rwAf@6LPIN@-`< z@ijG>+%06P&YdXeyE4{Nf=>;=EH5rtI$YxeeuxjC!rGNVQJ43i!^(PBX2@Z6x+^m* zD|~ikMjTc~yE5~fo5@mU)cK^m$DA+AdpzfSS3mL&tEF9;@q)uz2p>g<)ek<57vQ7MVI_c%lEbo$kA8=R3Lj;Mr4Jt!hsDlI#!YCUb!wgI{)0qbbBgDZ zoTPu^i@+H3)5(UJ>0~3iD>LY@$zeKKVKbd$5^}_0WyN%|%3(TLHFy*sjKsN8LLgg1 zak4u+Ui2end&@}KHZoGSVvLk65+h|>K;g1xXQY=1sZr-8@*ZoLHy2FkYH0z8OjSU>9h_;k^|>H-!lyTaSWQ^g=$0D+|Ghf$OzvWK=!<2w#iSo zKgJ;GmcgrFX@e^pA4k&G2`4-bz!g2#z9`MI2A$J_14x%?tpq5~?O%_O-S~J&+ByLK zxUqHBsu9t}VpcJCWozcH?4Xl8580d@O7F@JJ9+uGPC!QL99mjx5uMS_WSRq5Gc%c% zdO%=P-DxQ_KEeov_D@2pZw`Ci?zSU|5pI33jeD-{u_wBo&R9zG1dt$Q3hC} zyVLB=eHFw?UDoV0GU?_~3S-6Up`D~4)~z1s3oO_o=YQwDNE zSrs{DLUQVu*418GHzKY7@8=c!D+#}^FD28|;~33>N!QtroYfmtkv-@eh3BN6>w5MB znOx9}+OnKDV+dMj>Tydn1dTKG_)^q^wwZeTDC$AeOg$cp zct~M&^5=)s<_yB=Oh#dc6LxYG#(s^nF#-#%;f;DYTS?%$2(ohvVPA>Deook5qp+R} z06P|cK?XRl=>Ypt2iW3`2zv6{yd z(Q0w7io&iX-dm$Ec8r|cqOi{r?;BAV8++&BD2%3!V{D4>_ksi4VSPYxCZc%LgqB1$Hlmk^-;qEF^p@0h~=}F!80&y8#(`A+V9f7;7 zQpY_w*Zq0;)bj}3#iy=&a9LXF(x<*h;4VIO-h*?gphus2AA!60)P04go2xWQRDBP$ zT|v}x4}>j%7-_y0khVFW$ea!pcaAxo3A72={Q@1Q+Vj4xC(z!flhq`qcAny=b-dSJ z1@k)pghw#1^E6y@%X8^xQ@q zg~D?haTE&AX~a<|bR2OMpN=Dr;RC_bSPM{%=T z{;WqFB?Mb$Kg1j(jziwKqJ&^aHW;1Ikw;5>*zi2#h@)VJMjXW*8gUeN#}P;I35__4 zdygZIg0aUDN5Npj>ZizYM;yf`G~y`k(1@eBLnDsj<|uLm&1u#%_q6mbk5$kprkSL z2^5yFP{1^%32_;Fs`&&dFdd2D&Rpp@pcA%E6UlQzeh+?Y?2E_t-0Yd(N+E5X4>++xyNgLy>zDE#3zj&A4ckZi8`LRgR6GL38^)BFo1kl zW5<7Z=Lj)J^%t2_SD9HGe7#7>8r8$yHBtYCJQj&zG-fGyv(6>Gun_taW7c^9>PnbD zBE9ftMXQ47cDzDr5Blv33!|A^eJ(>pow5KPqqY2v> zfwlhX_nxC3&Nd?797X|Ko!_y&=G9Eqp}WpRfuejW8F`yP{*gjs7rh1?LEqaFjk$1PD0RQ+y<-$gxO*Sj7o zFAc{bn}VIIqA=Ml9D{ujC^5Xy4&oT{F_hnrqC{m^aSWEftPQUf>@LVf7b!8ad{iP(Ej2Wfh|P71%DxixPv$jd!z%N>_d))UAVbD?51{D zXuood0QX5c??;FbL$ZfC278c1qp()6uQ}==TbiBW=SPUjUgsF>bfCoWTEYJ37&7-? zI?-aFd!l17*%KXuam%I?Eh&!dla9e;pL7hyEz-{BNYQX)?{o|%d#7VCZku*)iH4Q^ z)G-*hQajP&=g1!G7>wJiomgpnPaUq8YHe11$dn;O&FIQ0{N;06QDDf^%aO z@AJfq!gM{k?5B=;I1dszc||0mNjPILU3@MCV#ucwd25uw&UTotR2Kp<mcgke3r<&BgnEx*fH#IY_eV0IXVjC z&SB>|A4Xe1+I{ESQ5c(d=VwtETk$v^8|yfXZE_sOrZ)~_D;bBeL5suKpoLmB;h8mm z9L9<}4rARJhq3yK!&v*oVXQpjFjfk2*dz*P9L7Q%hq1uMVJw_+7z<(?#)24!vCzd~ zEHiN!i$NSl&5pyUz;PJ$G!COW#$i;)IE?D(JQmdhVf=tvXCYE&f=Emki&6=VN~VXNNQ#50Fy9r|3tv%Y;U;aS$^3ZF12 z(>E-&pJ#xpi+=bU|2%ayljT?8P80g}xr_KQvH63;zKH{cjbXa2U0 z=Twu{79rTd4`V%^UrP4kGdk18o};u56jV(cSH+}VERMf)#)G!R@RGPqSAWF2 z0leG`WMg#?&{H;6?0D$bRm8@*^@_e4>* z+^~?bQFzk<$QmJfp_FTJ^{E_Z->BepRgUEFUwJ@lXFAD;Uyh+eb0K2p&VhGD(u7Z6B}mfY6eOHvD@fy(E1Kyu1w(p(f-wvX&QMH{wedAx3Z?{2 z`ejkH?Gd!Jph-{5N8_-TFcnby31+9$+Nlz>8X_gyxE0`hMsQ@H!^h!>>iC)f=WT)` zV-&<${c5;9QX#Z0f_Au{uQ!3`wtVIOI6q%Y7^e&6L1~VBtqEc2{|JwxI6i`d?jpQM zZv7V7m)2g9aQXn;9&%gOeo>G&`usl9iC=CG^!e>i>j;)BseYLv2utb;At~ciK8{E{ zB&Op8M{ImIHT`p>dt5NZ@{eME5u8TS{TBez+8-e1>R-T(JAXw;ZR!4+AYbLByYalX zOyWLCKhe1AOve3$g-WR$Pjr1It%HDq@IoNOQe0mT*8JE`Qb(`?qFgCeWGO>=AkIi> zz~`ch%UHNq5VcaRR4vu)E2Ye5s#rE@eFSO70mRmoYs|!Ba=HI=!oA4Sv zZ!8@fqYyuTrk-8AAM)3_h8YVO*YySdZ%2W$V*WW}11jEmqCW>9C=Mg08Wl2n@+9;> zJ+&m$`UNjw5XW$)^=q%O#-f#$oI^>U#^I)Y5FZAtj!%| zS({tMvNm^xWo>Q%lZ}j%nHJhR*ARGK*ihIPt$!0YxTSHZKO@+2r8npZFl{RrLPe3i2Q5RagsfL6aI%DyF8d_D4~%nQ12z=w4?U8qVi8##gE z>mDaAIl`m!uA~y+hU<#G1;p+7$oD~JxN{F;T8;>ImaZracEjH zt)F>(HI8Z11YxS?=I3{KpWR>$H(PP;()!a%B$K#2DFX*7wl7qI?l7qI?l7n_oOU^5el;$;WP!R^T zbnu{5T=93Y2ypQ?S@&Y7yqO_niK0aPr zux`hVr3JVz1()2H=HGDns$W#gd%=HxX)pL6TH1^Ld%=G%04C^P8Vyy;3rh>9%*teG zq5VSeTq{lJSrDc9^0qh3hkO=kg}cZNs1ga+wJlYHP|_B=Nt0@JNi1ngG-+1Jay#SY zy{qNPdabl~X|g2H+Pcyt`JM#dlLUhApTb|O=z6JMTC7#{S1D-c5C@A$EzAVFyIk~s z(KU(QQxZ4^gT0KAWbb6s{YF-F_|Z;01Mo4a*A79WFu2OBO`0}8hgRSYQ*+QhkZlDv zD5vvgHE`hiBI`2ch#~j97|G{m#gK>>cYqzz0d^u`8}Szk`;rc@ogH9b zB&-yT_Xizdf9L??Mos4_c!c783lklK4PJvdVz8ARV25{ro!J34+aZq2+VNUvv%4T= zIu`lMiTp17g&6;A2iT7~!2Zwy_F*y-8t0roE) zV0V+D7`pB4p#pwOH9j}E65m$#|$o($?Lrd`&V(9n|FrFCUToT2*mUuDP z&JM8EWHN^L@eX*S9q{gJ$7?O~3q+J?Yn5LuMLnF~kxF(plFCUq(c0H%D2BX%$Oqvs#L)R2VB0#tc6NZ>PKILiKHHAh+RtYw zhP<1|PvI}b(8BHQu;bfdt$lpOj1l0$DGvAhhluhJl{oBs+X4q&u*)%*=$v}5Bi+NW_C?a4TdHenn_TQ3fy38ofV z5HGDNHL?O24JEak0vOwKZQcVIYc8$f0vIa~txEzJ%dZya0LCJuB`SbXi&d!u81+Tf zCx9`#HTMbAIi_bgQTxbMNV zYJ9&>FDBn`kxyIPQzlM^moAd-L&3fCJTv1>q?dN?hN|mS+C;jFF-{~=VDhz2u1P3l z6uI>-)BrlRaWHt8;Mj@P3o_!-#MKz-eCrXkr)l{v=;5m}TZ%I@vrU`=m#)cw^8yU! z>lj5_I{(E>=jm88gC!&X#dL~^jk$_^quBfs=4mU6W{2xe&vJOV8Sc%f%QjTsp@tTrS9P;nL@I;c`)i z3zr^^3+M5`9zW7iap62G*n>;|!-ezUU=J?+2!Z#>RWGu_#agGrkiK!;v$;V%rSm(N zr}S>ao+1M`q;yNeo+1d>Q~H=;PmzY}DV@l$r-;P$lx~gd`Dg5!lMHV@%>8p|?T>^# zC9_;lG0(%E!maBmrgGR*xOF|nYz=z~x2~s{kYP{Z*7X!y()IjjoLe!=!k%Gn#Y75w zhPf4UCF~jIR!oPmXP8@Q#>1XrZlyU6dx~zkNqH06OkJ?l*DOIfM29@V-x~J}b9+zR zGtBKHanCTf>6gXg409{(yvyxkGQ`8Xo5QNN(q6ls#kl7}pKK{84z=dd8uZk-FKYtd zcU#<-GV*=zx!9{&ukmYE!Xh=R^HI>S`cZY`WTzFUX2mTSYr8X?BSTHbxh`FplFH;V z;+fN$nX_9us36JH6!7LPT!^%tDRAxp`L?~PYS>pom}AHL~=&f~8W;2**N;ueuwJOEXD>pVNAi%?HYu(n;>#)*RwZUdi1rYF?oqmo*>Pj|-YF;l*3Y-Dm6NbxYNCte)QD zx(<+gTbiz`At$(-vKpsbF5Yi=61WXbf584LDT{X^X(Jlf{zw`NJe(P#VA(?7 z%drMv5fpcuho7?lrUAH~IEs%INXPF9zXRW(rF^B0tnKt-BDML!%E)(NIQfExN7v`O_zGrSp>r^3fEx)ZG5O?xW zAkF=3>Q@{rMw^%tn!@Lf0h<9h0{DKFaX-a0dLhSAxVAmWgS)wbuIQT(|$ml9_q z|NLctI;ZEa`%qef_dMW%J?SG%kO+P*oy*|WD1{tS_e@r#&Y2KQANTSwE*-*TXWY$U zTsrKjqNoe&EY4~#g1i%^^&w=D{b@*as?T{NG(y&ZHv3lK!tZ2bv1xr6{*AGuet3vK zAR@)9h^F;%Vr@t@*6OF7;UWt7=Zp2pti2Q;vJNVr(uMgRo#9uIjsG{f!{tkh&L&V8RxX(T*f?(*7aIHhAHTS` z64W-(-S+OuUY6r9|6_2fwaDMs*%>OiyYm4Q8K&k^HpQ>et?z`LMbeQa(&h$q8Q$s! z_d++A%cbD7AL_@IXr6)gd-e&0@N_2dv-Uxn?a%sj**fv31bM&(PcKk{(0`X; z!Y9bOHm^ar9;#w}UPwVkX}Mx=F?A8u_07mlU1jES9O{o2GRfuz$QWE!s{GpfA*M#Z zI+T-U7lhxPYGhMQSP58*h-*!=<_twyLW@DM<(e0RNb~)^+}$Z~@FgWLX?@P)Ei41| zOSz0Q|Jh3OXNvJOOUas62G-v!h3TDAPhCmKb*G9;+Y9yQQ$R`BF9Ihh`})zmAMwsU z4G+}^zrAql(!1boeaYi3)ZQeTQlEzXS;iq9V+re2txT_==yos8I}bv}T9M)uG#2xM zfV3vfC@9OaBy}n7*61k*BMxhR3gIPOXx-gRkQd!Z@!sUux*HjgPp^Imq|^2f;3y>Q+wf|P={sXT0he8` zBO)wlz83o2OCg)qSBO>7cWr6Gxy<)V*sRVn_LKOxzKjKp2>DsxH)H=3@PsWDHTwqe z9e$-pH*Nn2zO8*}`ffn#unt84`+0!w>{L$dR4*cd6gG4<;#9WP{&D*RVhi1ZFzg`Sl%nvH$b0y9f79;ctY+jWQJ+U zK^aL5q8KG-lYFISQ+)L#XVZLFuZPWSHh+WCKHCL=@{*D=iS;wkD?)36g)1Kt%{x$Q z?n>K_vThc>6T!Jbi)Kt9CpOOVr99362k9y)1sp(Y&KU5N0k2&di5D8mIP5=yWOc>- zbO@F3=66{k-T`6k%1E@P#L}1-Mr4G|??EyyPFh3Z>K|8Dy%Y$3TtnJ?KlI4@j>vHY za{LM4lhDZ&8tzMwD-&`vl{DN5b4H{#BSM>@$n1|Ipjn+|GEC+ z#(_naB{F;;V}S!EUOp5hd$tuf6a>Y3t(*hlth46TAe>dgrQ9U01)&6vG?s7W^)OoZ zTz|c>ANIVNyb~;cZvZFeo_?$sxnHBsvYb#xlfq)Ekug&t{_+@YWSR;Y;jMdjcTqTV z86#gjqz5%S_AB5jq-dSU`iH$b{&2p}ziOFC$i2Y|YvNv~wDo-?oBBw;9MmxlsbkzW zBEzhj;lDi$Ew?P)B-;{TJOJXQN7n)a9C+@x~K#GZl8_^R%-j=`(>Gt$X}Lj4SLCZOck zWu%0}Z$mmX@lm4KDTqbFR5nM6o=l<-c|>R)c5bZ?d6oQ z^T_)}#!hCKO4bo!n^8DD6KNLPE~pRv6m){0@8SElon&Of#%)k;9Ti%8?)nYx!LRE2 zQI}o_UBX6N)Pt0!{d0&QVe^_YtAbBdT>^d>-+qJhm@ib<_m}Wp{U%5uK&^A>Rq_Km8yaDv*?#U zKH`n36cEI$%oZi2+C*(Q^aKu3y>{_v;fC2xXd^9COp|i3fH^~a`%Dxo?e(%Y0tPSf zoNV*tC?tr|{>80j@>7~q#SreK9Bt5i3^Ptzt|mI;o`pye2YIqj;5X^cfs2!aeB2Wi zHxrCGp_%KUN%AY`4ftbuxeswJWqBEx?M4K6_2{dYuj*_cUzJ(hIqe$uXgtbvBxfsp zrDg~Cf_c&}@APa9@1&?{PpXmcN!b^m^2^uL(pkuhOp`&0L@RR~_$*4LnQdN<@8-ia zAWlT6ZuEgq!aFB@wcTUoq*Hx8R50mkWXf4jr`r~r>E_u$o~?p`NwwiGGY)>A(W|*MB%o%E|y^kQNsloD#9rjP6$*~(%lXRqt*b1K)t*{9A@$+P47yJp|e)vNU(zTeg5+I0B-a91yO zDEjqbOf4f$mRYXJe;mh#`u&ArCL>|bKsNU293>e6V0SI=oD5D}0~D2OzL`Mdv29Y@ z{BEN>VbsuPfR+V6>O1SgJ*CU*!EF6 zBiFF(7-*TlX2tZ(PgSA%vAeU)fu!&i@pmx$z_p4K_MYR*Ps%eTbCmxaTd z=0YC6BphBa7xM7s;P8IAkcTe?hu6!6JbW2Ayj?Ej5o~*jMILNjiA5f4KZ!*iY$1t7 z9&7`NMed8=;mva)u6*G;yn-&|;fvnkwdo-bU+@m^P8Sc@52k@jMGYLjQxc`c9kuLu z6*8-zMs=KNO|wsZ9_%IiF?2l2+3C9g#>R4)vDgn4HjZjwx79uY)>t_={R(>L)SE+4 z7$rfSsN*8+tjHj4nVk)e4a$yHj^0^Wloivy08vX1Oy>2|kpaIO&`4>gHjU6S62E(J zv2(u7qNksJdiOvnC$lBk@|s8ADz6hJNQ9s)Qxu(0iK3(@yAY3o z(b)4pX%y8a#P=7CBHKd~V=iy~kxsjs#v>yV$O&9dN3#&$YaIJ8lOgFkt4Mjm4rGSqX^Mc$3-> zAszmtYIDzIE;!{kAXYIpTsVgGgG--iD{$`NHjY<{g5cPYekcow(Y`?6N`B@PhJFw= zb~JWFN1Ia+f>gzG;}zTSx+3&gYlB_^cvcQMB6YdY3%3~@hf@0`7>Bf&9`ujuq#%68 z{gS?4h}MkavpiDeCXnWY%nugoy*lv3Lpen2bv$b7SG!9YQR`y1fpGzu1QeUi#L3tr z3w-lTg@k|7J_zqsqGu@dn0u^fNzNzI_7?z{N>&TIN8MS*pLdvLtW9S8I3|{~$H9E@ z=kA)9LKG^40CsH$*gIWV!ng?h?F0Utdrt4#(!{_fCOT9Mn(D>@m-XP0wiOfp}$P6{IgeI7LUixd7)J771C85shOW*Sy@ zyt0$NgwDsCVKj+~^x`2H^1-p8iBMViFGMT#7PWDBey4cDvSGaT`ye}!O)%al{K&<0 znokL%41V}Cg;#qG!eE6>lR+gP19=NgG>}R&=r;(Q;WRTqi}~r-5lWZg+`ZM|ev5=1 z#D(9&XDqIvIpD({Jf1G}55e^_%6auOWbZS`xsCr3kDu85@N&^XnIB#eR!7JuA!B}E z6>=vUL{8h#oFSq=iB5eF)*KK|@>H?xTO_rVbsz_!<>xQwjE+Mb6KrpUv|9m>ySk3? zREE&CYsp2mwSA_I&R5=5{vUQye$Zq4Nh#F#@1%!e`3TRh&V=d_`v_z~ydFKthheTk zey(h6=Bp=~N8LQ8Y@&70GrPSyyLug@BK!QqWrm`crV%!z&Q~wyoop&Mroqah-EnN z5*1P&U#(EzNSUCX_+!BXv#Y?ZKa8>x4y7H+JNp#m$91sRx==QgGM)=TFEmT7KvAF?V`M}=SAToJw+y&4u76a z(*gbxp>pE$rO~^R^LU`(l!xld!8w>oH(v>}Fkol;;WdkA0S&F^KAOSNx`M!jUsq5*v`zUlXT;BI z21MpT-Aq5pG>Jb3e?KL}cw+Dlb-d8=>+%@BU#G_4Yv!PjW{mNM%Z;Xw2Ds|>bIUW& zUJB=9G=DnhVSBic{wC~KJiB~!G#~fvl#c`^WO<#YGn|j&H%C6wuTwq>9Oj(nW6-u} zJXnn5*C#>VNSHCN9gM*{M_6H4Vzwq0n|&{|1GsF6(n< zVD3BLqRo%4Kz>`VVLgerAd)g2>n8e^7{=xeo^07?koXn8K7zcqIidO(^lPk7frxbr z#RJ_+`s=q}N^T}T4ppnwtof3JIdm`K_mRx1i6cW7xap0a;iFL2|8e|}yKyHBm{2+n zfHR?qkCA|Jm=~zSk}^*WX3*At4EX5ER}jl>g&V-$je@T7`$wh=7m5A*Xj zp)*R$C2j51DQyaj#`~!`;?*@<+KwMcp>a&j`Uw`WRrB=$bA~W;W;OoPJJR32F`|Uryy1tBj9t=ACnd58Zz^z61oi_s8 ztquXrGA?uc;MoKCp4bj7L75fKRIjbiNG?#0DdQa|T~9)XQ$y!LgzE~)a%%cogi4fB zJ0x`%6!BSG>pHsO81x+FWRIKL?BGS?hhDJ5J|8Uju;ER);fpr5!E=L~O38U0JW5F) z7woL%m|`-s_D~1Id7Ser9ED>;jUVDk;n|31`n&i`0LNtxr+?=LF9Z>cLgt1y@gw7L zQ%XmzQlO<(n4Z9w=|s?pTLP-sLadDbH)nf<-Qne!IG0?3i7L0 zOy=FX9oFZO;|(0QmM!{MA!fh|^~# zQ_GOLq)KnsOpgH8;II}8V>HkPuT zVnJ=Xsgw@l!S|+8#*Zjb%FNq@kXj6e+_ujfD-86s7kV0~-_#?zwq%)TGt|tpXAVKC zVW0h9XyAF+`t`3A-a?i)GpVh_K|o+#k~U65*gvD~tU~OBqIY^QUW*E~wX^)lByKbX zqTX1sw$Pj*eRX5`FhkvNITqONMszrYP=c}R5BeG7%Xs&)-Kj1sIG@|sbQ$rYyWw)B zzOInUtax$4rK+%ubvby3xI0AGlf=R!M!43CF_l@@$GW@E>`A59_N7wDF=g$%bw!s* zB8mFi517g_L>3`ZjRn!DQxdf+ilVAw#hn(+LyIZUOTHvqFo2OPk!D2ce|bWb#O)5s-5ZCiQk}b(iV+D=_`9<^lHn} zmtj&e*7FDGesXYqb2n5i-#VPaPGF$$-++Yah9N)|*Bb{`6dJ_|K~gW?Q+pc4Rl`W*6AzZQ?+676j|aH%i@)*~^b4BzBhYrH zk!ecud=8GOqF-|)U~wClFmvVz{D*B^x@qHTnDN8h_w#n3nqY|W!`=5LA992XxzL9k z=|V2@AxF88i+#w^F65FOH!>Z8ZLIb)`A7d*e&%?eYagHQ+sEWHY!^#vT)X&t5QEAl zX{-hX)_=)-y`D(#D6lv9cIT4IA5CHz@m1ae;oP!9q6EW)C{w>yfdD{* zEeV6Ij>USql6cRE;f6G^!)r)kdkt^OxJ?c>8s!7P1jLwepmC= zLVbT$ZJD*Lqmbb+0EaJR9^a_InhzGBSc=T~%;4HWI<@jHKktJ$bgU(1T#GoSkUDE<)cc zwFt&MR%PzU0{Po(fjr#iA>ruPgFakeN)}M1SH3De*mCH3DlYG zbuZ^wFh60eM!K3Xpix;K%_621m{ga$2MZ32?k%AOzEM#GxUt5X+|+w&yRX> zn1X2i6)77Z$7usZ5!ZV3o=H>p+vBzo?EmIb*@-K$HpiU8tV?1mzhLAtslHnU05v&XeF^?Dre~L1&w3e!_DATAW=C^NjgW<>`}1N5I1(GC zR;(_+FXPH0DBoo)NXHoZ$;fAv?^E!iE>J)Hayvs$s}E(xoFRgKT6u(2+@yiR+S$5pmPASx)OIM zNg3v41+X!@X+gQCLoMscj4#dEHvxB1F}M6v>0!N-K-)01Iwf;_nSC)c)3!D#HWgxiR}m%kgCdB z+XaA4a-D=E4tlvVmrlq%3K+XB1mb4-(7j0+qcrHr8{Z>)mUlD{C;rFs@H^o9;I=$` z%TvY{HxG+6->(B!dW<=VPQcPl*t(c2CEe4zQf_|L)~y;XrN);^mQ+`iu&Gc~6@i$m z^}{2faORg(HP&UwDJ}}8E@UR2#ze}B!RlnLwzSWuyEKK3`_;)>5oT*SNn+R=DLS{T zoEbj=eTkbuWD)jF9&`>T3C5P1Sse=xw+E=5-M;#x(C|&z=8~LB)HY9|5kaJzFUTjx z`!0093)7ziPET^;qo^BJX5>}J7;>>Ei9w;{^u_SSVIt^g^(EX%hs`kk(=h%2f9U^^ z9J1qm>x%e0=*>@|yVe-(EZJ;r-J;^uL+Ob>G850sXWS2T)T;*{h>)4_zD?c zLe@9|ISIS8@zwxKA}FW_rpHEhY61fBN_D_&mo-n zsCS?5tv1(7QDg9DHm^hyXFq`?yPuy7K5yqIdYQ+fPMrM|9TNxB#KNFU*X*YQH)`{) z**oY~t9fD@xY1A_6%yOj@iB3ntd5Vvp|;IE;Dff4iG@yY1$6!FP9o0SDF5%me{Eg$ zotU|WbwF6U`c76dFhM=xmfCGVO4h!@wB`M)^8O|Kf+aHdss&|TW&MecrK0(@>C!6f#C#s_ zeS1OGlO9NX%s{YNwTj)yOPL;N7bP!9wpUN5I)b_Cw>>`7i6e3obw5_llBBm?X>lWa zfflrS+_%xba$CxQ7v8O)%z(XF%?TlA^L z*l#dl3VXnB5A|!SyY2h zGKbfiptZU>hB{d+p|G&Pmj+*DUACO7QkVVnfl`>2!mg~4If@UQK~gP@>PdL{;gr|W z_Zw`nur_rd>6LSb<_^sn8j|XTTCMfz?0^QhvkApBJh!+nlSYqWAZ#kn5jWKQ`5=ib zvD4}hPsv(r;FmyPD|Pe3#ol@r5SzRrQO--5P!98x9n}Mr{!c*K^rin9_)6)wJ2*j2 zs)~b15klBuRFR%XN*lH0vy;5Bi(bG|J`CbuYkjy~vQauvN`9_Wz@|VWg66X{$0DXhHA95FXH(jUHb`km!Nm0 zuwzLa&*g>z*DnX`1P@{fO>a^R3)bCQFTdh z)FQ^>_Ml&3Q|@X(jA&6<5NQW^5)e5q0g)D(`pl*Pb@ZLcXLPIN8CpaQ0kt>lYH^D` zI55GBNp?P0h(uQRoT<~0_Wo6xp9QEiRhdClIe{4FeQ^bhV4uPZ`ulAg=583h63HgU zHVmy?Ka|q(b-}3%I@K@2H$RMpH|yTtP;O5`hLD2> z1qoVuCkxVIFp?YEx?pW*1atA#6FowusWnJdn=u)j2(-4+B+TncIdNBNLg`%LRvc;? z$$(+%GkOKGlN{rzQ!MXC@wH354W}I}FimHR&Rw{Opjxej13?gPbejf&;J^ey7s(tg z??tzxRZ^3Jh!Mv@Bin+iC2bxu2hmyJ9ub($8!A{6P-feZ1I`@h4?J4RU}6wDr^Q(& z+5-u#9Rp~M;S zf`Q|97Oyt<1z~r<#&6`XGDXy8zhGE<2lkO~XrO&T|4Vk3#E$wcc1)$BQk&~9>@2Fr zOlrTs81(RQip$vJ=wvpAt0AK26#MBCJ=*|I^}Wa)wl4bMEOWF&G-w0^Ia^z<&z)UD zVd)(6hcGcVj#bGfm2+; z=;XC0h7AXt6Oost?_x%}Ob0;hp